Project

General

Profile

Actions

Bug #95125

closed

Warning during ext_localconf loading causes deprecate write to a database

Added by Benjamin Franzke about 3 years ago. Updated about 3 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 #1

Updated by Benjamin Franzke about 3 years ago

  • Related to Task #94979: Deprecate usage of cache and DB connection early in bootstrap added
Actions #2

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

Actions #3

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

Actions #4

Updated by Benni Mack about 3 years ago

  • Target version changed from 11.4 to 11 LTS
Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

Updated by Benjamin Franzke about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF