Jump to content

Warning: Memcache::connect(): Can't connect to 127.0.0.1:11211, Connection refused (111) in ./classes/cache/memcache.class.php


Recommended Posts

If you get this error please edit your includes/global.inc.php file to either;

1. Force "file" cache by adding:

$glob['cache'] = 'file';

2. Specify the correct memcached server (with correct port and IP address) by adding;

$glob['memcached_servers'] = array(array('127.0.0.1',11211));

Edited by Al Brookbanks
Link to comment
Share on other sites

2. Specify the correct memcached server (with correct port and IP address) by adding;

$glob['memcached_servers'] = array(array('127.0.0.1',11211));

If memcached is installed by larger hosting companies, it is often on a specific server rather than your local one (indicated by 127.0.0.1) so you would need to find the correct IP address.  The default port is 11211 for memcached but this can also be changed so that would also need to be checked

Ian 

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

Hi @batts

CubeCart does just work out of the box in most circumstances. The code change above to the includes/global.inc.php file will fix this. 

Also these changes may help: https://github.com/cubecart/v6/commit/44e88e4b56c601178c501d4f9b7cd80b760a4127

Once sorted you'll be fine the latest version 6 releases are really very stable. 

Link to comment
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...