Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have been seeing this more often than not and am wondering if anyone has had similar errors. I have a bunch of sites running with memcache and recently I have noticed this particular error:
Location:
http://www.example.com/httprl_async_function_callback?count=3
Message:
Notice: Undefined index: httprl_<token> in lock_release() (line 136 of /www.example.com/sites/all/modules/memcache/memcache-lock-code.inc).
Now, I know there have been issues in the past between the way the Memcache modules do their locking and this may be just a new version of that. I thought it worth mentioning as I dig into what may be going on and see if anyone else has seen this.
I am posting this here because I am not entirely sure which module is kicking the error out. https://www.drupal.org/node/2413657
Comments
Comment #1
Jeremy CreditAttribution: Jeremy commentedIt looks like there's a valid bug here in the memcache module. It seems to be triggered by the HTTP Parallel Request & Threading Library trying to free a lock that's already been freed, or was never set. However, the memcache locking code shouldn't throw a notice in this case. It should be an easy fix, tagging to fix before the next release.
Comment #2
ron_s CreditAttribution: ron_s commentedThanks Jeremy. I can confirm we're seeing this too.
Here's some additional information we posted on Shane's original HTTPRL thread: https://www.drupal.org/node/2413657#comment-9593447
Comment #3
erez111 CreditAttribution: erez111 commentedThanks, I have the exact same issue like Jeremy described here.
Comment #4
Jeremy CreditAttribution: Jeremy commentedFix committed:
http://cgit.drupalcode.org/memcache/commit/?id=06e9348
Comment #6
erez111 CreditAttribution: erez111 commentedHi Jeremy, thanks for the patch.
While enabling both memcache module & module "HTTP Parallel Request Library" (httpl),
Except error issue -
Does synergy of httpl + memcache decrease memcache performance?
Comment #7
Jeremy CreditAttribution: Jeremy commented@erez11 I'm not sure I'm understanding your question. Are you asking if httpl will negatively affect memcache's performance? A quick glance through the code suggestions to me it will not. These two modules should be compatible.
Comment #8
erez111 CreditAttribution: erez111 commentedThanks!
Comment #10
ron_s CreditAttribution: ron_s commentedI added this patch to our Memcache 7.x-1.5 code and it made no difference. Still receiving "HTTPRL - Core" error messages in our status report:
The only way to fix this problem is disable Memcache locking by commenting out the following lines in our
settings.php
file:Comment #11
glynster CreditAttribution: glynster commented#4 worked a treated, can we have this committed in the next release please?
Comment #12
ron_s CreditAttribution: ron_s commented@glynster, the patch does not work. Maybe works in your scenario, but does not work with HTTPRL. Might want to review this thread: https://www.drupal.org/node/2413657
Comment #13
glynster CreditAttribution: glynster commented@ron_s quite right I spoke too soon!
Comment #14
andsigno82 CreditAttribution: andsigno82 as a volunteer commentedfollowing.
i have same, identical problem as #10
Comment #15
pribeh CreditAttribution: pribeh commentedSame.
Comment #16
Jeremy CreditAttribution: Jeremy commenteddoesn't seem to be a problem any more, closing
Comment #17
ron_s CreditAttribution: ron_s commentedI wouldn't say it's not a problem any more, just have moved on to other modules.