Community Documentation

Troubleshooting

Last updated February 21, 2012. Created by catch on April 19, 2011.
Edited by das-peter. Log in to edit this page.

Troubleshooting

Problem Solution
Error: Failed to set key: Failed to set key: cache_page-...... Upgrade your PECL library to PECL package (2.2.1) (or higher).

Warning: Zlib compression at the php.ini level conflicts with Memcache.

See http://drupal.org/node/273824
Cache isn't flushed correctly. PECL memcache 3.0.4 has a known bug that causes wildcard flushes to fail. Update to the latest PECL memcache package.
You'll be affected from this bug if you use Ubuntu Lucid or Debian 6.
To update Ubuntu-Lucid proceed like that:
sudo apt-get install php-pear
sudo apt-get install php5-dev
sudo pecl install memcache-3.0.6
sudo /etc/init.d/apache2 restart

Comments

I installed memcache on two

I installed memcache on two Drupal instances on the same server, and got a whole bunch of errors. The solution to this was to prefix the memcache key. I appended the following to my settings.php file:

<?php
$conf
['cache_inc'] = './sites/all/modules/memcache/memcache.inc';
$conf['memcache_key_prefix'] = 'something_unique';
);
?>

Note that 'something_unique' needs to be unique for each installation.

Jaypan We build websites

Thank you for this

Thank you for this code!!!!!!!

Most stable PECL version of Memcache?

In the setup guide the PECL memcache is recommended?
What version is the most stable with Drupal 7 latest version of the module?
PECL package (2.2.1) ? 3.0.6 ?

We had some issues with older versions and installed 3.0.6. It works fine most of the time, but from time to time it throws this error: "User error: Failed to connect to memcache server".

What version do you reccomend?

_

I suggest using latest stable version on production sites. The latest stable version is 2.2.6.

Doubt is the father of invention..... Hubmesh

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here