• 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:

    <?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' );
    ?>

    https://www.ads-software.com/extend/plugins/wp-super-cache/

Viewing 15 replies - 31 through 45 (of 49 total)
  • It is the same problem as everybody else, nothing different. Your hosting company simply changed something in their server adress (what we call “absolute path”). The plugin is using that “adress”. That is why, now it can’t reach one file, and is showing a warning message.

    The warning message is giving you the right “path” : /home/yngvilvg/public_html/wp-content/advanced-cache.php

    You will need to correct that “path” by hand. I suggest you find someone able to do it for you, or simply disable the plugin (if you are able to reach it). It is a really simple job, but if you know nothing about those things, it can be hard to understand. Also, your username and password are needed to reach that file (by the server control panel or by FTP).

    Thanks, its helpful to know its a hosting issue.
    I’ll talk to a guy I know and he’ll help me from here.

    Next time I post here, I’ll probably be a little web wiser.

    Hey guys,

    Just wanted to share that I had the EXACT same problem and only after I tried BOTH of the suggestions made by…

    revixi5
    &
    Jesterx93

    …did it work for me (meaning one without the other did not fix, but both did).

    Thanks for the help!
    Cheers
    Jay

    i am having the same problem keep on getting the following message:

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

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

    tried to fix it as per the advice in the beginning of this thread but couldnt and right now i cant edit my website

    The easiest way would be to delete the WP Super Cache plugin folder by FTP (or from your hosting control panel) and then login into your WordPress dashboard in order to re-install the plugin from scratch.

    Thanks Revixi5 i just deleted it and its working now

    Its the worst plugin to install, i hpe it works beter then it installs.

    Ok solution:::

    because of file permissions problems the plugin wont install easily on some servers, if it installs very easy perhaps your file permissions are not so safe!

    deactivate and totaly remove the plugin
    create backup for your wp site
    install the plugin and activate
    copy the file /where u installed wp/wp-content/plugins/wp-super-cache/advanced-cache.php to /where u installed wp/wp-content/
    Open the wp-config.php file in /where u installed wp/

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    <strong>define('WP_CACHE', true);
    define( 'WPCACHEHOME', '/where u installed wp/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager</strong>
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    Save the file and it should be ok

    [Link removed – please keep help on these forums]

    I wasn’t having this problem until I just updated to 1.3.2. Is there a fix coming? I’m going to try and roll back a version to get it back the way it was.

    I went ahead and did like revixi5 suggested and deactivated, uninstalled, and reinstalled the plugin. Working again. Thanks revixi5!

    There are different ways to solve that simple problem, but this is the “easiest” way…

    Same issue, nothing worked with 1.3.2, exept Start-Page.

    After deinstalling the new Version normal via plugin-page and reinstalling version 1.3.1, erverything went again in best manner.

    Hi, for some reason, my wp-config.php lost it’s first line – <?php
    before super-cache’s defines.

    I’ve read few solutions here and on other pages, nothing helped so I’ve compared config with backup…

    put <?php on the first line of wp-config.php and everything worked great

    Thanks a lot for the post, this helped me fix this problem.

    The reason in my case was that I was moving the WordPress blog from a subdomain at https://blog.givensa.com to a subfolder in https://givensa.com/blog. So in my wp_config file the /httpdocs/ was missing in the path after the update. It was a bit tricky to spot since the hosting provider who did the move from the old location to the present location left the old blog as well so there was two unique paths to the same blog.

    I agree that the error message is really confusing since the problem was never really in the advanced_cache.php file.

    Interesting. Good to know that. Thanks.

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