Skip to content
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

[4.0] Redis Caching fails ungracefully when server down, or incorrectly configured. #30378

Closed
PhilETaylor opened this issue Aug 15, 2020 · 5 comments

Comments

@PhilETaylor
Copy link
Contributor

Steps to reproduce the issue

Joomla 4.0-dev

Correctly configure caching to a redis server. Reload any Joomla page - see it caches and no issues.

Turn off the redis server OR edit /configuration.php and change

public $redis_server_host = 'yourredisserver.com';
to
public $redis_server_host = 'redisDOWN';

reload the /administrator/ url

Expected result

Joomla handles this failure with grace.

Joomla doesn't display any Notices or Warnings.

Actual result

Screenshot 2020-08-15 at 13 54 49

@wilsonge
Copy link
Contributor

wilsonge commented Oct 17, 2020

Fix for the undefined variable notice #31121

I'm not really sure if there's a way to catch the php warnings that get thrown (it's the same in the session driver too for that part)

@PhilETaylor

This comment was marked as abuse.

@wilsonge
Copy link
Contributor

Ok i think I'm going to close this as a won't fix.

And more in line of technically it's very tricky without underlying redis driver changes to fix this than because I don't want to.

@wilsonge
Copy link
Contributor

If anyone does come up with a solution more than happy to consider it clearly. But without a concrete suggestion hard to see how to take this forward

@PhilETaylor

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants