Fatal error: Cannot redeclare wp_cache_add()
-
Hey,
I’m getting this when trying to install your plugin:
Fatal error: Cannot redeclare wp_cache_add() (previously declared in /home/plantemania/public_html/wp-includes/cache.php:41) in /home/plantemania/public_html/wp-content/plugins/object-cache.php on line 19
Please note that I have manually uploaded
object-cache.php
towp-content
as recommended in the installation instructions.I’ve also added
define( 'WP_CACHE_KEY_SALT', 'plantemania' );
inwp-config.php
.Yes, the PHP module is installed and the service is running:
plantemania@server:~$ php -m | grep memcache memcached plantemania@server:~$ systemctl status memcached ● memcached.service - memcached daemon Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2022-12-16 08:58:34 EET; 32min ago Docs: man:memcached(1) Main PID: 1473014 (memcached) Tasks: 10 (limit: 4694) Memory: 29.6M CPU: 1.599s CGroup: /system.slice/memcached.service └─1473014 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1 -P /var/run/memcached/memcached.pid plantemania@server:~$
Any way to fix this? Thank you
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Fatal error: Cannot redeclare wp_cache_add()’ is closed to new replies.