fouratig Posted July 31, 2020 Share Posted July 31, 2020 (edited) 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 July 31, 2020 by fouratig (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted July 31, 2020 Share Posted July 31, 2020 (edited) 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 July 31, 2020 by Knowband Plugins Update (see edit history) Link to comment Share on other sites More sharing options...
fouratig Posted July 31, 2020 Author Share Posted July 31, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now