• Resolved Jora Vartanov

    (@ruslancic)


    Hey! I have working redis on some of my servers, which runDebian+Nginx + php7.4!

    Now, i ahve another fresh server, that runs CentOS+Nginx+php8.1!

    And when i try to install Redis Object Cache, via >

    wp plugin install redis-cache --activate and wp redis enable, my site goes down, and i have this error in nginx logs:

    2023/11/16 13:50:38 [error] 42567#42567: *1139 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function Predis\Connection\stream_socket_client() in /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:108
    Stack trace:
    #0 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(184): Predis\Connection\StreamConnection->createStreamSocket()
    #1 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(83): Predis\Connection\StreamConnection->unixStreamInitializer()
    #2 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(80): Predis\Connection\StreamConnection->createResource()
    #3 /var/www/example/www/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(230): Predis\Connection\AbstractConnection->connect()

    Can you help me with this? Thx in advance!

  • The topic ‘Connection error Predis\Connection’ is closed to new replies.