Project

General

Profile

Actions

Bug #98515

closed

Undefined array key with symfony expression results in log entries

Added by Ralph Brugger over 1 year ago. Updated 12 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
TypoScript
Target version:
-
Start date:
2022-10-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Our typo3_error.log is full with PHP-Warnings like:

Exception: PHP Warning: Undefined array key "uid" in 
 typo3_src-11.5.16/vendor/symfony/expression-language/Node/GetAttrNode.php line 97, 
 {"expression":"page[\"uid\"] in [1209,1210,1208,5561,5005]",
 "exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: Undefined array key \"uid\" 
 in typo3_src-11.5.16/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

another example:

[(request.getQueryParams()['newsletter']) && (request.getQueryParams()['newsletter']) > 0]

Expression on not defined parameters should not result in an error log entry.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #94707: Undefined array key / Trying to access array offset on value of type null / PHP Version 8.0.8Closed2021-08-04

Actions
Related to TYPO3 Core - Bug #100098: PHP Warning in Backend with php 8.2Closed2023-03-06

Actions
Has duplicate TYPO3 Core - Bug #95781: PHP Warning: Undefined array key "uid" in /app/vendor/symfony/expression-language/Node/GetAttrNode.phpRejected2021-10-26

Actions
Actions

Also available in: Atom PDF