Project

General

Profile

Actions

Bug #88045

closed

alternativeLanguageKeys is overridden as string

Added by Jan Delius over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2019-04-01
Due date:
% Done:

100%

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

Description

The function getLanguageKeys in the Extbase LocalizationUtility resolves the dependency of a language as "alternativeLanguageKeys". However, the empty array is overwritten by a string instead of supplementing it.

The following error is thrown in the frontend:
Argument 3 passed to TYPO3\CMS\Extbase\Utility\LocalizationUtility::initializeLocalization() must be of the type array, string given, called in [...]/typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php on line 96

See typo3conf/sysext/extbase/Classes/Utility/LocalizationUtility.php:210

As example language you can use Brazilian Portuguese


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #88976: Add ReST file for BugfixClosedOliver Bartsch2019-08-19

Actions
Has duplicate TYPO3 Core - Bug #88405: LocalizationUtility requires array for alternative LanguagesClosed2019-05-20

Actions
Actions

Also available in: Atom PDF