Actions
Bug #95125
closedWarning during ext_localconf loading causes deprecate write to a database
Status:
Closed
Priority:
Should have
Assignee:
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2021-09-06
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Steps to reproduce
Add something to ext_localconf.php that causes a PHP warning to occur, e.g.
`ext_localconf.php`:
$foo = file_get_contents('/tmp/path-to-missing-file.txt');
Then execute:
bin/typo3 cache:warmup
(or any other CLI command, but make sure to remove cached before)
Output:
PHP Deprecated: TYPO3\CMS\Core\Database\ConnectionPool can not be injected/instantiated during ext_localconf.php/TCA/ext_tables.php loading. Use lazy loading instead. in […]/typo3/sysext/core/Classes/ServiceProvider.php on line 142
Actions