Title: Cannot redeclare wp_cache
Last modified: December 27, 2022

---

# Cannot redeclare wp_cache

 *  [rebrush2](https://wordpress.org/support/users/rebrush2/)
 * (@rebrush2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/)
 * Cannot redeclare wp_cache_add() (previously declared in /opt/bitnami/wordpress/
   wp-includes/cache.php:41) in **/bitnami/wordpress/wp-content/plugins/memcached/
   object-cache.php** on line **19**
 * how can i solve this problem?
 * i use lighsail bitnami wordpress

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16323295)
 * Hi,
 * did you follow installation instructions?
 * [https://wordpress.org/plugins/memcached/#installation](https://wordpress.org/plugins/memcached/#installation)
 *  [musicarenagh](https://wordpress.org/support/users/musicarenagh/)
 * (@musicarenagh)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16331591)
 * I am facing a similar issue. I have everything set up correctly on my hosting
   account, and yet when I try to activate the plugin on my WordPress site, I get
   the same feedback. How do I resolve that?
 *  [q1LLa](https://wordpress.org/support/users/vov7512/)
 * (@vov7512)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16363631)
 * I have the same problem. I did everything strictly according to the instructions
   and an error occurs: Fatal PHP error: it is not possible to re-declare wp_cache_and()(
   previously declared in /var/www/fastuser/data/www/site.ru/wp-content/object-cache.
   php:19) in /var/www/fastuser/data/www/site.ru/wp-content/plugins/memcached/object-
   cache.php in line 19, the referent:
 *  Plugin Contributor [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16363658)
 * Remove `memcached/` folder from plugins.
 *  [q1LLa](https://wordpress.org/support/users/vov7512/)
 * (@vov7512)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16366085)
 * After deleting the folder, the plugin simply disappears. How to make it work?
 *  Plugin Contributor [Andrija Vučinić](https://wordpress.org/support/users/aidvu/)
 * (@aidvu)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16366222)
 * Hi, this isn’t the usual plugin. If you copied `object-cache.php` to `wp-content/`
   it should already be working after you deleted it from `plugins/`.
 * You can install `debug-bar` or a plugin that can track `object-cache` stuff to
   figure if it is working.
 *  [q1LLa](https://wordpress.org/support/users/vov7512/)
 * (@vov7512)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16371559)
 * Thanks, I figured it out. Is it necessary to delete the plugin folder, or can
   I leave the plugin inactive to keep track of updates via wordpress?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Cannot redeclare wp_cache’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/memcached.svg)
 * [Memcached Object Cache](https://wordpress.org/plugins/memcached/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memcached/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memcached/)
 * [Active Topics](https://wordpress.org/support/plugin/memcached/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memcached/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memcached/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [q1LLa](https://wordpress.org/support/users/vov7512/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-redeclare-wp_cache/#post-16371559)
 * Status: not resolved