Project

General

Profile

Actions

Bug #100098

closed

PHP Warning in Backend with php 8.2

Added by Peter Linzenkirchner over 1 year ago. Updated over 1 year ago.

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

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #95781: PHP Warning: Undefined array key "uid" in /app/vendor/symfony/expression-language/Node/GetAttrNode.phpRejected2021-10-26

Actions
Related to TYPO3 Core - Bug #98515: Undefined array key with symfony expression results in log entriesRejectedFrank Nägler2022-10-04

Actions
Actions #1

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
Actions #2

Updated by Chris Müller over 1 year ago

  • Related to Bug #98515: Undefined array key with symfony expression results in log entries added
Actions #3

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Peter Linzenkirchner over 1 year ago

I found this yesterday. Yes, it works. Thanks!

Actions #5

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

Also available in: Atom PDF