brassman Posted January 18, 2016 Share Posted January 18, 2016 Hi EveryoneI just updated to 6.0.9 - all good apart from some code appearing at the top of every screen (admin and live site).A quick investigation suggests that this is security related which is a bit of a worry. Can anyone advise me what to do?Many thanksBrassman The errors are below:Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/memcached.class.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs) in /home/sitename/public_html/classes/autoloader.class.php on line 89Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/memcached.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs) in /home/sitename/public_html/classes/autoloader.class.php on line 92Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/memcache.class.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs) in /home/sitename/public_html/classes/autoloader.class.php on line 89Warning: file_exists(): open_basedir restriction in effect. File(/usr/lib/php/Memcache.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/apache/htdocs) in /home/sitename/public_html/classes/autoloader.class.php on line 92 Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted January 18, 2016 Share Posted January 18, 2016 Were you using Memcache in your previous version? What did you upgrade from? Please provide your site url. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted January 20, 2016 Share Posted January 20, 2016 Memcache is the default caching method, so unless you specifically add a statement into the global.inc.php to tell it to use something different (if your hosting doesnt have memcached) then memcached will be "used" and will fail Quote Link to comment Share on other sites More sharing options...
brassman Posted January 28, 2016 Author Share Posted January 28, 2016 (edited) On 18/01/2016 at 11:16 PM, Dirty Butter said: Were you using Memcache in your previous version? What did you upgrade from? Please provide your site url. I was not using memcache previously on CC6.0.5, and upgraded from this version to 6.0.10 in one go using the standard install. My store is pretty vanilla with no customisations, tweaks or additions. Out of the Box. Have checked global.inc.php for CC6.0.10 and it says $glob['cache'] = 'file'; // Cache in use can be (apc, file, memcache, memcached, xcache) so it looks like file is the default cache mode in CC6.0.10 Edited January 28, 2016 by brassman discovered default cache mode Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 28, 2016 Share Posted January 28, 2016 The following seems to be the paths that are allowed: open_basedir restriction in effect File(/usr/lib/php/memcached.class.php) is not within the allowed path(s): /home/ /usr/lib/php /usr/local/lib/php /tmp /usr/local/apache/htdocs But /usr/lib/php is in the list, so I do not understand. memcached.class.php isn't there anyway. However, the Autoloader is wanting to incorporate CubeCart's /classes/ folder with the existing PHP 'path' string. From a search on the internet: Modify the open_basedir settings in your hosting account and set them to none. Find the open_basedir setting given under 'PHP Settings' area of your Plesk/cPanel. Set it to 'none' from the dropdown given there. You may need to notify your hosting provider. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.