• Resolved therealwebguru

    (@therealwebguru)


    I am getting status not connected and here are what i have so far

    ![image](https://user-images.githubusercontent.com/6054104/48667911-6a654c00-eaaf-11e8-95db-bd2ad3546457.png)

    `
    Status: Not Connected
    Client: PhpRedis (v4.1.1)
    Drop-in: Valid
    Ping: +PONG
    Redis Extension: 4.1.1
    Predis Client: 1.1.1
    PHP Version: 7.2.10-0ubuntu0.18.04.1
    Multisite: No
    Global Prefix: “wp_”
    Blog Prefix: “wp_”
    WP_REDIS_HOST: “redis”
    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”]
    Dropins:
    – Redis Object Cache Drop-In v1.3.8 by Till Krüss
    Plugins:
    – Akismet Anti-Spam v4.1 by Automattic (Inactive)
    – Hello Dolly v1.7 by Matt Mullenweg (Inactive)
    – Nginx Cache v1.0.3 by Till Krüss (Active)
    – Redis Object Cache v1.3.8 by Till Krüss (Active)
    `

    Also when i connect to my wordpress server i am able to connect to the redis server via the hostname redis as used and also at port 6379

    `
    # telnet redis 6379
    Trying 172.29.0.3…
    Connected to redis.
    Escape character is ‘^]’.
    ^]
    telnet> quit
    Connection closed.
    `

    also i have flushed the redis cache with both flushdb and flushall

    `
    Current Instance: redis:6379:0
    redis> flushdb
    “OK”

    redis> flushall
    “OK”
    `

    So what exactly should be looking at to troubleshoot this?

    Right now i only have 2 plugins activated which are both by a same author

    Nginx Cache v1.0.3 and Redis Object Cache v1.3.8

    The Nginx Cache plugin is working fine so am sure it’s not an issue. Also am testing this on a brand new install of wordpress so nothing really has been done to it.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter therealwebguru

    (@therealwebguru)

    fixed it..issue was that these two lines

    `
    define(‘WP_REDIS_HOST’, ‘redis’);
    define(‘WP_CACHE’, true);
    `

    was appended to bottom of wp-config.php file but i moved it up right after the
    define('DB_COLLATE', ''); line and it connected right away

    `
    define(‘DB_COLLATE’, ”);

    define(‘WP_REDIS_HOST’, ‘redis’);
    define(‘WP_CACHE’, true);
    `

    derrickr

    (@derrickr)

    Excellent work @therealwebguru !!

    Wish the plugin documentation clarified config issues such as this.

    Well done, you’ve just got it working for me.

    • This reply was modified 6 years ago by derrickr.

    @therealwebguru, Thank you so much for sharing the fix, it helped me as well.

    I created wordpress account to say thank you to you sir ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘status not connected’ is closed to new replies.