Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP Super Cache caching broken

Tags:

wordpress

I am having an ambiguous error. The path in the error is correct:

Warning! WP Super Cache caching broken! The script advanced-cache.php could not load wp-cache-phase1.php.

Please edit /wp-content/advanced-cache.php and make sure the path to /wp-content/plugins/wp-super-cache/wp-cache-phase1.php is correct.

What needs to be fixed?

like image 855
Dustin Oprea Avatar asked Apr 22 '13 02:04

Dustin Oprea


1 Answers

The problem is that the constant is not defined until after the plugin loads. This error is possible if the line "require_once(ABSPATH . 'wp-settings.php');" is present in wp-config.php . WPCACHEHOME is probably being defined after this line, but needs to be defined above it:

define( 'WPCACHEHOME', '<site root>/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
require_once(ABSPATH . 'wp-settings.php');
like image 166
Dustin Oprea Avatar answered Oct 12 '22 09:10

Dustin Oprea