If you get the error: warning: Memcached::set() expects at most 3 parameters, 4 given in /var/www/sites/all/modules/memcache/dmemcache.inc on line 42., you can change lines 39 through 44 of dmemcache.inc to:

if (class_exists('Memcached')) {
  return $mc->set($full_key, $value, $exp);
}
else if (class_exists('Memcache')) {
  return $mc->set($full_key, $value, MEMCACHE_COMPRESSED, $exp);
}

This should fix it.

Comments

xy2’s picture

StatusFileSize
new1.13 KB

This is already fixed in D7 version.

Please apply patch to 6.x branch

Nathan Goulding’s picture

Has this been applied yet?

luthien’s picture

the fix does not works for d6, I keep getting the error and an empty blank page for admin/reports/memcache

Note: the patch is working fine.

rjbrown99’s picture

Works for me, and I have been testing for a few days now. Can we go RTBC?

vacilando’s picture

Same problem.

jeremy’s picture

Status: Needs review » Fixed
sdelbosc’s picture

Status: Fixed » Needs review
StatusFileSize
new1.87 KB

I think a return statement was missing in the patch given in the comment #1.

robertdouglass’s picture

Status: Needs review » Fixed

fixed in #6 as far as I can tell.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.