Title: redis php error
Last modified: November 11, 2022

---

# redis php error

 *  Resolved [slservice33](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/redis-php-error/)
 * My site crashed today (maria db killed by oom) and the first PHP error message
   a few minutes before it crashed was about redis.
 * Any advice on finding the cause of this error would be much appreciated.
 *     ```
       [10-Nov-2022 20:48:10 UTC] Predis\Connection\ConnectionException: Error while reading line from the server. [tcp://127.0.0.1:6379] in /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractCo>
       Stack trace:
       #0 /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(286): Predis\Connection\AbstractConnection->onConnectionError()
       #1 /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(120): Predis\Connection\StreamConnection->read()
       #2 /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(112): Predis\Connection\AbstractConnection->readResponse()
       #3 /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(316): Predis\Connection\AbstractConnection->executeCommand()
       #4 /var/www/html/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(299): Predis\Client->executeCommand()
       #5 /var/www/html/wordpress/wp-content/object-cache.php(1792): Predis\Client->__call()
       #6 /var/www/html/wordpress/wp-content/object-cache.php(182): WP_Object_Cache->get()
       #7 /var/www/html/wordpress/wp-includes/option.php(305): wp_cache_get()
       #8 /var/www/html/wordpress/wp-includes/option.php(191): wp_load_alloptions()
       #9 /var/www/html/wordpress/wp-includes/default-constants.php(161): get_option()
       #10 /var/www/html/wordpress/wp-settings.php(365): wp_plugin_directory_constants()
       #11 /var/www/html/wordpress/wp-config.php(111): require_once('/var/www/html/w...')
       #12 /var/www/html/wordpress/wp-load.php(50): require_once('/var/www/html/w...')
       #13 /var/www/html/wordpress/wp-blog-header.php(13): require_once('/var/www/html/w...')
       #14 /var/www/html/wordpress/index.php(17): require('/var/www/html/w...')
       #15 {main}
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fredis-php-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/redis-php-error/#post-16189906)
 * Restart Redis Server?
 *  Thread Starter [slservice33](https://wordpress.org/support/users/slservice33/)
 * (@slservice33)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/redis-php-error/#post-16362000)
 * I was getting a lot of PHP errors with Redis turned on. (shown by PHP error log
   plugin)
 * I solved the problem by installing the Redis PHP extension as in the link below.
   
   [https://tecadmin.net/how-to-install-redis-on-debian-10/](https://tecadmin.net/how-to-install-redis-on-debian-10/)
 * I dont get random PHP errors now.

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

The topic ‘redis php error’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [slservice33](https://wordpress.org/support/users/slservice33/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/redis-php-error/#post-16362000)
 * Status: resolved