Project

General

Profile

Actions

Bug #91345

closed

Extbase LocalizationUtility generates error if site language is null

Added by Ronny Hauptvogel almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2020-05-08
Due date:
% Done:

100%

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

Description

The extbase localization utility (TYPO3\CMS\Extbase\Utility\LocalizationUtility) generates an error if the site language is null.

Line 196: $siteLanguage = self::getCurrentSiteLanguage();

Sometimes site language will be null here.

Line 199: $languageKeys['languageKey'] = $siteLanguage->getTypo3Language();

function call on null will generate an exception.

So line 199 should be:

if ($siteLanguage) {
$languageKeys['languageKey'] = $siteLanguage->getTypo3Language();
}

Actions #1

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from New to Under Review

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

Actions #2

Updated by Oliver Bartsch almost 4 years ago

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

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF