Upgrading Redis Object Cache from 2.5.2 to 2.53 disables our Wordpress multisite setup with the following error message:
Trying to running any wp redis xxx command on command line results into the following traceback:
$ wp redis status
Predis\NotSupportedException: The command 'INFO' is not allowed in replication mode. in /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Replication/ReplicationStrategy.php:51
Stack trace:
#0 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Replication/SentinelReplication.php(546): Predis\Replication\ReplicationStrategy->isReadOperation()
#1 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Replication/SentinelReplication.php(580): Predis\Connection\Replication\SentinelReplication->getConnectionInternal()
#2 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Replication/SentinelReplication.php(712): Predis\Connection\Replication\SentinelReplication->getConnectionByCommand()
#3 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Replication/SentinelReplication.php(752): Predis\Connection\Replication\SentinelReplication->retryCommandOnFailure()
#4 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(349): Predis\Connection\Replication\SentinelReplication->executeCommand()
#5 /home/wordpress/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(303): Predis\Client->executeCommand()
#6 /home/wordpress/www/wp-content/object-cache.php(1153): Predis\Client->__call()
#7 /home/wordpress/www/wp-content/object-cache.php(562): WP_Object_Cache->fetch_info()
#8 /home/wordpress/www/wp-content/object-cache.php(256): WP_Object_Cache->__construct()
#9 /home/wordpress/www/wp-includes/load.php(870): wp_cache_init()
#10 /home/wordpress/www/wp-settings.php(145): wp_start_object_cache()
#11 phar:///home/wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1374): require('...')
#12 phar:///home/wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#13 phar:///home/wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#14 phar:///home/wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#15 phar:///home/wordpress/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#16 phar:///home/wordpress/bin/wp-cli.phar/php/boot-phar.php(20): include('...')
#17 /home/wordpress/bin/wp-cli.phar(4): include('...')
#18 {main}
Error: Error establishing a Redis connection. To disable Redis, delete the `object-cache.php` file in the `/wp-content/` directory.
Deleting object-cache.php temporarily mitigates the issue by disabling Redis Object Cache plugin. Enabling it in admin results into the same error again.
Upgrading Redis Object Cache from 2.5.2 to 2.53 disables our Wordpress multisite setup with the following error message:
Trying to running any
wp redis xxx
command on command line results into the following traceback:Deleting
object-cache.php
temporarily mitigates the issue by disabling Redis Object Cache plugin. Enabling it in admin results into the same error again.Reverting to version 2.5.2 via
results into a working Redis object cache again.
Expected Behavior
Version 2.5.3 should work as 2.5.2
Environment
Taken from the working version 2.5.2