Project

General

Profile

Actions

Bug #101447

closed

PHP Warning: Undefined array key "uid" in GetAttrNode.php

Added by Kevin Veldscholten 9 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-07-26
Due date:
% Done:

0%

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

Description

After the TYPO3 update from 11.5.26 to 11.5.30 the following error occurs

Core: Error handler (BE): PHP Warning: Undefined array key "uid" in /typo3_src-11.5.30/vendor/symfony/expression-language/Node/GetAttrNode.php line 97


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96907: Undefined array key "uid" - /symfony/expression-language/Node/GetAttrNode.php line 97Closed2022-02-15

Actions
Actions #1

Updated by Kevin Veldscholten 9 months ago

Same with this Bug for a year ago

https://forge.typo3.org/issues/96907

Actions #2

Updated by Kevin Veldscholten 9 months ago

The error seems to appear with a [page["uid"]] query

Can be closed

Actions #3

Updated by Oliver Hader 9 months ago

  • Related to Bug #96907: Undefined array key "uid" - /symfony/expression-language/Node/GetAttrNode.php line 97 added
Actions #4

Updated by Oliver Hader 9 months ago

In TYPO3 v11 I found return $array[$this->nodes['attribute']->evaluate($functions, $values)] in GetAttrNode - and it's a valid concern.

symfony/expression-language v5.4.21 was the last release that is compatible with PHP7 and it's unchanged there:
https://github.com/symfony/expression-language/blob/5.4/Node/GetAttrNode.php#L97

Actions #5

Updated by Kevin Veldscholten 9 months ago

I have changed the [page["uid"]] query which eliminates the warning messages

from


[page["uid"] == 1]

to


[traverse(page, "uid") == 1]

Actions #6

Updated by Benni Mack 5 months ago

I think we can close this issue. This problem will arise when updating to PHP 8, and affects the underlying dependency symfony/expression-language

Actions #7

Updated by Benni Mack 4 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF