Project

General

Profile

Actions

Bug #95618

closed

Undefined array key warning in PageRenderer - FE exception

Added by mark roemermann over 2 years ago. Updated over 1 year ago.

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 = '&lt;script src=&quot;&#039; . htmlspecialchars($properties[&#039;file&#039;]) . &#039;&quot;&#039; . $type . $async . $defer . $integrity . $crossorigin

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #95654: Error with concatenateJs : PHP Warning: Undefined array key "defer" in PageRenderer.phpClosed2021-10-14

Actions
Actions

Also available in: Atom PDF