• Resolved lawix

    (@lawix)


    Hello all

    No cache plugins work with my site under development ( w3 total cache, wp super cache, hummingbird …)

    With hummingbird the problem start when enable caching option

    When I activate and want to visit a page other than the index I have this error :

    PHP Fatal error: Call to a member function get() on null in /var/www/wp-includes/cache.php on line 123, referer: https://domain.fr/

    It’s this function :

    function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {
            global $wp_object_cache;
    
            return $wp_object_cache->get( $key, $group, $force, $found );
    }

    WordPress 4.9.8
    wp-config.php :

    define( 'WP_DEBUG', true );
    define( 'WP_CACHE', true );

    Related issue : https://ww.wp.xz.cn/support/topic/unable-activate-cache/#post-10988797 ( I was recommended to write here )

    Any idea ?

    Thanks !
    Will

    • This topic was modified 7 years, 6 months ago by lawix.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter lawix

    (@lawix)

    Ok !! I fix !
    I have this code that broke the cache

    remove_action('shutdown', 'wp_ob_end_flush_all', 1);

    Sorry for all the inconvenience
    And thank you again

    William

    @lawix,

    Awesome! I’ll mark this thread as resolved. If you have any more questions, feel free to create another thread.

    Best regards,
    Anton

Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘unable activate cache’ is closed to new replies.