scythe000 Posted October 26, 2020 Share Posted October 26, 2020 Was on php 7.4, tried rolling back to 7.3 but similar issues: PHP Warning: Cache data not written (Memcached). in /home/xxxxxx/public_html/tingyen/classes/cache/memcached.class.php on line 255 that section reads: //Write to file if ($this->_memcached->set($name, $data, (!empty($expire) && is_numeric($expire)) ? $expire : $this->_expire)) { return true; } trigger_error('Cache data not written (Memcached).', E_USER_WARNING); Any ideas? Link to comment Share on other sites More sharing options...
bsmither Posted October 27, 2020 Share Posted October 27, 2020 In admin, Store Settings, Advanced tab, "Enable Caching (Type)", what is the type currently saying? If it is saying 'Memcached', then you might have Memcached available, but unusable. You may need to switch to 'file'. This knowledgebase article may help> https://support.cubecart.com/hc/en-gb/articles/360003831737-How-do-I-enable-APC-Memcached-Redis-or-xCache- Link to comment Share on other sites More sharing options...
scythe000 Posted October 27, 2020 Author Share Posted October 27, 2020 Since the store front and the admin page goes to white screen, I can’t access the admin backend. Switching to 'file' fixes it. Now...it's been working fine for years on memcached...is it a php 7.3/7.4 bug? Link to comment Share on other sites More sharing options...
bsmither Posted October 27, 2020 Share Posted October 27, 2020 How long has your site been running on PHP 7.3/7.4? That is, did you also upgrade to a later version of PHP when you upgraded to CC6.2.9? If so, does this new version of PHP have an extension loaded to handle memcache and/or memcached? (Your hosting account's control panel may have a tool to examine which extensions are enabled.) Link to comment Share on other sites More sharing options...
scythe000 Posted October 27, 2020 Author Share Posted October 27, 2020 I think it’s when I switched from 7.2 to 7.4 that it broke things, and I just didn’t notice. Under my cPanel hosting, memcached is selected. It wasn’t before, and I was getting even more of those errors, then I made sure to select it, and I get much less of them. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 27, 2020 Share Posted October 27, 2020 This is not a CubeCart error but sounds like your hosting company havent configured the server correctly to work with memcached. This has to be correctly installed / configured under each different version of PHP Ian Link to comment Share on other sites More sharing options...
scythe000 Posted October 27, 2020 Author Share Posted October 27, 2020 I mean, it’s GoDaddy. I would think that if it were misconfigured by default on one of their standard packages, that would get noticed pretty quick Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 27, 2020 Share Posted October 27, 2020 5 minutes ago, scythe000 said: I mean, it’s GoDaddy Exactly ! Link to comment Share on other sites More sharing options...
bsmither Posted October 28, 2020 Share Posted October 28, 2020 Just FYI: I have just now installed Memcached and the PHP 7.4 extension for it. I also read the KB article on how to force switching to it without re-running setup. I immediately got an error: PHP Warning: ini_set(): Cannot find save handler 'file' in /CubeCart6.4.0/classes/session.class.php on line 100 PHP Warning: session_start(): open(127.0.0.1:11211/sess_lkpee5jevdq8p6nlu09me21bpc, O_RDWR) failed: No such file or directory in /CubeCart6.4.0/classes/session.class.php on line 693 PHP Warning: session_start(): Failed to read session data: files (path: 127.0.0.1:11211) in /CubeCart6.4.0/classes/session.class.php on line 693 I believe this to be due to the fact that I was still logged in when I switched session management mode (thus, current sessions were lost), and also because the information provided in the KB is not 100% correct. See the GitHub issue #2638. Link to comment Share on other sites More sharing options...
scythe000 Posted October 28, 2020 Author Share Posted October 28, 2020 Does this mean it looks like it is actually a Cubecart bug? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.