Posted by gridbitlabs on November 23, 2011 at 9:55pm
3 followers
Jump to:
| Project: | Memcache API and Integration |
| Version: | 7.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
The error in the title is repeated every time I go to a page. I'm running drupal 7 and followed the readme instructions. I am running memcached daemon on the specified ip and ports. I am using PECL memcache extension v2.2.6
extension=memcache.so
extension=memcached.so
memcache.hash_strategy="consistent"
are enabled in my php.ini
in my settings.php I have only added these lines of code:
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
Comments
#1
Also noticed that I'm getting this error when I try install the module (I'm not installing memcache admin module):
Notice: Undefined index: description in drupal_check_module() (line 1146 of /home/folioh/public_html/includes/install.inc).
(Currently using Extensions not available Either the memcache or memcached extensions must be installed in order to use memcache integration.)
#2
Please check the output of class_exists('Memcache'); and class_exists('Memcached') on your system.
Also add this debug just before this line in dmemcache.inc
else {var_dump($extension); exit;
drupal_set_message(t('You must enable the PECL memcached or memcache extension to use memcache.inc.'), 'error');
#3
Restarting php-fpm solved it for me (Pressflow 7 on Ubuntu with Nginx with php-fpm). I'm not sure if this would apply to the standard php package. Try this if you just installed everything and got this error.
Command on Ubuntu:
/etc/init.d/php5-fpm restart #php-fpm only
#4
I have the same problem at 7.x-1.0 version.
class_exists('Memcached') reports "1".
#5
It was my mistake! I was looking the wrong php.ini file!