Title: Uncaught Predis\Connection\ConnectionException: Error while reading
Last modified: May 10, 2017

---

# Uncaught Predis\Connection\ConnectionException: Error while reading

 *  Resolved [webitman](https://wordpress.org/support/users/webitman/)
 * (@webitman)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/uncaught-predisconnectionconnectionexception-error-while-reading/)
 * Installed the plugin and the status shows it is connected.
    PHP Version: 7.1.4
   Multisite: No Redis: Not Found Predis: 1.1.1 Status: Connected Client: Predis(
   v1.1.1) WP_REDIS_CLIENT: “predis” WP_REDIS_HOST: “127.0.0.1” WP_CACHE_KEY_SALT:“”
   Drop-in: Valid
 * But the errorlog keeps generating errors…..
    What could be the reason for this
   behaviour? Shot from the errorlog : [10-May-2017 11:36:17 UTC] PHP Fatal error:
   Uncaught Predis\Connection\ConnectionException: Error while reading line from
   the server. [tcp://127.0.0.1:6379] in /home/domain/public_html/wp-content/plugins/
   redis-cache/includes/predis.php:4354 Stack trace: #0 /home/domain/public_html/
   wp-content/plugins/redis-cache/includes/predis.php(4722): Predis\Connection\AbstractConnection-
   >onConnectionError(‘Error while rea…’) #1 /home/domain/public_html/wp-content/
   plugins/redis-cache/includes/predis.php(4319): Predis\Connection\StreamConnection-
   >read() #2 /home/domain/public_html/wp-content/plugins/redis-cache/includes/predis.
   php(4311): Predis\Connection\AbstractConnection->readResponse(Object(Predis\Command\
   StringGet)) #3 /home/domain/public_html/wp-content/plugins/redis-cache/includes/
   predis.php(9069): Predis\Connection\AbstractConnection->executeCommand(Object(
   Predis\Command\StringGet)) #4 /home/domain/public_html/wp-content/plugins/redis-
   cache/includes/predis.php(9052): Predis\Client->executeCommand(Object( in /home/
   domain/public_html/wp-content/plugins/redis-cache/includes/predis.php on line
   4354
 * At line 1161 I did add ?> to complete the object-cache.php

Viewing 1 replies (of 1 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/uncaught-predisconnectionconnectionexception-error-while-reading/#post-9117397)
 * No sure what’s causing this error. I’d suggest you ask the Predis support or 
   your Redis hosting provider for assistance with this issue.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught Predis\Connection\ConnectionException: Error while reading’ 
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/)

## Tags

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/uncaught-predisconnectionconnectionexception-error-while-reading/#post-9117397)
 * Status: resolved