Support » Plugin: WP Super Cache » Warning! WP Super Cache caching broken! The script advanced-cache.php could not

  • Hello I just tried to instal WP Super Cache and I am getting a weird warning message:

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

    Please edit /home/[our-site-folder]/public_html/[wp-content-folder-renamed]/advanced-cache.php and make sure the path to /home/[our-site-folder]/public_html/[wp-content-folder-renamed]/plugins/wp-super-cache/wp-cache-phase1.php is correct.

    The problem is, I’ve gone into this file, as instructed, and there isn’t really a “path” anywhere.

    I just see the file name of “wp-cache-phase1.php” and try to change that to a full path, but that doesn’t work.

    I’ve tried deactivating and re-activating and that also didn’t work.

    I’ve tried looking online for answers and nothing seems to be solving this issue, that I could find.

    Can you help?

    Here is the code that is in /home/[our-site-folder]/public_html/[wp-content-folder-renamed]/advanced-cache.php:

    # WP SUPER CACHE 1.2
    function wpcache_broken_message() {
    	if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) )
    		echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->";
    if ( false == defined( 'WPCACHEHOME' ) ) {
    	define( 'ADVANCEDCACHEPROBLEM', 1 );
    } elseif ( !include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
    	if ( !@is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
    		define( 'ADVANCEDCACHEPROBLEM', 1 );
    if ( defined( 'ADVANCEDCACHEPROBLEM' ) )
    	register_shutdown_function( 'wpcache_broken_message' );

Viewing 15 replies - 1 through 15 (of 49 total)
  • Plugin Author Donncha O Caoimh


    Did you copy the file there manually?

    In the include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) bit change WPCACHEHOME to the path to that file in the wp-super-cache directory.

    Deactivate the plugin and copy paste the wp-cache-phase1.php in proper Linux path > Activate Plugin. If still error throws, uninstall as written (read carefully the guide on plugin page) and then again install via WordPress interface (at > Search).

    I have that problem also. Can you point out where the fixed path is located so that I could manually edit it. It’s clearly not in wp-content/advanced-cache.php

    OK I figured that out.

    Go to your wp-config.php (located at WordPress root) and fix the path here:

    define( ‘WPCACHEHOME’, ‘new-path-goes-here’ ); //Added by WP-Cache Manager

    This is confusing because of the message 🙂
    I had to dig the code to find that out. There are tons of posts asking for this, I will go around and answer all of them ha ha.

    I am having the same problem. I am new to WordPress and have been troubleshooting this problem for a few days now, but mine maybe slightly different.

    I can install the plugin and activate it. I get the above error message, use Hieu’s method to edit the wp-config.php file, then the error message goes away.

    However, when I try to enable the plugin, it starts to generate an advanced-cache.php file, which it should do, but then my Dashboard, NOT site, gets a Http 500 error. If I delete the advanced-cache.php file, Dashboard will reload. Then, whenever another advanced-cache.php file is created, http 500 all over again. Whenever the file is created Dashboard crashes.

    I have tried deactivating the plugin and reactivating it completely using the 3 step method outlined on the plugin homepage. This does not work. W3 Total Cache produces the same results.

    Any idea?

    Yeah it’s weird because the advanced-cache.php can only throw some error strings into the screen. It can’t cause 500 server error.

    500 error usually happens when you mis-config something (wp-config.php) or something goes wrong with .htaccess.

    My advice: try to comment out each section in the advanced-cache.php to see which line causes the trouble (very old method of debugging lolz).

    Well, at a quick glance, my advanced-cache.php appears identical to the one the OP posted. The only thing I think I need in the wp-config.php is: define( ‘WP_CACHE’, true );, if I’ve read correctly.

    I did try creating an .htacess file in the /wp-content/cache directory (there wasn’t one generated automatically, should there have been?) and pasting some code in there (read it somewhere in plugin’s support), but that didn’t work so I deleted it. I have never touched the wp-root .htaccess file.

    I haven’t tried changing permissions yet, but don’t think they’re the problem.

    Yeah, the thing is when you delete that file, it’s ok again -> so clearly the file advanced-cache.php has the problem.

    Ok, so I placed // at the beginning of each line starting from the top and may have something. Dashboard loaded up again after placing // at the beginning of this line:

    “} elseif ( !include_once( WPCACHEHOME . ‘wp-cache-phase1.php’ ) ) {”

    This is from the plugin’s FAQ:

    18.The error message, “WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed!” appears at the end of every page. Open the file wp-content/advanced-cache.php in your favourite editor. Is the path to wp-cache-phase1.php correct? This file will normally be in wp-content/plugins/wp-super-cache/. If it is not correct the caching engine will not load.

    There is no path in the advanced-cache.php. Should there be one here? (Back to OP problem).

    Yeah, it’s the WPCACHEHOME, that’s not defined. That’s why I gotta change it in wp-config.php

    However, I cna’t understand why you have 500 server problem. May be read your error log file?

    I just found an advanced-cache.php file in the plugin/wp-super-cache folder. Should the path in the wp-config.php point to this one, or to the advanced-cache.php in the wp-content folder?

    Here is my code in wp-config
    define( 'WPCACHEHOME', 'PATH/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager

    Yes, my code is identical to that. Unfortunately, it’s the advanced-cache.php in the wp-content folder that’s giving me the problems. I tried deleting the one in the /plugins/wp-super-cache and it did nothing.

    I am not very familiar with error logs. On my shared server, @bluehost, I choose the one errorlog function I see and refresh it just after I get a 500 error for the first time. However, nothing is showing up on the log that I see refering to my ip address.


    Thanks ever so much for sharing this, I couldn’t figure it out!

    Worked like a treat adding:

    define( 'WPCACHEHOME', 'new-path-goes-here' );

    to the WP wp-config.php file in root

Viewing 15 replies - 1 through 15 (of 49 total)
  • The topic ‘Warning! WP Super Cache caching broken! The script advanced-cache.php could not’ is closed to new replies.