cart icon indicating copy to clipboard operation
cart copied to clipboard

Reference Error in 9.x

Open paul-keller opened this issue 2 years ago • 2 comments

We tried the 9.x dev branch in our installation. But get this error: The definition "extcode.cart.provider.orders_per_day" has a reference to an abstract definition "TYPO3\CMS\Core\Localization\LanguageService". Abstract definitions cannot be the target of references.

paul-keller avatar Aug 10 '23 09:08 paul-keller

We get that error too. The cause is in the registration of the dashboard widgets.

vendor/extcode/cart/Configuration/Backend/Provider/OrdersPerDayProvider.php vendor/extcode/cart/Configuration/Backend/Provider/TurnoverPerDayProvider.php

This line is the cause: ->arg('$languageService', new Reference(LanguageService::class)) The language service will now be loaded via dependeny injection, simple removing this line would work, but then I get an error on a missing default view...

As a temporary fix to use this version for our typo3 12 update, we forked and deactivated those widgets in vendor/extcode/cart/Configuration/Services.php

BokuNoMaxi avatar Aug 14 '23 05:08 BokuNoMaxi

@extcode As I understand it this is also already solved with https://github.com/extcode/cart/pull/427.

rintisch avatar Nov 23 '23 10:11 rintisch

@extcode I guess this can be closed as you cherry-picked the solving commits.

rintisch avatar Mar 20 '24 19:03 rintisch