The following notice is appearing on every page:

Notice: Undefined variable: result in dmemcache_get() (line 107 of sites/all/modules/memcache/dmemcache.inc)

The reason is that dmemcache_get() defines a variable called $success but actually returns a variable called $result.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pillarsdotnet’s picture

Status: Active » Needs review
FileSize
694 bytes

Patch/fix:

jghyde’s picture

Patch tested and appears to fix the problem on latest Drupal 7.3-dev

teddyboar’s picture

Had the same error message in the logs; tested the patch and it fixes the problem.

pillarsdotnet’s picture

Unfortunately, the patch in #1 is absolutely wrong.

Here is a corrected patch.

teddyboar’s picture

Well, patch in #4 was my first thought too at first sight (regarding the behavior in dmemcache_get_multi() for example). After a better look, patch #1 only removed the error message.

catch’s picture

Status: Needs review » Fixed

Thanks! Committed and pushed.

Status: Fixed » Closed (fixed)

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

jan.s’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Needs work

Committed yes, but not included in 7.x-1.0-rc1 !

Berdir’s picture

Priority: Critical » Normal
Status: Needs work » Closed (fixed)

It's not supposed to.

7.x-1.0-rc1 is an old outdated version and is not supposed to be used. Use 7.x-0.2.

jan.s’s picture

Version 7.x-0.2 does not include this patch.

jan.s’s picture

Status: Closed (fixed) » Active

Berdir, 7.x-1.0-rc1 was released later than 7.x-0.2. Why do you think it is outdated?

Nevertheless, both releases do not include the patch. In addition the releases have been released months after reporting the bug and providing the patch. So I will reopen this ticket. Correct me, if I'm wrong.

jan.s’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc1
catch’s picture

Status: Active » Needs work

I can't see this in the 7.x-1.x branch, but neither does the patch apply any more, so this will need a re-roll.

Berdir’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev

I think this is also being dealt with in #1184678: Enhance failure tolerance.

Sorry about the confusion re the version number, I meant 1.0-beta4.

Berdir’s picture

Status: Needs work » Postponed (maintainer needs more info)

The linked issue has been commited, can anyone confirm that this is resolved?

DamienMcKenna’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

Yes, the 7.x-1.x-dev codebase does have the fix present.

catch’s picture

Status: Reviewed & tested by the community » Fixed
jan.s’s picture

Status: Fixed » Closed (fixed)

Thank you!

7.x-1.0-rc2 is working as expected.