-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis Handler Fails #1079
Comments
"It fails" is not enough detail for us to debug :) What code are you using, and what error, if any, is it giving? Is this for Cache or Session? |
Sorry for the short description, didn't have much time. What i did: Opened the system/Cache/Handlers/RedisHandler.php file and replaced on line 38
with
This fixed this error. The next was the Welcome App always showed me the error - cannot connect to redis server. Target machine actively refused the connection. Dumped the config data and saw that the host I placed in config was not used, but it tried on the localhost. And I just replaced on line 80:
with
And it worked. |
Thanks for the detailed response! I've implemented the changes. |
The RedisHandler Fails.
Needs to be changed the use CriticalError statement and the configs merge in the constructor.
line 38: use CodeIgniter\Exceptions\CriticalError;
line 80: $this->config = array_merge($this->config, $config['redis']);
The text was updated successfully, but these errors were encountered: