Warning: Redis::connect
-
Warning: Redis::connect(): connect() failed: Connection refused in xxxxx/httpdocs/wp-content/object-cache.php on line 418 , Please help
Regards,
-
Please read installation instructions, if that doesn’t help post your diagnostics.
Status: Not connected
PHP Version: 7.0.16
Multisite: No
Redis: 3.1.1
Predis: 1.1.1
Status: Not Connected
Client: PECL Extension (v3.1.1)
WP_REDIS_SCHEME: “tcp”
WP_CACHE_KEY_SALT: “mysite.com”
Drop-in: Valid
Global Prefix: “wp_3tvcbc_”
Blog Prefix: “wp_3tvcbc_”
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”,”bp”,”bp_last_activity”,”bp_member_type”,”bp_xprofile”,”bp_xprofile_data”,”bp_xprofile_fields”,”bp_xprofile_groups”,”xprofile_meta”,”bp_activity”,”bp_activity_comments”,”activity_meta”,”blog_meta”,”bp_friends_requests”,”bp_friends_friendships”,”bp_friends_friendships_for_user”,”bp_groups”,”bp_group_admins”,”bp_group_invite_count”,”group_meta”,”bp_groups_memberships”,”bp_groups_memberships_for_user”,”bp_messages”,”bp_messages_threads”,”bp_messages_unread_count”,”message_meta”,”bp_notifications”,”notification_meta”,”themes”]Looks like you didn’t setup any of the connection parameters (except
WP_REDIS_SCHEME
), you can read more about them here: https://www.ads-software.com/plugins/redis-cache/other_notes/It’s still display – Warning: Redis::connect(): connect() failed: Connection refused in xxxxx/httpdocs/wp-content/object-cache.php on line 418
Status: Not Connected
PHP Version: 7.0.16
Multisite: No
Redis: 3.1.1
Predis: 1.1.1
Status: Not Connected
Client: PECL Extension (v3.1.1)
WP_REDIS_CLIENT: “pecl”
WP_REDIS_SCHEME: “tcp”
WP_REDIS_HOST: “127.0.0.1”
WP_REDIS_PORT: “6379”
WP_REDIS_DATABASE: “0”
WP_CACHE_KEY_SALT: “cookkoo.com”
Drop-in: Valid
Global Prefix: “wp_3tvcbc_”
Blog Prefix: “wp_3tvcbc_”
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”,”bp”,”bp_last_activity”,”bp_member_type”,”bp_xprofile”,”bp_xprofile_data”,”bp_xprofile_fields”,”bp_xprofile_groups”,”xprofile_meta”,”bp_activity”,”bp_activity_comments”,”activity_meta”,”blog_meta”,”bp_friends_requests”,”bp_friends_friendships”,”bp_friends_friendships_for_user”,”bp_groups”,”bp_group_admins”,”bp_group_invite_count”,”group_meta”,”bp_groups_memberships”,”bp_groups_memberships_for_user”,”bp_messages”,”bp_messages_threads”,”bp_messages_unread_count”,”message_meta”,”bp_notifications”,”notification_meta”,”themes”]That means that you’re not setting the right credentials.
What it’s mean? please help to explain.
This plugin can not connect to your Redis server, because you did not set the right connection parameters in your
wp-config.php
file.Ask your server admin for the correct Redis connection parameters.
You can read more about the connection parameters here: https://www.ads-software.com/plugins/redis-cache/other_notes/
Hi Till,
I have checked the installation process and activated Redis for one of my wordpress site hosted at pantheon. Under Connection Parameters, You have mentioned some constants to be placed at wp-config.php.
I am not pretty sure, what exactly I set as values for those constants. Like WP_REDIS_HOST, the default is 127.0.0.1. I understood that setting new values for these constants at wp-config.php will overwrite the defaults have been given at object-cache.php file.
So, here my question is, what shall I put for dev/test/live instances probably for all constants?
Mainly I am done with 3 initial steps..
1. Activated Redis at pantheon (dev).
2. Installed Redis Object Cache cache.
3. Created same copy of wp-content/plugins/redis-cache/includes/object-cache.php at wp-content/.
Now I am not sure what would be the host, port, DB, password etc at least for Pantheon dev.
So, if you have any idea to share with me, please?I’d suggest you ask Pantheon for the Redis connection details.
- The topic ‘Warning: Redis::connect’ is closed to new replies.