PHP Fatal error: Class 'DrupalAPCCache' not found in cache.inc on line 31

Created on 30 May 2013, over 11 years ago
Updated 5 August 2024, 5 months ago

Im currently setting up and enabling the APC module version 3.1.13. I have followed readme.txt instructions and have followed the steps correctly. Following this, I check my status report which says: APC has been running for XX minutes. Currently caching 28 entries (1.28 MB).
I then perform a database update and I get the WSOD (White Screen Of Death). I have checked my Apache error logs and Im receiving this below:

PHP Fatal error: Class 'DrupalAPCCache' not found in /DRUPAL_ROOT/includes/cache.inc on line 31

1) I have added the following code to the settings.php file from step 2 in readme.txt

$conf['cache_backends'] = array('sites/all/modules/apc/drupal_apc_cache.inc');
$conf['cache_class_cache'] = 'DrupalAPCCache';
$conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';
//$conf['apc_show_debug'] = TRUE;  // Remove the slashes to use debug mode.


$conf['page_cache_without_database'] = TRUE;
$conf['page_cache_invoke_hooks'] = FALSE;

2) I have replaced the bottom code in DRUPAL_ROOT/includes/cache.inc

variable_get('cache_default_class', 'DrupalDatabaseCache');
to
variable_get('cache_default_class', 'DrupalAPCCache');

I return to my site and get the White Screen AND the exact same error in my logs.

Does anyone have suggestions on this matter, i cannot seem to find much help or documentation on this anywhere.
-Thank YOu

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States Ndesign

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024