Jump to content
webspinning

Clear cache error

Recommended Posts

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

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 by webspinning

Share this post


Link to post
Share on other sites

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

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...