Ray UK Posted October 20, 2015 Share Posted October 20, 2015 (edited) Hi I have just checked the error log on my ps1.6 shopand in a 13 day period I have 6830 errors all saying this [20-Oct-2015 10:13:02 Europe/London] PHP Warning: include(): Failed opening '/home/*****/public_html/classes/../404.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/*****/php') in /home/*****/public_html/classes/Tools.php on line 2965 Any idea how to resolve this. Cheers Edited October 27, 2015 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
MahmutGulerce Posted October 20, 2015 Share Posted October 20, 2015 Hello The most important tip is masked with **** in your error code. Could you please type it by hide only your domain ? Link to comment Share on other sites More sharing options...
vekia Posted October 20, 2015 Share Posted October 20, 2015 check if classes directory contains .htaccess file, if it contains - check it for entry related to page not found 404.php and just remove it. Link to comment Share on other sites More sharing options...
Ray UK Posted October 22, 2015 Author Share Posted October 22, 2015 ManMut, the **** is my url / home directory Vekia, The classes .htaccess only contains this Order deny,allowDeny from all There isnt a .htaccess in the override/classes directory. Cheers for looking Link to comment Share on other sites More sharing options...
Ray UK Posted October 27, 2015 Author Share Posted October 27, 2015 Any ideas on how to solve this ? my error log file is building to over 2Mb every week due to this error. I think it could possibly be something to do with the clean url alteration I made ? So my url's dont have the product number in them, just the product name Link to comment Share on other sites More sharing options...
Ray UK Posted October 27, 2015 Author Share Posted October 27, 2015 in my tools.php I have this /** * @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; } Is that causing the problem ? Link to comment Share on other sites More sharing options...
Ray UK Posted October 27, 2015 Author Share Posted October 27, 2015 Ok so think I found the cause. Following the Clean URL process from here https://www.prestashop.com/forums/topic/204935-override-friendly-urls-without-id-number-for-v15/page-34 In the overrides, they have: else { Tools::display404Error(); die; } So I change this to: else { Controller::getController('PageNotFoundController')->run(); die; } and it seems to be ok now. Before i was getting a blank page when a product/category didnt exist. 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