• Resolved Jevuska

    (@jevuska)


    With setting WP_DEBUG to true, I use custom taxonomy (like category), after try to save some category list under Appearance > Menu, the error notice shown:

    Notice: Undefined variable: supercache_home in /home/dir/public_html/domain/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1143

    I just try to fix it by

    if ( ! empty( $supercache_home ) )
    	wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}page/." );

    Please your support for the best solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • #misterebs

    (@ekoboedhisantoso)

    In [..]/wp-content/plugins/wp-super-cache/wp-cache-phase2.php line 1143, change:

    wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}page/." );
    $supercache_home = get_supercache_dir();
    prune_super_cache( $supercache_home . 'page/', true );

    to

    $supercache_home = get_supercache_dir();
    wp_cache_debug( "wp_cache_post_id_gc clearing cache in {$supercache_home}page/." );
    prune_super_cache( $supercache_home . 'page/', true );

    This was fixed a long time ago and that change is already in the current version. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined variable: supercache_home’ is closed to new replies.