Bug #100345
closedUnable to get property "type" of non-object "getTSFE()"
0%
Description
Following condition is breaking in 12.3 (this is not a 12-compatible repository however, as a notice for testing/evaluating)
https://github.com/einpraegsam/powermail/blob/develop/Configuration/TypoScript/Powermail_Frontend/setup.typoscript#L116
According to the documentation getTSFE()
should evaluate to false
if it's not available in a given context. This seems to happen here, but it still tries to access the type
property afterwards, leading to an exception.
Updated by Andreas Kienast about 1 year ago
- Status changed from New to Needs Feedback
Can you please check whether using traverse() solves the issue?
Updated by Christian Kuhn about 1 year ago
Using traverse() should fix this. v12 no longer suppresses according warnings and forces integrators to fix conditions. Please feedback if that solves your issue.
Updated by Christian Kuhn about 1 year ago
- Related to Task #100047: Modernize condition matching / expression handling added
Updated by Andreas Nedbal about 1 year ago
Using traverse() indeed fixed this. Thanks for the hint!
Updated by Georg Ringer about 1 year ago
- Status changed from Needs Feedback to Closed
closing issue as it can be solved by proper condition usage