• How do you fix this message when installing WP-Super Cache Plugin?

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

    Please edit /home/[user]/public_html/[website]/public/wp-content/advanced-cache.php and make sure the path to /home/[user]/public_html/[website]/public/wp-content/plugins/wp-super-cache/wp-cache-phase1.php is correct.

    I have read some other threads on this and it is confusing as to which files need to be edited and what to edit in them. For instance, advanced-cache.php occurs in both the wp-content folder and the wp-super-cache folder… I have seen people referencing editing the following files..

    …/public/wp-config.php
    …/public/wp-content/advanced-cache.php
    …/public/wp-content/wp-cache-config.php
    …/public/wp-content/plugins/advanced-cache.php

Viewing 1 replies (of 1 total)
  • Thread Starter RealtorDC

    (@realtordc)

    wp-config.php includes the line:

    define(‘WP_CACHE’, true);

    wp-content/advanced-cache.php reads:

    <?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( ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/’ ) ) {
    define( ‘ADVANCEDCACHEPROBLEM’, 1 );
    } elseif ( !include_once( WPCACHEHOME . ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/wp-cache-phase1.php’ ) ) {
    if ( !@is_file( WPCACHEHOME . ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/wp-cache-phase1.php’ ) ) {
    define( ‘ADVANCEDCACHEPROBLEM’, 1 );
    }
    }
    if ( defined( ‘ADVANCEDCACHEPROBLEM’ ) )
    register_shutdown_function( ‘wpcache_broken_message’ );
    ?>

    …wp-content/plugins/advanced-cache.php reads:

    <?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( ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/’ ) ) {
    define( ‘ADVANCEDCACHEPROBLEM’, 1 );
    } elseif ( !include_once( WPCACHEHOME . ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/wp-cache-phase1.php’ ) ) {
    if ( !@is_file( WPCACHEHOME . ‘/home/[USER]/public_html/[SITE]/public/wp-content/plugins/wp-super-cache/wp-cache-phase1.php’ ) ) {
    define( ‘ADVANCEDCACHEPROBLEM’, 1 );
    }
    }
    if ( defined( ‘ADVANCEDCACHEPROBLEM’ ) )
    register_shutdown_function( ‘wpcache_broken_message’ );
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘WP-Super Cache caching is broken’ is closed to new replies.