Jump to content

Archived

This topic is now archived and is closed to further replies.

Al Brookbanks

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));

Share this post


Link to post
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 

Share this post


Link to post
Share on other sites

hello, I have had this error and I just put

includes / de global.inc.php ;

1. Force "file" cache by adding:

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

and this in function

Share this post


Link to post
Share on other sites

First time user/install and can't find global.inc.php file in includes

Starting to look for a product that just installs and works out of the box!

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

×
×
  • Create New...