At some point, I tried to install the module following the instructions. I failed.
How I am trying to disable it and remove it, but can't.
I removed the module, and the site goes white page of death. errors_log reports:
[Tue Jul 27 02:29:58 2010] [error] [client 66.249.65.87] PHP Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/memcache/memcache.inc' (include_path='.:') in /var/www/vhosts/filiera.fr/httpdocs/includes/bootstrap.inc on line 1111
So I bring it back. I then go and remove the following lines from settings.php:
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
// Important to define a default cluster in both the servers
// and in the bins. This links them together.
'memcache_servers' => array('127.0.0.1:11211' => 'default'),
'memcache_bins' => array('cache' => 'default'),
);
In which case the server again goes white page of death. error_log reports:
[Tue Jul 27 02:33:10 2010] [error] [client 207.46.204.194] PHP Notice: unserialize() [function.unserialize]: Error at offset 0 of 4 bytes in /var/www/vhosts/filiera.fr/httpdocs/includes/bootstrap.inc on line 551
This line is inside this function:
function variable_init($conf = array()) {
// NOTE: caching the variables improves performance by 20% when serving cached pages.
if ($cached = cache_get('variables', 'cache')) {
$variables = $cached->data;
}
else {
$result = db_query('SELECT * FROM {variable}');
while ($variable = db_fetch_object($result)) {
$variables[$variable->name] = unserialize($variable->value); /// <<< This is line 551
}
cache_set('variables', $variables);
}
foreach ($conf as $name => $value) {
$variables[$name] = $value;
}
return $variables;
}
Please advise. It's late and my site is dead.
Thanks.
Comments
Comment #1
jeremy commentedAre you perhaps using the 5.x version of the module, not the 6.x version? In the 5.x version there was a patch you had to apply, which you'd also have to un-apply if removing the module...? (I ask, as it was related to serialize/unserialize).
Comment #2
catchYes this looks like a 5.x issue, that branch is no longer supported so I'm closing this out.