skip to Main Content

I started getting this error

A PHP Error was encountered Severity: 8192

Message: Function Redis::setTimeout() is deprecated

Filename: drivers/Session_redis_driver.php

I am using PHP 7.2.27
What best I can do to fix this

3

Answers


  1. Here the solution: LINK

    The code like : $this->_redis->setTimeout

    Should be : $this->_expire

    Login or Signup to reply.
  2. Please try to replace setTimeout() function to expire()

    Login or Signup to reply.
  3. Update your Codeigniter 3 version, currently at 3.1.13. You can download the current release zip file here. To upgrade:

    • Delete (or rename) the current system folder
    • Extract the zip file and copy the new system folder into your app root

    I had this issue when setting up my CI app using docker-compose and the redis docker image

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search