WordPress toolkit error: Call to a member function get() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php

Created:

2016-12-18 06:54:57 UTC

Modified:

2017-08-08 13:19:23 UTC

2

Was this article helpful?


Have more questions?

Submit a request

WordPress toolkit error: Call to a member function get() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

WordPress installation shows error in Plesk after updating plugins:

PHP Fatal error:  Call to a member function get() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php on line 51
Fatal error: Call to a member function get() on a non-object in /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php on line 51

W3 Total Cache plugin is installed.

Cause

Outdated object-cache.php file that does not compatible with updated W3 Total Cache plugin version.

Resolution

  1. Rename outdated file:

    # mv /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php /var/www/vhosts/example.com/httpdocs/wp-content/object-cache.php_old
  2. Synchronize WordPress instance by clicking the button with the same name.

  3. Deactivate 'W3 Total Cache' plugin for this instance.

  4. Activate it again to recreate object-cache.php file
Have more questions? Submit a request
Please sign in to leave a comment.