Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Oct 2011 at 04:08 UTC
Updated:
25 Jul 2017 at 15:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jody lynnI just got the same problem all of a sudden. It's coming from the menu cache. This patch shut it up.
Comment #2
berdirAre you using the most recent 7.x-1.x-dev snapshot?
Your patch seems to be against an old version of this module, the dmemcache_key() does not exist anymore.
Comment #3
jeffsheltren commentedClosing due to inactivity. Please re-open if you're still having problems.
Comment #4
drasgardian commentedI ran into the same thing with the latest dev:
Warning: substr() expects parameter 3 to be long, string given in MemCacheDrupal->wildcards() (line 274
Following the lead of the patch above, the attached patch makes the error go away. But I don't really know how the wildcard stuff is working.
Comment #5
erikwebb commentedThis seems like we should address why $flush_length would not be set to begin with. We should elsewhere default this to zero or find the cause of an empty value.
Comment #6
lampson commentedI tried 7.-x-1.5 stable as well as 7.x-1.x-dev but no luck I still get this error. I applied the patch on the stable branch which worked for me.
Comment #7
jeremy commentedPerhaps this could happen with an invalid $cid (for example, if an array was passed in. With PHP 5.3.0 or greater, strlen() returns NULL when executed on arrays, and an E_WARNING level error is emitted.
Are you seeing any E_WARNING errors? Do you know what $cid is causing this? Is there anything unique about your installation?
Comment #9
jeremy commentedAs I can only see one way that this would happen, I've added a check to prevent it; if you get here it will write the following to the log:
Invalid cache id received in memcache.inc wildcards() of type ___If you're seeing this message after updating to the latest code, please paste the log here; this shouldn't happen.
Comment #10
jeremy commented@hitfactory reports hitting this log already in #2650646: Warning: Invalid argument supplied for foreach() in MemCacheDrupal->wildcards. Needs to be reviewed before the next release.
Comment #11
jeremy commentedComment #12
pobtastic commentedJust noticed this while using drush today;
Jan 26 11:33:12 ip-10-21-2-230 drupal: http://default 1485430392 memcache 127.0.0.1 http://default/ 0 Invalid cache id received in memcache.inc wildcards() of type integer.Nothing else in the logs...
Comment #13
amme commentedConfirm. there is log message when using drush
WD memcache: Invalid cache id received in memcache.inc wildcards() of type integer.Comment #15
jeremy commentedInteger cid's are allowed; patch committed to fix this.
Comment #17
jeremy commentedComment #19
jeremy commentedBackported.