Project

General

Profile

Actions

Bug #95125

closed

Warning during ext_localconf loading causes deprecate write to a database

Added by Benjamin Franzke over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #94979: Deprecate usage of cache and DB connection early in bootstrapClosedBenni Mack2021-08-24

Actions
Actions

Also available in: Atom PDF