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
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
Here the solution: LINK
The code like :
$this->_redis->setTimeout
Should be :
$this->_expire
Please try to replace
setTimeout()
function toexpire()
Update your Codeigniter 3 version, currently at
3.1.13
. You can download the current release zip file here. To upgrade:system
foldersystem
folder into your app rootI had this issue when setting up my CI app using
docker-compose
and the redis docker image