webspinning Posted January 15, 2019 Share Posted January 15, 2019 anyone seen a clear cache result in a server 500 page not found error please? if so any ideas on how to fix it? appears to be a server error but has worked fine up until today Link to comment Share on other sites More sharing options...
bsmither Posted January 15, 2019 Share Posted January 15, 2019 If PHP is running as an extension of the web server, then if PHP crashes, the web server could give a 500 error. So, it's easy to see if any errors are getting logged to the PHP error_log file. https://forums.cubecart.com/topic/51550-how-to-create-the-error-log/ Link to comment Share on other sites More sharing options...
webspinning Posted January 16, 2019 Author Share Posted January 16, 2019 Thanks for that. I do get an error log, it appears to be 500+ copies of the same two lines 16-Jan-2019 08:19:05 UTC] PHP Warning: file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/opt/plesk/php/5.5/share/pear/smarty_internal_data.class.php) is not within the allowed path(s): (/var/www/vhosts/11essence.co.uk/:/tmp/:/var/lib/php/session/) in /var/www/vhosts/11essence.co.uk/httpdocs/shop/classes/autoloader.class.php on line 89 [16-Jan-2019 08:19:05 UTC] PHP Warning: file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/opt/plesk/php/5.5/share/pear/Smarty_Internal_Data.php) is not within the allowed path(s): (/var/www/vhosts/11essence.co.uk/:/tmp/:/var/lib/php/session/) in /var/www/vhosts/11essence.co.uk/httpdocs/shop/classes/autoloader.class.php on line 92 which appears to suggest an issue with autoloader.clas.php Any clues please? thank you (update: just spoken with store owner and this is the first time they have used the clear cache option - been on 6.2.2. since last October but was not aware what the clear cache did so left it alone. Could it be an upgrade issue?) Link to comment Share on other sites More sharing options...
webspinning Posted January 16, 2019 Author Share Posted January 16, 2019 I guess it could be a php config/permissions error. Should i just upgrade the php version. Have been putting this off and now perhaps its time - anyone seen any issues upgrading php? Link to comment Share on other sites More sharing options...
webspinning Posted January 16, 2019 Author Share Posted January 16, 2019 so an update, the cache has over a million files in it and pressing the clear cache button is just timing out. Looks like I just need to nuke the cache folder - anyone see any issues with that? Link to comment Share on other sites More sharing options...
bsmither Posted January 16, 2019 Share Posted January 16, 2019 You can manually clear the cache folder. See: https://github.com/cubecart/v6/issues/2051 Otherwise, the error log suggests that there is a server environment configuration mismatch. The PHP.INI file, for "include_path", is including the /pear/ folder, but the open_basedir directive is not allowing that folder to be accessed. CubeCart joins the established "include_path" with the paths to the various plugins, and then CubeCart's class file "autoloader" uses the result to find class files. You may need to have your hosting provider get this sorted. Link to comment Share on other sites More sharing options...
webspinning Posted January 16, 2019 Author Share Posted January 16, 2019 Hosting provider reset some file permissions and we emptied the cache and all is working beautifully. Will probably schedule a cron job to clear the cache every month from now just to prevent any future issues but the shop Admin now know what the Clear Cache button is for. Thanks for your help, creating the error log was a big step in resolving Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.