Download & Extend

WSOD with cache module. Unable to configure etc.

Project:Cache
Version:6.x-1.0-beta1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi there.. I am trying to use the cache module with Drupal.

I have APC and memcached installed and running on my server.
I have to admit to being a bit confused as to whether APC is being used anyway by Drupal as it seems to think it is... but perhaps that is because the cache module is installed and enabled. Forgive my ignorance there.

Simply installing the module and enabling it causes no problems. But I am unable to configure the module.
I am guessing this is because I have phpinfo disabled. When I click on the cache function I get a very small page creation statistic. When phpinfo is disabled and the cache cleared I cannot access that page any more. So far, so good.. I guess. But even though I can see no configuration pages and am unsure if there are any I always get a warning that cache is not configured in my site report.

However, when I try to add even the vanilla cache setup to my settings.php file I get the WSOD site wide.

I have tried clearing caches. Disabling them etc. etc. but no joy.

Are the settings in Performace supposed to be off when the cache module is installed?
Do they clash?

One further thing I can see APC is generating cached pages when I check with apc.php.

So overall I am very confused. It seems to be half working...

Any help appreciated.

Thanks. :)

Comments

#1

Please post your $cont['cache_inc'] and $conf['cache_settings'].

> I am guessing this is because I have phpinfo disabled
You mean phpinfo was putten into php disabled functions list?

> Are the settings in Performace supposed to be off when the cache module is installed?
Will take a look.

Also, please post any logs. If you receive WSOD then probably your web-server is generating some php logs.

#2

With regards to $cont['cache_inc'] and $conf['cache_settings'] I am currently commenting the entire block out in settings.php (as it is what causes the WSOD). I have only ever used the settings as prescribed on the cache module page:

i.e:

<?php
    $conf
['cache_inc'] = './sites/all/modules/cache/cache.inc';
   
$conf['cache_settings'] = array(
     
'engines' => array(
       
'db-engine' => array(
         
'engine' => 'database',
        ),
      ),
     
'schemas' => array(
       
'db-schema' => array(
         
'db-engine',
        )
      ),
     
'bins' => array(
       
'default' => 'db-schema',
      ),
    );
?>

And the next one after that on the same page.

Yes, phpinfo is in the disabled functions list.
Since reenabling it and then disabling it again I now always get a three line cache report like this..

Page execution time was 134.85 ms.
Memory usage:
Memory used at: devel_init()=0.33 MB, devel_shutdown()=1.09 MB.

It's strange that it now works, but I presume perhaps it is perhaps now caching that page!?!?

I have tried feeding errors direct to the screen, and checked for PHP errors. I am getting none as far as I can see, which surprised me... I will double check and post back. :)

#3

Actually I have now fixed this by using fixed paths to the module. Looking at the examples again they actually refer to an out of date? / different configuration than the normal Drupal setup? Am I correct?

#4

> Actually I have now fixed this by using fixed paths to the module.
What do you mean?

#5

This is not the correct path for any Drupal install I have ever had.

./sites/all/modules/cache/cache.inc

(I am guessing I am perhaps out of step with most people as I keep my modules in the main modules dir.)

That caught me out. In any case changing the path to the correct path also did not work.
What I did in the end was take the path right back to /var/www/vhosts etc..

Sorry for any confusion. :)

nobody click here