• Resolved Adam

    (@dannythedog)


    Hi,

    I’m experiencing an unusual issue with Redis Object Cache plugin (v2.5.4) on my WordPress site. While the plugin’s diagnostic page shows Redis is connected and working correctly, I’m getting repeated errors in debug.log:

    Environment:

    • WordPress Plugin: Redis Object Cache 2.5.4
    • Redis Version: 6.0.5
    • PHP Version: 8.1.30
    • PhpRedis: v6.0.2
    • Connection: Unix socket

    Diagnostic page shows:

    • Status: Connected
    • Client: PhpRedis (v6.0.2)
    • Drop-in: Valid
    • Ping: 1
    • Errors:

    However, debug.log continuously shows these errors:

    1. RedisException: No such file or directory in object-cache.php:736
    2. PHP Fatal error: Uncaught Error: Call to a member function get() on null in object-cache.php:193

    Configuration:
    WP_REDIS_SCHEME: “unix”
    WP_REDIS_PATH: “/run/redis/redis.sock”

    The unusual part is that despite these errors, the Redis diagnostic page shows everything is working correctly. The site itself works, but these errors keep appearing in the logs.

    Any ideas what might be causing this discrepancy between the diagnostic status and the debug logs?

    Thank you for your help!

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

    (@tillkruess)

    No such file or directory means that your socket isn’t consistently open, which can also cause Call to a member function get() on null.

    Try switching to TCP, might be more stable for you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.