I was testing caching setups and i enabled redis for progressive caching.
When i wanted to test it without redis i turned the redis sock off in my server and in the global configuration i turned the caching of completely but then i still had a 500 error saying redis was not found (because i turned the redis sock off). But the global configuration was not set to use redis anymore!
When i enabled caching again. Then changed redis back to something else, then disable caching all together and saved the global configuration the error was gone. So it seems the check to use redis only looks at the caching type and not if caching is enabled at all.
5.4
Redis in use anymore.
Redis still in use. 500 Redis connection failed error
Stack trace:
Joomla\CMS\Cache\Exception\CacheConnectingException:
Redis connection failed
at /home/test/domains/j5.test.nl/public_html/libraries/src/Cache/Storage/RedisStorage.php:106
at Joomla\CMS\Cache\Storage\RedisStorage->getConnection()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Cache/Storage/RedisStorage.php:56)
at Joomla\CMS\Cache\Storage\RedisStorage->__construct()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Cache/CacheStorage.php:181)
at Joomla\CMS\Cache\CacheStorage::getInstance()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Cache/Cache.php:481)
at Joomla\CMS\Cache\Cache->_getStorage()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Cache/Cache.php:231)
at Joomla\CMS\Cache\Cache->get()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Cache/Controller/CallbackController.php:59)
at Joomla\CMS\Cache\Controller\CallbackController->get()
(/home/test/domains/j5.test.nl/public_html/plugins/content/joomla/src/Extension/Joomla.php:336)
at Joomla\Plugin\Content\Joomla\Extension\Joomla->injectContentSchema()
(/home/test/domains/j5.test.nl/public_html/plugins/content/joomla/src/Extension/Joomla.php:285)
at Joomla\Plugin\Content\Joomla\Extension\Joomla->onSchemaBeforeCompileHead()
(/home/test/domains/j5.test.nl/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/home/test/domains/j5.test.nl/public_html/plugins/system/schemaorg/src/Extension/Schemaorg.php:460)
at Joomla\Plugin\System\Schemaorg\Extension\Schemaorg->onBeforeCompileHead()
(/home/test/domains/j5.test.nl/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:454)
at Joomla\Event\Dispatcher->dispatch()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Document/Renderer/Html/MetasRenderer.php:62)
at Joomla\CMS\Document\Renderer\Html\MetasRenderer->render()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Document/HtmlDocument.php:578)
at Joomla\CMS\Document\HtmlDocument->getBuffer()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Document/HtmlDocument.php:897)
at Joomla\CMS\Document\HtmlDocument->_renderTemplate()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Document/HtmlDocument.php:650)
at Joomla\CMS\Document\HtmlDocument->render()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Document/ErrorDocument.php:139)
at Joomla\CMS\Document\ErrorDocument->render()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:70)
at Joomla\CMS\Error\Renderer\HtmlRenderer->render()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Exception/ExceptionHandler.php:142)
at Joomla\CMS\Exception\ExceptionHandler::render()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Exception/ExceptionHandler.php:76)
at Joomla\CMS\Exception\ExceptionHandler::handleException()
(/home/test/domains/j5.test.nl/public_html/libraries/src/Application/CMSApplication.php:334)
at Joomla\CMS\Application\CMSApplication->execute()
(/home/test/domains/j5.test.nl/public_html/includes/app.php:58)
at require_once('/home/test/domains/j5.test.nl/public_html/includes/app.php')
(/home/test/domains/j5.test.nl/public_html/index.php:51)
Found this issue in Joomla 6.0.3 ans 5.4.3.
When you turn debugging on it stopped the error in the backend, and front-end there were also only some menu items showing the error. i guess this is due to caching being disabled by the debug setting? front-end -> single contact menu item still errored out for me.
| Labels |
Added:
bug
|
||
| Labels |
Added:
No Code Attached Yet
|
||
I didn't test that before but i did now. Same behaviour as i would've expected but better to be sure about it.
just a thought - did you flush the cache before disabling it