Jump to content

HTTP 500 - Access level to ManufacturerController::$label must be protected


fouratig

Recommended Posts

Hello!

I've discovered that I can't access the manufacturers or suppliers page on my website (front end). I turned on debug mode and got this message:
 

Fatal error: Access level to ManufacturerController::$label must be protected (as in class ManufacturerControllerCore) or weaker in /home/*server*/*store-name*/override/controllers/front/listing/ManufacturerController.php on line 0

(Server and store name blurred out)

However, when I got in to ManufacturerController.php I can see that $label is declared as protected and I don't know how to go further with this. Any help is really appreciated!
EDIT: This is for all Brands, Manufacturer and Suppliers page. But only those.

Kind regards,

Elias

Edited by fouratig (see edit history)
Link to comment
Share on other sites

Change it to protected in  (Note the path)
/home/*server*/*store-name*/controllers/front/listing/ManufacturerController.php

OR 

Change it to private in 
/home/*server*/*store-name*/override/controllers/front/listing/ManufacturerController.php

In both the files, Access level must be the same. Some module has overridden the ManufacturerController & made the $label as protected while in the core file, Its private

 

Edited by Knowband Plugins
Update (see edit history)
Link to comment
Share on other sites

7 minutes ago, Knowband Plugins said:

Change it to protected in  (Note the path)
/home/*server*/*store-name*/controllers/front/listing/ManufacturerController.php

OR 

Change it to private in 
/home/*server*/*store-name*/override/controllers/front/listing/ManufacturerController.php

In both the files, Access level must be the same. Some module has overridden the ManufacturerController & made the $label as protected while in the core file, Its private

 

Hello!

Thank you very much! I changed both to protected and now it works flawlessly!

//Elias

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...