Drupal 7.12, memcached 2.0.1 (PECL)

When opening the stats page, I see

Notice: Undefined index: incr_hits in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: incr_misses in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: decr_hits in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: decr_misses in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: incr_hits in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: incr_misses in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: decr_hits in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).
Notice: Undefined index: decr_misses in _memcache_admin_stats_counters() (line 168 of sites/all/modules/memcache/memcache_admin/memcache_admin.module).

Turning PHP notices off isn't a solution, the correct code should not generate even notices.

Comments

Tim Jones Toronto’s picture

Same issue here resulting in undefined index in memcache_admin.module as previous post.

Using:

Drupal 7.12
APC 3.1.9
Memcached version 2.0.1
PHP 5.3.10
Nginx 1.0.15

Thanks.

sibiru’s picture

same issue, im using xamp 1.7.7 on win 7, drupal 7.12, php 5.3.8

memcache test according to
http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-...

---------

Server's version: 1.2.6
Store data in the cache (data will expire in 10 seconds)
Data from the cache:
object(stdClass)#3 (2) { ["str_attr"]=> string(4) "test" ["int_attr"]=> int(123) }

joelpittet’s picture

same issue, Drupal 7.14

aanjaneyam’s picture

same issue here.
Using:
Pecl memcached 2.01
Memcached binary 1.4.2-1ubuntu4
libmemcached-1.0.4
apache2 2.2.14-5ubuntu8.9
php5 5.3.2-1ubuntu4.17
Drupal 7.14

manarth’s picture

This error was introduced in commit 63bc6f2f52107b39fe6f300d46f39eea11b16068.

$stats is the output of a getStats/getExtendedStats call (via PECL's memcache/memcached extensions). Neither of these provide incr_hits/incr_misses/decr_hits/decr_misses data.

g089h515r806’s picture

same error.
using xamp 1.7.7 on win 7, drupal 7.12, php 5.3.8

brianV’s picture