Title: Failed opening required object-cache.php
Last modified: November 23, 2016

---

# Failed opening required object-cache.php

 *  Resolved [rezeptpflichtig](https://wordpress.org/support/users/rezeptpflichtig/)
 * (@rezeptpflichtig)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/)
 * Hello,
    when i enable the cache via GUI settings it says:
 *     ```
       Status: Not Connected
       Client: PECL Extension (v3.0.0-rc1)
       ```
   
 * I can connect to the unix socket with redis-cli but it won’t connect with the
   plugin.
    Settings in wp-config.php i added
 *     ```
       /** Redis Caching Settings */
       define('WP_REDIS_PATH', '/data/sockets/redis/redis.sock');
       define('WP_REDIS_SCHEME', 'unix');
       ```
   
 * when i disable the cache
 *     ```
       PHP Warning:  require_once(/web/wordpress/wp-content/object-cache.php): failed to open stream: No such file or directory in /web/wordpress/wp-includes/load.php on line 482
   
       PHP Fatal error:  require_once(): Failed opening required '/web/wordpress/wp-content/object-cache.php' (include_path='.') in /web/wordpress/wp-includes/load.php on line 482
       ```
   
 * the object-cache.php is indeed in the wp-content folder with permissions 644
 * I don’t know how to troubleshoot this any further, any help is appreciated!

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8474544)
 * The `object-cache.php` is loaded automatically by WordPress, so I assume the 
   PHP warning you’re seeing is file permission related error. I’d suggest you ask
   your hosting provider for assistance with that.
 * Regarding the Redis connection, could you post text from the “Diagnostics” section
   below the Redis server list?
 *  Thread Starter [rezeptpflichtig](https://wordpress.org/support/users/rezeptpflichtig/)
 * (@rezeptpflichtig)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8476539)
 * Thank you Till for your fast reply,
    Diagnostic Section:
 *     ```
       PHP Version: 7.0.12
       Multisite: No
       Redis: 3.0.0-rc1
       Predis: 1.1.1
       Status: Not Connected
       Client: PECL Extension (v3.0.0-rc1)
       WP_REDIS_SCHEME: "unix"
       WP_REDIS_PATH: "\/data\/sockets\/redis\/e*****-259.sock"
       WP_CACHE_KEY_SALT: ""
       Drop-in: Valid
       Global Prefix: "bbha_"
       Blog Prefix: "bbha_"
       Global Groups: ["blog-details","blog-id-cache","blog-lookup","global-posts","networks","rss","sites","site-details","site-lookup","site-options","site-transient","users","useremail","userlogins","usermeta","user_meta","userslugs"]
       Ignored Groups: ["counts","plugins","blog-details","blog-id-cache","blog-lookup","global-posts","networks","rss","sites","site-details","site-lookup","site-options","site-transient","users","useremail","userlogins","usermeta","user_meta","userslugs","themes"]
       ```
   
 *  Thread Starter [rezeptpflichtig](https://wordpress.org/support/users/rezeptpflichtig/)
 * (@rezeptpflichtig)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8477381)
 * solved.
    the settings in the wp-config.php were added to the end of the file,
   but had to be defined earlier. thank you for your time!
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8478067)
 * Glad you worked it out!
 *  [jookkoo](https://wordpress.org/support/users/jookkoo/)
 * (@jookkoo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481536)
 * Hello,
    when i enable the cache via GUI settings it says:
 * Status: Not Connected
    Client: PECL Extension (v2.2.5)
 * in wp-config.php i added at the top and below of w3 Total Cache.
 * /** Enable W3 Total Cache */
    define(‘WP_CACHE’, true); // Added by W3 Total 
   Cache
 * /** Redis Caching Settings */
    define ( ‘WP_REDIS_HOST’, ‘127.0.0.1’);
 * And on Diagnostics.
 * PHP Version: 5.6.28
    Multisite: No Redis: 2.2.5 Predis: 1.1.1 Status: Not Connected
   Client: PECL Extension (v2.2.5) WP_REDIS_HOST: “127.0.0.1” WP_CACHE_KEY_SALT:“”
   Drop-in: Valid
 * Please help and Thank you.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481560)
 * [@jookkoo](https://wordpress.org/support/users/jookkoo/): Your using the default
   credentials. Can you verify them by executing this command via SSH on your server?
 *     ```
       redis-cli ping
       ```
   
 *  [jookkoo](https://wordpress.org/support/users/jookkoo/)
 * (@jookkoo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481748)
 * Thank you for your quick reply. after i’ve run your command. it’s display as 
   below.
 * -bash: redis-cli: command not found
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481774)
 * Looks like Redis Server is not installed on your sever.
 *  [jookkoo](https://wordpress.org/support/users/jookkoo/)
 * (@jookkoo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481797)
 * Thank you so much, Now i’ve installed redis from [https://redis.io/topics/quickstart](https://redis.io/topics/quickstart)
   and your Redis is display – Status Connectd.
 * Thank you again.
 *  [jookkoo](https://wordpress.org/support/users/jookkoo/)
 * (@jookkoo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481831)
 * Now, Settings-Redis it’s display as below.
 * Status: – Connected
    Client: – Predis (v1.1.1)
 * PHP Version: 7.0.13
    Multisite: No Redis: Not Found Predis: 1.1.1 Status: Connected
   Client: Predis (v1.1.1) WP_REDIS_HOST: “127.0.0.1” WP_CACHE_KEY_SALT: “” Drop-
   in: Valid
 * What it’s mean Redis: Not Found?
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481850)
 * “Redis” only refers to PHP’s PhpRedis extension. I’ll make it more clear with
   the next release.

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

The topic ‘Failed opening required object-cache.php’ 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/)

 * 11 replies
 * 3 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/failed-opening-required-object-cache-php/#post-8481850)
 * Status: resolved