• Resolved sidro

    (@sidro)


    Hello,
    Got a bunch of php deprecated in my error log, any fix on this
    FastCGI sent in stderr: “HP Deprecated: Function Redis::delete() is deprecated in /wp-content/plugins/w3-total-cache/Cache_Redis.php on line 155

    php version: 7.3.8-1
    phpredis: 5.0.2
    redis: 3.2.11

    thanks

    • This topic was modified 5 years, 7 months ago by sidro.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sidro,

    I am sorry about the issue you are having with Redis deprecations and I am happy to assist you with this.
    Have you recently updated your system recently? When did this issue start to occur?
    If possible can you downgrade your PHP Redis extension to 4.3.0 and see if the issue persists.

    Thread Starter sidro

    (@sidro)

    im using php package from sury.org and no way to downgrade php-redis to 4.3.0, i already cleared my apt archive of previous version.

    tried switching to php7.2 same thing

    • This reply was modified 5 years, 7 months ago by sidro.
    • This reply was modified 5 years, 7 months ago by sidro.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sidro,

    Just to confirm, you have started experiencing this after the upgrade to 5.0.2?

    I am having this issue as well. This was after switching from wordpress 5.2.0 to 5.2.2 and php from 7.2 to 7.3.

    also of note, using docker wordpress:5.2.2-php7.3-fpm-alpine container.

    • This reply was modified 5 years, 7 months ago by sojelly. Reason: more info
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sojelly,

    We are going to make some tests and reply back with an answer.
    Thank you for providing the information and thank you for your patience.

    Thread Starter sidro

    (@sidro)

    Hi Marko,

    Yes it happened after the 5.0.2 php-redis update. Found this fix somewhere by changing delete command to del in line 155 of Cache_Redis.php and it stops the deprecated messages on my error log. Im not sure if this really fix the issue or other effect on redis functionality

    return $accessor->del( $storage_key );
    //return $accessor->delete( $storage_key );

    • This reply was modified 5 years, 6 months ago by sidro.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sidro,

    I’ve opened a GitHub issue on your behalf in our Github public repo:
    https://github.com/W3EDGE/w3-total-cache/issues/29
    Please check the progress there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Deprecated in redis’ is closed to new replies.