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. Gerrit Code Review pushed patch set 1 for 12.4 to change 87683 status New Under Review 01/09/25, 19:52

  2. Gerrit Code Review pushed patch set 2 for 12.4 to change 87683 01/09/25, 20:23

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 01/13/25, 19:00

    Applied in changeset commit:45b2c75690a024c1ab2bb675519a56bebf6df74e.

  4. Benni Mack changed status Resolved Closed 12/02/25, 14:32