I work on a Drupal distribution that includes memcache for deployment, it is recommended but not required.

The problem that I’m having is that Memcache module blocks the installation process with this error:

Memcache admin requires that the "cache_inc" $conf variable be set to include either memcache.inc or memcache.db.inc. Please read the installation instructions. (Currently using Memcache admin Memcache not included)

Our install profile does not install the memcache admin module. This happens as long as the memcache module files are found by Drupal when the install script runs, so the only way to complete the install (without having to set up memcache) is currently to delete the memcache module.

I think that was not what was intended with this check. It’s fine to check before allowing the module to be installed, but blocking the entire installation process is just counter-productive.

CommentFileSizeAuthor
#3 memcache-6.x-1.x-1295076267.patch2.21 KBhswong3i

Comments

wiifm’s picture

Version: 6.x-1.5 » 6.x-1.7

This is exactly the issue I am having. Error on the install.php page

Requirements problem
The following error must be resolved before you can continue the installation process:
Memcache admin requires that the "cache_inc" $conf variable be set to include either memcache.inc or memcache.db.inc. Please read the installation instructions. (Currently using Memcache admin Memcache not included)

Please check the error messages and try again.

Hopefully a fix is out there for this (that can void the temporary removal of the memcache module)

Using drupal 6.20, memcache module 1.7 on Ubuntu 10.10

Thanks
Sean

hswong3i’s picture

Priority: Normal » Critical

As refer to memcache CVS HEAD for Drupal 7.x, no memcache_admin.install exists and so all running smooth without any problem (http://drupalcode.org/viewvc/drupal/contributions/modules/memcache/memca...). It is working fine with my Drupal 7.x installation profile development.

I would like to suggest "remove" the memcache_admin.install in order to solve this problem. Any idea?

hswong3i’s picture

Assigned: Unassigned » hswong3i
Status: Active » Needs review
StatusFileSize
new2.21 KB

I clone the similar checking style from getid3 and colorbox, so update the test case only for $phase == 'runtime'.

Patch via memcache DRUPAL-6--1 CVS, and successfully pass the installation profile checking.

hswong3i’s picture

Title: Memcache module blocks install.php » Improve Memcache as installation profile friendly
hswong3i’s picture

Version: 6.x-1.7 » 6.x-1.x-dev
hswong3i’s picture

This issue is still exists within lastest memcache-6.x-1.8 and so block the integration with our PantaRei Siren installation profile (http://drupal.org/project/pantarei_siren). Therefore we need to maintain the synchronize of patch from #3 manually.

May someone provide a kindly review of this issue so we can get fixed within official version?

hctom’s picture

Status: Needs review » Reviewed & tested by the community

I currently applied the patch against the 6.x-1.8 version and all reported problems vanished. So I guess we can live with the fact, that the checking is done only during runtime and not during install as the Memcache admin module only provides information about memcache and does not really require a memcache server to work.

Hope to see this in an official release soon, as this is really a big problem for install profiles.

Cheers

hctom

catch’s picture

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

Thanks! Committed this to latest dev.

catch’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Fixed

No memcache install in 7.x.

Status: Fixed » Closed (fixed)

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