I have both memcache and memcached extensions enabled:
memcache:
===========================
memcache support enabled
Active persistent connections 0
Version 2.2.4
Revision $Revision: 1.104 $
Directive Local Value Master Value
memcache.allow_failover 1 1
memcache.chunk_size 8192 8192
memcache.default_port 11211 11211
memcache.hash_function crc32 crc32
memcache.hash_strategy standard standard
memcache.max_failover_attempts 20 20
memcached:
==============
memcached support enabled
Version 1.0.2
libmemcached version 0.42
Session support yes
igbinary support no
When browsing to Administer -> Reports -> Memcache status, the page fails with: Call to undefined method Memcached::getExtendedStats(). This is because the Memcached PECL extension doesn't have that function available as per http://php.net/manual/en/book.memcached.php.
The attached patch checks if it's using Memcache or Memcached and calls getStats() instead of getExtendedStats().
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | dmemcache-getstats-replacement.inc_.patch | 867 bytes | srjosh |
| #2 | dmemcache.inc_.new_.patch | 859 bytes | Nathan Goulding |
| #1 | dmemcache.inc_.patch | 834 bytes | Nathan Goulding |
Comments
Comment #1
Nathan Goulding commentedSeems my attachment didn't post for some reason.
EDIT: BAD PATCH.
Comment #2
Nathan Goulding commentedHere's the right patch...
Comment #3
whytewolf commentedi had issues with the patch, something about being malformed on line 15. however once i hand patched in the changes work fine for me.
Comment #4
srjoshI had the same malformed issue; rerolled the patch and it worked ok for me.
Comment #5
arnold_mad commentedwhen will this be included in latest dev version ?
Comment #6
longwaveBug confirmed when using memcached extension, patch in #4 works for me.
Comment #7
robertdouglass commented#856276 by nycnate, srjosh | whytewolf: Fixed Call to undefined method Memcached::getExtendedStats().
Thanks! Committed to D6 and D7.