• Resolved teddyshotgun

    (@teddyshotgun)


    Hello, I have a client who runs a wordpress site.

    He installed several plugins and received the following fatal-error:

    Fatal error: Call to a member function add_global_groups() on null in /home/DATABASENAME/public_html/wp-content/object-cache.php on line 144

    Line 144 of object-cache.php is:

    function wp_cache_add_global_groups($groups) {
            global $wp_object_cache;
    
            $wp_object_cache->add_global_groups($groups);

    So, I figured it was just some plugin or compatibility issue with a plugin, so I went into the database and just removed all his plugins temporarily. I tried to reload the page, but I received the exact same error.

    So I went in and just renmaed ‘object-cache.php’ to another file name so it WP wouldn’t have that file to check.

    Seems like I traced the problem back to some plugin called W3-Total-Cache or something or other?

    Question is, what is this ‘object-cache.php’ file, what does it do, and is it necessary? His website is up and running now, I can’t tell if something is broken because I don’t have access to his WP-Admin page, I mean I could get it, but I rather not. Regardless, site seems ok, but will having this ‘object-cache.php’ file removed cause issues down the road?

    Thanks.

    • This topic was modified 8 years, 4 months ago by teddyshotgun.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    It’s generally a “drop-in” plugin automatically installed by other plugins as a requirement, typically caching plugins.

    In this case, I recommend contacting support for your main caching plugin. If it’s W3 Total Cache, that’s at https://www.ads-software.com/support/plugin/w3-total-cache

    Thread Starter teddyshotgun

    (@teddyshotgun)

    Much appreciated sir. I have relayed the information to my client, the site functions just fine without this file. The plugin, undoubtedly is broken without it. However if anyone else runs into this issue, either delete the ‘object-cache.php’ file entirely, or rename it something else like ‘object-cache.backup’ etc. This will at-least bring your WP site backup, run a restart on your web-server too while you’re at it i.e. apache2/httpd.

    This issue was due to the plug w3-total-cache. If I get information from the plugin developers, I will re-post here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Object-Cache.php’ is closed to new replies.