Support » Plugin: W3 Total Cache » Cannot redeclare wp_cache_add while using wp-cli

  • Resolved Vineet

    (@vineettalwar)


    Following is the error message,
    PHP Fatal error: Cannot redeclare wp_cache_add() (previously declared in /htdocs/wp-content/object-cache.php:92) in /htdocs/wp-includes/cache.php on line 31

    While running, any wp cli command throws aforementioned error message.
    – WordPress: 5.1 multisite installation
    – /wp-content/object-cache.php is present and
    running updated code from from /wp-content/plugins/w3-total-cache/wp-content/object-cache.php

    — issue started, after I have upgraded to WordPress 5.1 to my installations.
    — Now no wp-cli command is working.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot redeclare wp_cache_add while using wp-cli’ is closed to new replies.