Support » Plugin: Redis Object Cache » Type: PHP Warning Message: Module “redis” is already loaded in Unknown on line

  • Resolved fondashci

    (@fondashci)


    hi i am getting this error many times
    ype: PHP Warning Message: Module “redis” is already loaded in Unknown on line 0
    that means that is loaded more than one time in my server ?

    `root@ [~]# grep -r “redis.so” /opt/cpanel/ea-php74/root/etc/php.d
    /opt/cpanel/ea-php74/root/etc/php.d/zzzzzzz-pecl.ini:extension=”redis.so”
    /opt/cpanel/ea-php74/root/etc/php.d/redis.ini:extension=’redis.so’

    root@ [~]# grep -r “redis.so” /opt/cpanel/ea-php81/root/etc/php.d
    /opt/cpanel/ea-php81/root/etc/php.d/zzzzzzz-pecl.ini:extension=”redis.so”
    /opt/cpanel/ea-php81/root/etc/php.d/redis.ini:extension=’redis.so’
    root@ [~]# ^C

    is something can do to fix it ?

    • This topic was modified 4 weeks, 1 day ago by fondashci.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter fondashci

    (@fondashci)

    i also see these :

    RedisException: read error on connection to 127.0.0.1:6379 in /public_html/wp-content/object-cache.php:1792
    Stack Trace
    1.	Redis->get('hls1:code_snipp...')/public_html/wp-content/object-cache.php:1792
    2.	WP_Object_Cache->get('active_snippets...', 'code_snippets', false, NULL)/public_html/wp-content/object-cache.php:182
    3.	wp_cache_get('active_snippets...', 'code_snippets')/public_html/wp-content/plugins/code-snippets/php/class-db.php:234
    4.	Code_Snippets\DB::fetch_snippets_from_table('hls1_snippets', Array)/public_html/wp-content/plugins/code-snippets/php/class-db.php:284
    5.	Code_Snippets\DB->fetch_active_snippets(Array)/home/dc1a155/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php:534
    6.	Code_Snippets\execute_active_snippets('')/public_html/wp-includes/class-wp-hook.php:308
    7.	WP_Hook->apply_filters(NULL, Array)/public_html/wp-includes/class-wp-hook.php:332
    8.	WP_Hook->do_action(Array)/public_html/wp-includes/plugin.php:517
    9.	do_action('plugins_loaded')/public_html/wp-settings.php:480
    10.	require_once('/home/dc1a155/p...')/public_html/wp-config.php:102
    11.	require_once('/home/dc1a155/p...')/public_html/wp-load.php:50
    12.	require_once('/home/dc1a155/p...')/public_html/wp-admin/admin-ajax.php:22
    13.	{main}
    Thread Starter fondashci

    (@fondashci)

    Diagnostic are :

    Status: Connected
    Client: PhpRedis (v5.3.7)
    Drop-in: Valid
    Disabled: No
    Ping: 1
    Errors: []
    PhpRedis: 5.3.7
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 8.1.11
    Plugin Version: 2.2.1
    Redis Version: 3.2.12
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 3587
    Filesystem: Working
    Global Prefix: "hls1_"
    Blog Prefix: "hls1_"
    WP_REDIS_HOST: "127.0.0.1"
    WP_REDIS_PORT: 6379
    WP_REDIS_DATABASE: 0
    WP_REDIS_TIMEOUT: 1
    WP_REDIS_READ_TIMEOUT: 1
    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",
        "code_snippets"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "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",
        "counts": "ignored",
        "plugins": "ignored",
        "themes": "ignored",
        "blog_meta": "global",
        "code_snippets": "global"
    }
    Drop-ins: [
        "Query Monitor Database Class (Drop-in) v3.10.1 by John Blackbourn",
        "maintenance.php v by ",
        "Redis Object Cache Drop-In v2.2.1 by Till Krüss"
    ]
    Plugin Author Till Krüss

    (@tillkruess)

    Module “redis” is already loaded

    This means you’re loading extension=redis.so twice.

    read error on connection to 127.0.0.1:6379

    This means Redis Server is not running on port 6379.

    Thread Starter fondashci

    (@fondashci)

    ok and how to solve that issue ?
    also :

    root@crowdlink [~]# redis-cli ping
    PONG
    root@crowdlink [~]# redis-cli -h host_url -p 6379 ping
    Could not connect to Redis at host_url:6379: Name or service not known
    root@crowdlink [~]# lsof -i:6379
    COMMAND   PID  USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
    redis-ser 437 redis    4u  IPv4 2563381316      0t0  TCP localhost:6379 (LISTEN)
    root@crowdlink [~]# ^C

    _____________
    and why then on overview do i have all ok

    Overview
    Status: 	Connected
    Drop-in: 	Valid
    Filesystem: 	Writeable
    Connection
    Client: 	PhpRedis (v5.3.7)
    Host: 	127.0.0.1
    Port: 	6379
    Database: 	0
    Connection Timeout: 	1s
    Read Timeout: 	1s
    Retry Interval: 	0ms
    Redis Version: 	3.2.12
    • This reply was modified 4 weeks ago by fondashci.
    • This reply was modified 4 weeks ago by fondashci.
    Thread Starter fondashci

    (@fondashci)

    redis-cli -h 127.0.0.1 -p 6379 ping
    PONG

    Plugin Author Till Krüss

    (@tillkruess)

    Resolve which issue?

    Thread Starter fondashci

    (@fondashci)

    no
    Date: [08-Nov-2022 21:35:29 UTC]
    Type: RedisException
    Message: read error on connection to 127.0.0.1:6379
    In: /home/dc1a155/public_html/wp-content/object-cache.php:1792

    i am still getting those errors

    Plugin Author Till Krüss

    (@tillkruess)

    Make sure Redis Server has enough resources to answer all queries.

    Thread Starter fondashci

    (@fondashci)

    and how to do that ?

    Plugin Author Till Krüss

    (@tillkruess)

    If you don’t know, try asking your hosting provider.

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