Bug #95125
closedWarning during ext_localconf loading causes deprecate write to a database
100%
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
Updated by Benjamin Franzke about 3 years ago
- Related to Task #94979: Deprecate usage of cache and DB connection early in bootstrap added
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Benni Mack about 3 years ago
- Target version changed from 11.4 to 11 LTS
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Gerrit Code Review about 3 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/70868
Updated by Benjamin Franzke about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 57ad931f54a825bb0871e8a128cadde2bbd7ce12.