• Resolved dimsal

    (@dimsal)


    Hi,

    I’m installed Relay and now trying to switch to Relay as Client by adding

    define( 'WP_REDIS_CLIENT', 'relay' );

    to my wp-coinfig but upon checking the status I see the following error:

    wp redis status
    Fatal error: Uncaught Error: Class "Relay\Relay" not found in /my-domain/wp-content/object-cache.php:775
    Stack trace:
    #0 /my-domain/wp-content/object-cache.php(539): WP_Object_Cache->connect_using_relay()
    #1 /my-domain/wp-content/object-cache.php(256): WP_Object_Cache->__construct()
    #2 /my-domain/wp-includes/load.php(860): wp_cache_init()
    #3 /my-domain/wp-settings.php(144): wp_start_object_cache()
    #4 phar:///Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1363): require('...')
    #5 phar:///Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1282): WP_CLI\Runner->load_wordpress()
    #6 phar:///Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #7 phar:///Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
    #8 phar:///Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #9 phar:///Packages/RunCloudAgent/bin/wp-cli/php/boot-phar.php(20): include('...')
    #10 /RunCloud/Packages/RunCloudAgent/bin/wp-cli(4): include('...')
    #11 {main}
      thrown in /my-domain/wp-content/object-cache.php on line 775
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    Any help on how to properly do it and why it give the error?

    Thanks.

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

    (@tillkruess)

    The error Class "Relay\Relay" not found means that the Relay existing is not installed, or the PHP process has not been restarted since installing Relay. Try a full restart.

    Thread Starter dimsal

    (@dimsal)

    Hi Till,

    Relay was installed and PHP process was restarted. Here’s the Diagnostic tab details

    
    
    Status: Connected
    Client: PhpRedis (v6.0.2)
    Drop-in: Valid
    Disabled: No
    Ping: 1
    Errors: []
    PhpRedis: 6.0.2
    Relay: 0.7.0
    Predis: 2.1.2
    Credis: Not loaded
    PHP Version: 8.0.30
    Plugin Version: 2.5.1
    Redis Version: 5.0.7
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 2120
    Filesystem: Writable
    Global Prefix: "tapp_"
    Blog Prefix: "tapp_"
    Timeout: 1
    Read Timeout: 1
    Retry Interval: 
    WP_REDIS_PREFIX: "WB=DP}ozZ2r4,=L{shq@hK0myl1X3j#kOv:@7 /3dL44 wo)Xv|4F4Y^LH fx)l&"
    WP_CACHE_KEY_SALT: "WB=DP}ozZ2r4,=L{shq@hK0myl1X3j#kOv:@7 /3dL44 wo)Xv|4F4Y^LH fx)l&"
    WP_REDIS_PLUGIN_PATH: "/home/user/webapps/my-domain/wp-content/plugins/redis-cache"
    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",
        "blog_meta",
        "network-queries",
        "site-queries",
        "theme_files",
        "translation_files",
        "user-queries"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "theme_json",
        "trp",
        "themes"
    ]
    Unflushable Groups: []
    Groups Types: {
        "blog-details": "global",
        "blog-id-cache": "global",
        "blog-lookup": "global",
        "global-posts": "global",
        "networks": "global",
        "rss": "global",
        "sites": "global",
        "site-details": "global",
        "site-lookup": "global",
        "site-options": "global",
        "site-transient": "global",
        "users": "global",
        "useremail": "global",
        "userlogins": "global",
        "usermeta": "global",
        "user_meta": "global",
        "userslugs": "global",
        "redis-cache": "global",
        "blog_meta": "global",
        "network-queries": "global",
        "site-queries": "global",
        "theme_files": "global",
        "translation_files": "global",
        "user-queries": "global",
        "counts": "ignored",
        "plugins": "ignored",
        "theme_json": "ignored",
        "trp": "ignored",
        "themes": "ignored"
    }
    Drop-ins: [
        "Redis Object Cache Drop-In v2.5.1 by Till Krüss"
    ]
    

    Any other suggestions?

    Plugin Author Till Krüss

    (@tillkruess)

    It looks like Relay was not installed for the PHP CLI process.

    wp redis status
    Fatal error: Uncaught Error: Class "Relay\Relay" not found
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Switch Client from PhpRedis to Relay issue’ is closed to new replies.