Enabled the module. Went to admin/settings/performance/cache-backend and got a WSOD.
So I enabled errors and saw the following:
Fatal error: Class 'DrupalDatabaseCache' not found in /home/xxxx/public_html/modules/cache_backport/cache_backport.admin.inc on line 65
I'm also getting this:
Default backend named 'DrupalDatabaseCache' does not exists, the system is gracefully downgrading to 'DrupalDatabaseCache'. You should fix your settings.php file.
Did I do something wrong?
Here's my settings.php:
$conf['cache_inc'] = 'modules/cache_backport/cache.inc';
$conf['redis_client_interface'] = 'Predis';
$conf['cache_backends'][] = 'modules/redis/redis.autoload.inc';
$conf['cache_prefix'] = array('default' => 'cbn-redis');
# Handle these with Redis #
$conf['cache_default_class'] = 'Redis_Cache';
$conf['cache_class_cache_bootstrap'] = 'Redis_Cache';
$conf['cache_class_cache'] = 'Redis_Cache';
$conf['cache_class_cache_block'] = 'Redis_Cache';
$conf['cache_class_cache_content'] = 'Redis_Cache';
$conf['cache_class_cache_form'] = 'Redis_Cache';
$conf['cache_class_cache_menu'] = 'Redis_Cache';
$conf['cache_class_cache_page'] = 'Redis_Cache';
$conf['cache_class_cache_rules'] = 'Redis_Cache';
$conf['cache_class_cache_views'] = 'Redis_Cache';
$conf['cache_class_cache_views_data'] = 'Redis_Cache';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['lock_inc'] = 'modules/redis/redis.lock.inc';
$conf = array(
// The path to wherever memcache.inc is. The easiest is to simply point it
// to the copy in your module's directory.
'mimedetect_magic' => '',
);
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array('127.0.0.1');
include './modules/domain/settings.inc';
Comments
Comment #1
labboy0276 commentedHello
I am getting the same error on Pantheon:
Fatal error: Class 'DrupalDatabaseCache' not found in /srv/bindings/5206a127a7994a1285594149db21412d/code/sites/all/modules/cache_backport/cache_backport.admin.inc on line 65
$conf['cache_inc'] = 'sites/all/modules/cache_backport/cache.inc';
// Use Redis for caching.
$conf['redis_client_interface'] = 'PhpRedis';
$conf['cache_backends'][] = 'sites/all/modules/redis/redis.autoload.inc';
$conf['cache_default_class'] = 'Redis_Cache';
$conf['cache_prefix'] = array('default' => 'pantheon-redis');
// Do not use Redis for cache_form (no performance difference).
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
// Use Redis for Drupal locks (semaphore).
$conf['lock_inc'] = 'sites/all/modules/redis/redis.lock.inc';
My config, used to work just fine... I am on rc-2
Comment #2
labboy0276 commentedComment #3
pounardHello, sorry for the time I took to answer.
That is an odd bug knowing that the module's
database.incfile is supposed to be loaded when_cache_init()is called ; Are you sure thecache.incfile is correctly loaded ? It is supposed to happen when Drupal bootstraps.Comment #4
pounardAfter a few thoughts, it should have been loaded, if you set a
cache_incvariable with a non existing file it is supposed to WSOD.Could you please try to debug by breaking where Drupal attemps to load the
cache_incfile from variables ? With a vanilla core it supposed to happen in theDRUPAL_BOOTSTRAP_EARLY_PAGE_CACHEbootstrap phase.Comment #5
labboy0276 commentedNot really sure how to do that.
We have just a d6 site on pantheon if you want to try that.
Comment #6
pjcdawkins commentedSame problem here (trying to set up Redis for Drupal 6 on Platform.sh)
Comment #7
abenamer commentedI'm getting this error message:
Default backend named 'DrupalDatabaseCache' does not exists, the system is gracefully downgrading to 'DrupalDatabaseCache'. You should fix your settings.php file.
Soon after that, it goes to a error message (WSOD) that says:
Fatal error: require_once(): Failed opening required '/app/public/includes/database/database.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /app/public/sites/all/modules/redis/lib/Redis/AbstractBackend.php on line 33It seems to be referencing a file that only exists in D7 not D6?
Comment #8
pounardOh right, indeed, need to fix that! Thanks for reporting.
Comment #9
abenamer commentedIs there anything else you'll need from me to fix? I'm anxious for a patch.
Comment #10
pounardOk, I will fix this in both Redis 7.x-2.x and Redis 7.x-3.x today. Then I will try to see why the DrupalDatabaseCache is not being found in Cache Backport.
Comment #11
pounardPlease note that I fixed the Redis module and pushed new releases (will be visible in a few minutes):
Comment #13
pounardOk, I now also added a new release of the cache_backport module, that will only fix the admin WSOD, I hope, please upgrade to the 6.x-1.0-rc3 version.
Re-open the bug once you upgraded all your modules if you are still experiencing any problem.
Comment #14
pjcdawkins commentedThanks @pounard!
Comment #15
abenamer commentedThanks @pounard! This worked perfectly on four Drupal 6 sites I still admin on platform.sh!