dreamer79119 Posted September 24, 2014 Share Posted September 24, 2014 Hi, I use prestashop 1.5.6.1 I Show my error report below: Strict Standards: Declaration of FrontController::displayHeader() should be compatible with that of FrontControllerCore::displayHeader() in /hermes/bosnaweb06a/b641/ipg.reddoorcom/override/classes/controller/FrontController.php on line 119 Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/Validate.php:1) in /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/controller/FrontController.php on line 639 Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/Validate.php:1) in /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/controller/FrontController.php on line 640 Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/Validate.php:1) in /hermes/bosnaweb06a/b641/ipg.reddoorcom/classes/Tools.php on line 130 Before this problem appeared, I just edit code Validate.php & form.tpl. I used this teaching web below: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change But it's no use and my web has something error. How should I do to solve? Link to comment Share on other sites More sharing options...
bellini13 Posted September 24, 2014 Share Posted September 24, 2014 You likely installed a module that includes an override of the FrontController class. In v1.5.6.1, the FrontController class has a function named displayHeader. It takes 1 parameter as shown below public function displayHeader($display = true) You need to ensure the override that was installed has the same exact signature as this. Link to comment Share on other sites More sharing options...
dreamer79119 Posted September 25, 2014 Author Share Posted September 25, 2014 Hello, I attach my PHP file in here. I just edit this file only, I don't edit other files else. Please help Sincerely, Validate.php Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2014 Share Posted September 25, 2014 file is saved with coding: UTF-8 with bom save it as a UTF-8 WITOHUT BOM that's the case of headers already sent information 1 Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2014 Share Posted September 25, 2014 and regarding to the override: you use Frontcontroller override as bellini mentioned FrontControllerCore::displayHeader() in /hermes/bosnaweb06a/b641/ipg.reddoorcom/override/classes/controller/FrontController.php on line 119 problem is also there, with this override do you know for what purposes it is there? note that some non-default module created it probably do you installed some non default modules recently? Link to comment Share on other sites More sharing options...
bellini13 Posted September 25, 2014 Share Posted September 25, 2014 I already explained what you need to do to fix the override problem. 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