Issue Bug Closed

#100098PHP Warning in Backend with php 8.2

Peter Linzenkirchner 03/06/23, 14:54 updated 03/13/23, 20:55

Description

Typoscript Conditions like

[request.getQueryParams()['tx_news_pi1'] && request.getQueryParams()['tx_news_pi1']['news'] > 0]
[3390 in tree.rootLineIds || page["uid"] == 3285]
[request.getCookieParams()['contrast'] == 1]
[page["layout"] == '1']

Throws the following php warnings in the backend (only in section “system”!) when working with php 8.2:

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "contrast" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "contrast" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "contrast" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "tx_news_pi1" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "layout" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "tx_news_pi1" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "uid" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "uid" in /Volumes/web/sites/xyz/123/vendor/symfony/expression-language/Node/GetAttrNode.php line 97

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.