Bug #90268

TYPO3 sets php error_reporting hardcoded to 22519

Added by Uwe Trotzek 25 days ago. Updated 3 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2020-01-31
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Currently it is not possible to configure the error_reporting level in the php.ini because TYPO3 overrides this value in the bootstrapping process.

As far as I can see, this happens in the class
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php

in the method initializeBasicErrorReporting()

Because the error_reporting value is hardcoded, I'll get the following deprecation notice every time I execute the typo3 CLI command via bin/typo3.

PHP Deprecated:  Automatic TCA migration done during bootstrap. Please adapt TCA accordingly, these migrations will be removed. The backend module "Configuration -> TCA" shows the modified values. Please adapt these areas:
The TCA table 'pages_language_overlay' is not used anymore and has been removed automatically in order to avoid negative side-effects. in /app/WWW/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php on line 1608

This happens because the ExtensionManagementUtility triggers the E_USER_DEPRECATED warning.

I don't override or set anything in the 'pages_language_overlay' TCA. I thing the message will be triggered because the pages_language_overlay TCA will still be loaded from the Core:

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Configuration/TCA/pages_language_overlay.php

History

#1 Updated by Susanne Moog 3 days ago

  • Status changed from New to Needs Feedback

error reporting can be configured in TYPO3 via Settings > All Configuration > SYS > errorHandlerErrors - default is "E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR)". Please try adjusting the setting to your needs.

Also available in: Atom PDF