• Resolved rezeptpflichtig

    (@rezeptpflichtig)


    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

    (@tillkruess)

    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

    (@rezeptpflichtig)

    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

    (@rezeptpflichtig)

    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

    (@tillkruess)

    Glad you worked it out!

    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

    (@tillkruess)

    @jookkoo: Your using the default credentials. Can you verify them by executing this command via SSH on your server?

    
    redis-cli ping
    

    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

    (@tillkruess)

    Looks like Redis Server is not installed on your sever.

    Thank you so much, Now i’ve installed redis from https://redis.io/topics/quickstart and your Redis is display – Status Connectd.

    Thank you again.

    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

    (@tillkruess)

    “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.