Bug #97624
closedUndefined array key "module" - /symfony/expression-language/Node/GetAttrNode.php line 97
0%
Description
Hello,
every time i click somewhere in TYPO3 backend i get this error writen in Log:
Core: Error handler (BE): PHP Warning: Undefined array key "module" in /var/www/vhosts/typo3_source/typo3_src-11.5.10/vendor/symfony/expression-language/Node/GetAttrNode.php line 97
I am using PHP 8.1.2 and TYPO3 11.5.10
Updated by Chris Müller over 2 years ago
- Related to Bug #95781: PHP Warning: Undefined array key "uid" in /app/vendor/symfony/expression-language/Node/GetAttrNode.php added
Updated by Michael Kasten over 2 years ago
Confirmed here:
Core: Error handler (BE): PHP Warning: Undefined array key "colPos" in /var/www/html/vendor/symfony/expression-language/Node/GetAttrNode.php line 97
This section
return $array[$this->nodes['attribute']->evaluate($functions, $values)];
guess should be
return $array[$this->nodes['attribute']->evaluate($functions, $values)] ?? [];
updated: fixing wrong line number :)
Updated by Oliver Hader about 2 years ago
- Category set to composer
Seems like this has been adjusted recent in symfony/expression-language
...
https://github.com/symfony/symfony/blob/e54dd3818dc5e5012efc439b238e4f7539804e6a/src/Symfony/Component/ExpressionLanguage/Node/GetAttrNode.php#L126-L130
Updated by Oliver Hader about 2 years ago
My previous comment was on a newer version, which requires PHP 8.1 - not an option for TYPO3 v11.
The situation for symfony/expression-language
v5.4 is unchanged:
https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/ExpressionLanguage/Node/GetAttrNode.php#L93-L97
Updated by Georg Ringer about 2 years ago
- Related to Bug #98197: Undefined array key in form variants if variable of variant condition is empty added
Updated by Oliver Hader about 2 years ago
- Status changed from New to Closed
Duplicate of #95781 → please continue there
Updated by Felix Nagel almost 2 years ago
- Related to Bug #94707: Undefined array key / Trying to access array offset on value of type null / PHP Version 8.0.8 added