Actions
Bug #98611
closedWarning if bodyTagCObject is set with another referenced TS object in php8.1 instances
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-10-13
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
After changing php version to 8.1 in our TYPO3 11 instance we have an error in frontend.
Undefined array key "bodyTagCObject."
Error occurs if we are using an referenced TyppoScript object for "bodyTagCObject".
Example:
u10n.bodyTag = TEXT
u10n.bodyTag.value = <body class="test">
page.bodyTagCObject =< u10n.bodyTag
Normally the error (E_WARNING) is not visible in frontend, but it will be logged by TYPO3 if logLevel allow logging of warnings.
Some things must be configured in the environment to show this error message.
We are using following configurations for our website:
- PHP error_reporting is set to 30466
- we are using whoops exceptionhandler in our composer based environment
- whoops configuration disables
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler']
and$GLOBALS['TYPO3_CONF_VARS']['SYS']['errorHandler']
- and of course debug settings in TYPO3 are set to true
Problem is in TYPO3\CMS\Frontend\Http\RequestHandler line:805(branch 11.5) line:832(branch main). It is one of the problems currently occurring in several places because of using php8.1.
Actions