cart icon indicating copy to clipboard operation
cart copied to clipboard

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

Open rintisch opened this issue 2 months ago • 0 comments

Bug Report

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

https://github.com/extcode/cart/blob/257cea6c846e1c69dec4d9e3c436de0863eacb3f/Classes/Widgets/Provider/OrdersPerDayProvider.php#L32

and https://github.com/extcode/cart/blob/257cea6c846e1c69dec4d9e3c436de0863eacb3f/Classes/Widgets/Provider/TurnoverPerDayProvider.php#L31

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'];

rintisch avatar Oct 25 '25 05:10 rintisch