Issue Bug Closed

#105281Wrong LogLevel parameter given in TypoScriptParser

Kevin Ditscheid 10/11/24, 20:47 updated 12/02/25, 14:32

Description

PHP Warning: Undefined array key 1 in /var/www/html/vendor/typo3/cms-core/Classes/TimeTracker/TimeTracker.php line 186
…
in /var/www/html/vendor/typo3/cms-core/Classes/TypoScript/Parser/TypoScriptParser.php line 275

`$this->error(‘Line ‘ . ($this->lineNumberOffset + $this->rawP – 1) . ‘: On return to [GLOBAL] scope, the script was short of ‘ . $this->inBrace . ‘ end brace(s)’, 1);`

The given value for the LogLevel here is wrong, because LogLevel does not support “1”.
I would suggest replacing it with the LogLevel constant LogLevel::ERROR or just removing it.

Reviews 1

History 24

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-13T19:00:14+00:00" > 01/13/25, 19:00 </span>

    Applied in changeset commit:45b2c75690a024c1ab2bb675519a56bebf6df74e.