• Resolved xxaimsxx

    (@xxaimsxx)


    I have the latest plugin. This plugin is used on all of our sites but I am having issue with this particular site.

    I keep getting this error:

    Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.
    
    The file /var/www/snorkeluk/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.
    
    Warning! Could not update /var/www/snorkeluk/wp-config.php! WPCACHEHOME must be set in config file.

    In my wp-config file I have:

    define( 'WPCACHEHOME', '/var/www/snorkeluk/wp-content/plugins/wp-super-cache' );
    define('WP_CACHE', true);

    but I still get the error. I even changed all the persmission for the wp-config, advanced-cache.php, wp-cache-config.php and the plugins folder to 777 but still nothing. I am at a lost. I haven’t had any issues with the other sites.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    Can you try to reinstall the plugin? Maybe the advanced-cache.php has become corrupted somehow. Make sure to deactivate and delete the plugin completely.

    Try adding a trailing slash to your path:

    define('WPCACHEHOME', '/var/www/snorkeluk/wp-content/plugins/wp-super-cache/');

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Thanks Jonathan, that seemed to work! ^_^

    I got the same problem, slash / is already there…
    How can i solve it?

    I m getting:

    Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.

    The file /var/www/html/moviesgraphy.com/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.

    Warning! Could not update /var/www/html/moviesgraphy.com/wp-config.php! WPCACHEHOME must be set in config file.

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Did you check to see if you have WPCACHEHOME and WP_CACHE defined in your wp-config.php file in root?
    Is there a wp-cache-config.php and advanced-cache.php in your wp-content folder in root?

    althought I defined WPCACHEHOME and WP_CACHE in wp-config.php file in root, the notification still appears!!
    ” Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.

    The file /var/www/html/pkd.gviet.vn/che-suoi-giang/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.”
    I need your support to fix this!!

    Add this back in to wp-settings.php

    /**
    * Filters whether to enable loading of the advanced-cache.php drop-in.
    *
    * This filter runs before it can be used by plugins. It is designed for non-web
    * run-times. If false is returned, advanced-cache.php will never be loaded.
    *
    * @since 4.6.0
    *
    * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
    * Default true.
    */
    if ( WP_CACHE && apply_filters( ‘enable_loading_advanced_cache_dropin’, true ) ) {
    // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
    WP_DEBUG ? include( WP_CONTENT_DIR . ‘/advanced-cache.php’ ) : @include( WP_CONTENT_DIR . ‘/advanced-cache.php’ );

    // Re-initialize any hooks added manually by advanced-cache.php
    if ( $wp_filter ) {
    $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter );
    }
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning! WP Super Cache caching was broken but has been fixed!’ is closed to new replies.