webspinning 0 Posted January 15 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 Share this post Link to post Share on other sites
bsmither 1,284 Posted January 15 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/ Share this post Link to post Share on other sites
webspinning 0 Posted January 16 (edited) 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?) Edited January 16 by webspinning Share this post Link to post Share on other sites
webspinning 0 Posted January 16 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? Share this post Link to post Share on other sites
webspinning 0 Posted January 16 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? Share this post Link to post Share on other sites
bsmither 1,284 Posted January 16 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. Share this post Link to post Share on other sites
webspinning 0 Posted January 16 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 Share this post Link to post Share on other sites