Getting the following error when memcache extension is missing:

Invalid argument supplied for foreach() in memcache_admin_menu() (line 79 of /var/www/drupalcontrib.org/sites/all/modules/memcache/memcache_admin/memcache_admin.module).

CommentFileSizeAuthor
#1 invalid-argument-1219176-1.patch457 bytespsynaptic

Comments

psynaptic’s picture

Status: Active » Needs review
StatusFileSize
new457 bytes

Simple patch attached which just returns an empty array.

jwilson3’s picture

Status: Needs review » Reviewed & tested by the community

A combination of this and #1156354-2: Called to undefined function dmemcache_object in memcache_admin.module (patch #2.1) solved my problem. Thanks.

catch’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Thanks! Committed/pushed to 6.x-1.x. this might need a 7.x port?

dedisoft’s picture

Yes, same here on 7.x

Thanks

Edit : sorry, yes the patch solves my problem (line 431)

eMPee584’s picture

The same patch applies to D7 cleanly! Please commit this fix ASAP, thx.
Hunk #1 succeeded at 430 with fuzz 2 (offset 5 lines).

robin van emden’s picture

For me the combination of #1 -and- the patch in the referenced issue from #2 (which contains a D6 based fix for the dmemcache_object error) fixed my problems - should #1156354: Called to undefined function dmemcache_object in memcache_admin.module be reopened for that particular issue?

catch’s picture

Status: Patch (to be ported) » Fixed

Patch did indeed apply with fuzz to 7.x-1.x, committed/pushed.

Status: Fixed » Closed (fixed)

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