Install joomla with cache Redis enabled.
Go to joomla folder and run php -f cli/update_cron.php
I get result:
Error displaying the error page: Application Instantiation Error: Application Instantiation Error
Script works without errors
Get exception message.
PHP 7.0 and 7.1 - not revelant
Joomla 3.7.3-dev and olders
Redis as cache handler and System Cache ON
The error comes from https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/factory.php#L122
and it starts at https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/cache/storage/redis.php#L67
Can we break B/C by removing $app = JFactory::getApplication();
and replacing
JError::raiseWarning(500, 'Redis connection failed');
by throw new JCacheExceptionConnecting('Could not connect to redis server');
in redis handler?
If yes then I can write PR.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-29 04:29:05 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
closed as having PR #16904
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16903
It's been argued adding new Exceptions to a method is a B/C break. If it's already throwing Exceptions, we're fine. Otherwise, I honestly don't want to get into the politics of it all again.