Replies: 1
Fatal error: Declaration of Predis\Client::getCommandFactory() must be compatible with Predis\ClientInterface::getCommandFactory(): Predis\Command\FactoryInterface in /srv/…/plugins/redis-cache/dependencies/predis/predis/src/Client.php on line 157
I am getting this error on my overview screen. Strangely I get this only on my development site not but staging and production sites. Getting the same error when running wp @dev redis update-dropin
but that is not necessary as I checked the file and its the latest version anyway.
I use Trellis, so all envs are pretty similar.
Plugin ver 2.5.4
WP 6.7.1
Ubuntu 24.04
php-redis 6.1.0-2+ubuntu24.04.1+deb.sury.org+1
valkey-sever installed
PhpRedis (v6.1.0)
shows correctly as client in staging and production but in my dev site I have xdebug in development mode, and it shows me this error in the overview screen. Instead of anything else.
I deleted the object-cache.php
but that does not help, it seems the cache might be actually working. Is it working independently of the rest of the plugin?
Why is it even trying to load predis when I have php-redis installed that is better and faster anyway.
This probably unrelated, but while I am at it, I remember issues with enabling and disabling the cache on production. As I understand it, this just deletes or copies over the object-cache.php
. I had pushed the ‘enable/disable object-cache’ button crash my site and I had to enable it on dev and then commit my site to production with the file in place in the wp-content
directory (called just app
in my case)