• Resolved homelesshenry

    (@homelesshenry)


    Hello,

    I made the mistake of enabling Redis on a second site (site B) on the same server without defining WP_REDIS_DATABASE in wp-config, so now it’s 301 redirecting to site A.

    I’ve added define( 'WP_REDIS_DATABASE', 1 ); to the wp-config file (I’m not sure if the location matters, but I put it above #BEGIN WordPress

    That didn’t work. So I additionally renamed the redis plugin folder and the drop-in folder (hoping to deactivate them), but that didn’t work either.

    I assume then I need to flush Redis for site B? Unfortunately though, I can’t login to it since it’s still redirecting.

    I don’t use CLI, so is there another way to flush site B?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    You could try to restart your server, that may flush Redis.

    Otherwise redis-cli FLUSHALL will do the trick, or ask your hosting provider for help.

    Thread Starter homelesshenry

    (@homelesshenry)

    Rebooting the server allowed access to site B again.

    However, now neither site can connect to Redis.

    I had already asked my hosting company to install Redis, and everything was working smoothly on Site A; that is, until I enabled the Redis plugin additionally on site B, giving me the aforementioned redirect problem.

    Now neither site can connect to Redis via the plugin. Do you know how to fix this?

    Status: Not connected
    Client: PhpRedis (v5.3.7)
    Drop-in: Valid
    Disabled: No
    Ping: 
    Connection Exception: Connection refused (RedisException)
    Errors: [
        "Connection refused"
    ]
    PhpRedis: 5.3.7
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 7.4.30
    Plugin Version: 2.0.25
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: null
    Filesystem: Working
    Global Prefix: "wpse_"
    Blog Prefix: "wpse_"
    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",
        "redis-cache"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "themes",
        "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",
        "redis-cache",
        "blog_meta",
        "bp_object_terms",
        "bp",
        "bp_last_activity",
        "bp_member_type",
        "bp_xprofile",
        "bp_xprofile_data",
        "bp_xprofile_fields",
        "bp_xprofile_groups",
        "xprofile_meta",
        "bp_user_mid",
        "bp_activity",
        "bp_activity_comments",
        "activity_meta",
        "bp_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",
        "bpmts"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "Redis Object Cache Drop-In v2.0.25 by Till Krüss"
    ]
    Plugin Author Till Krüss

    (@tillkruess)

    Looks like Redis Server isn’t available, make sure you can connect via redis-cli first.

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