I've got warnings and errors upon the installation of newer version 7.x-1.1 of the module. It appears that PECL Memcache 3.0.5 is unsupported now, as per the status report. However its newer packaged versions may not be available yet for some operating systems. In my case I have to resort back to 7x-1.0 to keep Memcache running. Could PECL Memcache 3.0.5 be supported in 7.x-1.1? or at least the requirement should be stated for 7.x-1.1.

Comments

jeremy’s picture

Status: Active » Fixed

Please see the documentation -- 3.0.6+ has always been a requirement in the 7.x branch, it's just that in 7.x-1.1 we're not only documenting it in the README we're also noting it on the Status page:
http://cgit.drupalcode.org/memcache/tree/README.txt?id=refs/heads;id2=7....

Rolling back to 7.x-1.0 does not fix anything, it's just that we didn't issue a warning in that earlier release. You should upgrade your PECL extension, otherwise your cache may not flush correctly at all times.

3.0.5 was released in October of 2010 ( http://pecl.php.net/package/memcache ) -- please upgrade.

almc’s picture

Sorry, missed to read the readme notice on library versions. Unfortunately, there is no stable packaged PECL memcache > 3.0.5 or PECL memcached > 1.0.0 for the operating system in use in my case. What are the implications of using the module with PECL memcache 3.0.5? (especially in terms of possible impact visible to end user?)

jeremy’s picture

With <3.0.6 (released in April of 2011) there are reported cases where wildcard flushes will not succeed correctly -- this can result in stale content being displayed to the end user. Older versions of the PECL package have a wide variety of additional problems depending on the release.

You may want to consider alternative methods of installing the latest version, 3.0.8:
http://us3.php.net/manual/en/memcache.installation.php

almc’s picture

Thanks for the insights. As far as I understand, in the lack of a stable packaged later version of the library with my OS, I basically have two options: to compile the later version of library or use some 'outside' Linux repository that has a later version of the library. As both options can be a bit risky, I would probably stick with 3.0.5 until the recommended upgrade of the library is provided for the OS, taking some risk in Drupal (I don't have wildcard flushes in the code currently).

jeremy’s picture

Just be aware that wildcard flushes are part of Drupal's core functionality, so it's not something you'd have to add via contrib. Of course, if you're not experiencing problems, hopefully that will continue!

I encourage you to ask your OS provider to update to a more recent release!

almc’s picture

Ok, thank you again, if the core may contribute to the issue appearance then I will certainly need to expedite the upgrade of the library (maybe together with PHP) ...

Status: Fixed » Closed (fixed)

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

lostchord’s picture

On Centos - which does not have the latest memcache pecl package at the time of writing - you can upgrade from pecl (assuming you have pear installed) if you install:

gcc
php-devel
zlib-devel
re2c

and then issue the command:

pear upgrade pecl/memcache

Accept all the defaults.

bdupls’s picture

On Drupal status page I got PECL Memcache version 2.2.7 is unsupported. Please update to 3.0.6 or newer.
I then copied the url from memcache on the version I required.
cd /usr/local/src
wget http://memcached.googlecode.com/files/memcached-[versionrequired]
tar xvzf memcached-[versionrequired].tar.gz
cd memcached-[versionrequired]
Continued with the rest of the memcache installation and Voila!
Posting for others that may have a similar issue.

design4effect’s picture

Instead of 'pecl install memcache'
use 'pecl install memcache-beta'

jminker’s picture

Instead of 'pecl install memcache'
use 'pecl install memcache-beta'

Thanks for this easy fix design4effect! :)

Jim

ponies’s picture

'pecl install memcache-beta' and an apache restart did the trick for me.

Khalid S’s picture

#10 works perfect!

Thanks design4effect!

alexandreracine’s picture

This did it for me on Ubuntu 14.04
Upgrading PECL Memcache
http://henokmikre.com/blog/2015/08/memcache

taiger’s picture

Hi @ponies!
'pecl install memcache-beta' and an apache restart worked for for me too !!!

Funksmaname’s picture

#10 worked great for me too... thanks!