Actions
Bug #95618
closedUndefined array key warning in PageRenderer - FE exception
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-13
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi upgraded to new 11.5 and trying PHP 8. Get FE exception warning about undefined array key when loading any FE page.
at TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'Undefined array key "defer"', '/home/<snipped>/public_html/typo3/sysext/core/Classes/Page/PageRenderer.php', 2213)
in /home/<snipped>/public_html/typo3/sysext/core/Classes/Page/PageRenderer.php line 2213
foreach ($this->jsLibs as $properties) {
$properties['file'] = $this->getStreamlinedFileName($properties['file']);
$type = $properties['type'] ? ' type="' . htmlspecialchars($properties['type']) . '"' : '';
$async = $properties['async'] ? ' async="async"' : '';
line 2213 $defer = $properties['defer'] ? ' defer="defer"' : '';
$nomodule = $properties['nomodule'] ? ' nomodule="nomodule"' : '';
$integrity = $properties['integrity'] ? ' integrity="' . htmlspecialchars($properties['integrity']) . '"' : '';
$crossorigin = $properties['crossorigin'] ? ' crossorigin="' . htmlspecialchars($properties['crossorigin']) . '"' : '';
$tag = '<script src="' . htmlspecialchars($properties['file']) . '"' . $type . $async . $defer . $integrity . $crossorigin
Actions