campo Posted December 9, 2016 Share Posted December 9, 2016 Hi Guys, Something on our website changed over night and now we're getting the following error both with our cubcart store and the admin site: Fatal error: Class 'Memcache' not found in ....../public_html/classes/cache/memcache.class.php on line 33 any ideas on where to start looking? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 9, 2016 Share Posted December 9, 2016 Have you previously used Memcache as the CubeCart caching method ? What method is currently configured in your global.inc.php file ? Ian Quote Link to comment Share on other sites More sharing options...
campo Posted December 9, 2016 Author Share Posted December 9, 2016 The site was setup prior to me joining and assisting the company so I'm not sure what the setting was (if it has changed) The global.inc.php has 'memcache' as the cache setting. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 9, 2016 Share Posted December 9, 2016 You will be able to get the store back online by changing that to "file" which switches the store back to using file based caching rather than the faster Memcache memory based caching. It is possible that your hosting company moved your site onto another server or removed Memcache from your hosting server and you should check with them - not great customer service to change a server in this way ! Ian Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 9, 2016 Share Posted December 9, 2016 You will need to access the global.inc.php file from cPanel or something similar, because you will have to change the permission of the file temporarily to allow your edit to save. Then change it back to 444. Quote Link to comment Share on other sites More sharing options...
campo Posted December 10, 2016 Author Share Posted December 10, 2016 Thanks guys, I took the advice and changed it to "file" which got the site up and running again. I then subsequently found out that the hosting provider did something with the PHP settings which took out 500 of their sites!! Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 10, 2016 Share Posted December 10, 2016 Did your hosting company tell you what they did that caused this and have they restored the ability for you to use Memcache ? While file based caching will continue to work for you, memory based ones such as Memcache(d) and the recently added REDIS, which is even better, are much faster. We offer Memcache, Memcached and REDIS for all our hosting customers and all CubeCart customers currently use Memcached but will slowly be moved over to REDIS now that we have tested the new implementation of this. Ian Quote Link to comment Share on other sites More sharing options...
campo Posted December 11, 2016 Author Share Posted December 11, 2016 Everything is restored and working again. thanks mate, yet to get that detail, it's the weekend here in Oz. The business owner I help out has been happy with the hosting company and this is their first slip up in a few years and they were onto it pretty quick, just not quick enough for it to go unnoticed! Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 11, 2016 Share Posted December 11, 2016 Glad that you are back up and running. The failure (or removal) of any service that is used for caching (such as Memcache or Redis) will be immediately noticeable but at least there is always a fallback to using the files based method even if it is a bit slower, at least the store will be back online. We monitor Memcache and Redis (and a whole host of other services) across all of our servers and so get messaged in a number of different ways 24/7 if there are any problems. Good luck with your learning process with CubeCart and welcome to the forums Ian 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.