Project

General

Profile

Actions

Bug #89658

closed

RuntimeException Unable to get a property on a non-object when parsing new Symfony ExpressionLanguage expressions

Added by Peter Kraume over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2019-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

My error logs gets flooded with errors like this: "RuntimeException Unable to get a property on a non-object"

/vendor/symfony/expression-language/Node/GetAttrNode.php in Symfony\Component\ExpressionLanguage\Node\GetAttrNode::evaluate at line 73

This happens to Symfony Expression Language expressions in TypoScript.

The expressions that I use are always like this: getTSFE().id == 1

TYPO3: 9.5.11
PHP: 7.3.10


Files

expression.png (165 KB) expression.png Peter Kraume, 2019-11-12 22:00

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #87021: Using "getTSFE().beUserLogin == 1" as expression in an TypoScript condition leads to an error in the Symfony Expression LanguageClosed2018-11-28

Actions
Actions #1

Updated by Markus Klein about 4 years ago

  • Is duplicate of Bug #87021: Using "getTSFE().beUserLogin == 1" as expression in an TypoScript condition leads to an error in the Symfony Expression Language added
Actions #2

Updated by Markus Klein about 4 years ago

  • Status changed from New to Closed

Closing as duplicate.

Accessing getTSFE() (in BE context) will be fixed with #87021

Actions

Also available in: Atom PDF