Actions
Bug #100098
closedPHP Warning in Backend with php 8.2
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-03-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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
Updated by Chris Müller over 1 year ago
- Related to Bug #95781: PHP Warning: Undefined array key "uid" in /app/vendor/symfony/expression-language/Node/GetAttrNode.php added
Updated by Chris Müller over 1 year ago
- Related to Bug #98515: Undefined array key with symfony expression results in log entries added
Updated by Georg Ringer over 1 year ago
- Status changed from New to Needs Feedback
please use traverse
see https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Conditions/Index.html#traverse
does that work for you?
Updated by Peter Linzenkirchner over 1 year ago
I found this yesterday. Yes, it works. Thanks!
Updated by Sybille Peters over 1 year ago
- Status changed from Needs Feedback to Closed
Problem seems to be resolved by using tips in documentation. This can be used as workaround.
Problem should probabably be fixed though, but several issues already open due to this: #95781
Closing.
Actions