Skip to content

Widgets throw error due to broken \LanguageServiceFactory::create() #707

@rintisch

Description

@rintisch

Bug Report

Current Behavior
Using the extension in a multilanguage setup the dashboard gets unaccessible due to the lines

$this->languageService = GeneralUtility::makeInstance(LanguageServiceFactory::class)->create($GLOBALS['BE_USER']->uc['lang']);

and

$this->languageService = GeneralUtility::makeInstance(LanguageServiceFactory::class)->create($GLOBALS['BE_USER']->uc['lang']);

Expected behavior/output
Widget shall not lead to an error.

Environment

  • TYPO3 version(s): 13.4.18
  • cart version: 11.15.0
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes

Possible Solution
The given code can be replaced with

$this->languageService = $GLOBALS['LANG'];

Metadata

Metadata

Assignees

Labels

10.xrelated to TYPO3 v1211.xrelated to TYPO3 v13

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions