Project

General

Profile

Actions

Bug #105281

closed

Wrong LogLevel parameter given in TypoScriptParser

Added by Kevin Ditscheid 3 months ago. Updated about 12 hours ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-10-11
Due date:
% Done:

100%

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

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.

Actions #1

Updated by Gerrit Code Review 4 days ago

  • Status changed from New to Under Review

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87683

Actions #2

Updated by Gerrit Code Review 4 days ago

Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87683

Actions #3

Updated by Georg Ringer about 12 hours ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF