JSSSX Posted September 21, 2016 Share Posted September 21, 2016 Hello, Since I updated from 1.6.1.3 ➞ 1.6.1.7 I am having this PHP warning filling the log : PHP Warning: include(): Failed opening 'C:\www\shop\classes/../404.php' for inclusion (include_path='C:\www\shop\tools\htmlpurifier/standalone;.;C:\php\pear') in C:\www\shop\classes\Tools.php on line 2967 My tools.php says around line 2967 : /** * @deprecated as of 1.5 use Controller::getController('PageNotFoundController')->run(); */ public static function display404Error() { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); include(dirname(__FILE__).'/../404.php'); die; } If anyone has a clue, in advance thank you very much. Link to comment Share on other sites More sharing options...
JSSSX Posted September 23, 2016 Author Share Posted September 23, 2016 More detailed log : [23-Sep-2016 10:27:31 Europe/Paris] PHP Warning: include(C:\www\shop\classes/../404.php): failed to open stream: No such file or directory in C:\www\shop\classes\Tools.php on line 2967 [23-Sep-2016 10:27:31 Europe/Paris] PHP Warning: include(): Failed opening 'C:\www\shop\classes/../404.php' for inclusion (include_path='C:\www\shop\tools\htmlpurifier/standalone;.;C:\php\pear') in C:\www\shop\classes\Tools.php on line 2967 Thanks for your help. Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2016 Share Posted September 23, 2016 Assuming you've correctly upgraded all of PrestaShop's core files, you must have a third-party module that is using the deprecated Tools::display404Error() function. Search your code and replace it with Controller::getController('PageNotFoundController')->run(); Link to comment Share on other sites More sharing options...
JSSSX Posted September 23, 2016 Author Share Posted September 23, 2016 Hello, Thank you for the quick reply. Even if I use the stock boot-strap theme which I got in the past from 1.6.0.6, I still had the old 'send to a friend module installed but not activated. Checking all my files with grep shown that this module was still using "Tools::display404Error()" I uninstalled and deleted it, and I will check. As for note, I never had this warning on 1.6.1.3 and except from updating to 1.6.1.7 I did not install any new module. Link to comment Share on other sites More sharing options...
JSSSX Posted September 24, 2016 Author Share Posted September 24, 2016 It's confirmed, this warning came from the old version of "send to a friend module" I had. After uninstall & deletion, all is now ok. Thank you very much Rocky 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