Bug #101447
closedPHP Warning: Undefined array key "uid" in GetAttrNode.php
0%
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
Updated by Kevin Veldscholten over 1 year ago
Same with this Bug for a year ago
Updated by Kevin Veldscholten over 1 year ago
The error seems to appear with a [page["uid"]] query
Can be closed
Updated by Oliver Hader over 1 year ago
- Related to Bug #96907: Undefined array key "uid" - /symfony/expression-language/Node/GetAttrNode.php line 97 added
Updated by Oliver Hader over 1 year 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
Updated by Kevin Veldscholten over 1 year ago
I have changed the [page["uid"]] query which eliminates the warning messages
from
[page["uid"] == 1]
to
[traverse(page, "uid") == 1]
Updated by Benni Mack 12 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