Redis session driver broken |
Code: A PHP Error was encountered Code: $config['sess_driver'] = 'redis'; I'm assuming timeout should be set in this block? Code: elseif (preg_match('#(?:tcp://)?([^:?]+)(?:\:(\d+))?(?<options>\?.+)?#', $this->_config['save_path'], $matches))
Line 148 in that file is, and always has been (in released versions) a return statement. I guess you're using an old dev version.
I'm using the latest code from Git.
https://github.com/bcit-ci/CodeIgniter/b...driver.php construct method, line 148 references $this->_config['save_path']['timeout'] which is not defined with the other keys in construct.
I came across the same "Undefined index: timeout" error in line 155 of Session_redis_driver.php after updating my system files to the latest CI version 3.1.0-dev today. The quick fix for me was to explicitly set the timeout value in sess_save_path since the code assumes timeout is set: $config['sess_save_path'] = 'tcp://127.0.0.1:6379?timeout=0';
|
Welcome Guest, Not a member yet? Register Sign In |