Shopware6.4 to 6.5.7.3 and facing this error

Shopware\Storefront\Controller\CartLineItemController::__construct(): Argument #3 ($productLineItemFactory) must be of type Shopware\Core\Checkout\Cart\LineItemFactoryHandler\ProductLineItemFactory, Shopware\Core\Content\Product\Cart\ProductLineItemFactory given, called in /var/www/html/custom/static-plugins/GraphodataBuhvPromotions/src/Controller/CartLineItemControllerDecorator.php on line 44

Exception

TypeError

in [vendor/shopware/storefront/Controller/CartLineItemController.php ](file:///var/www/html/vendor/shopware/storefront/Controller/CartLineItemController.php#L41)(line 41)

  1. class CartLineItemController extends StorefrontController
  2. {
  3. /**
  4. * @internal
  5. */
  6. public function __construct(
  7. private readonly CartService $cartService,
  8. private readonly PromotionItemBuilder $promotionItemBuilder,
  9. private readonly ProductLineItemFactory $productLineItemFactory,
  10. private readonly HtmlSanitizer $htmlSanitizer,
  11. private readonly AbstractProductListRoute $productListRoute,
1 „Gefällt mir“

Hast du auch eine Frage?

Viele Grüße

Yes i am facing error wheni update the shopware6.4 to 6.5.7.3 i have one external plugin and other is custom plugin when i am adding the items in card then it showes me this error

Shopware\Storefront\Controller\CartLineItemController::__construct(): Argument #3 ($productLineItemFactory) must be of type Shopware\Core\Checkout\Cart\LineItemFactoryHandler\ProductLineItemFactory, Shopware\Core\Content\Product\Cart\ProductLineItemFactory given, called in /var/www/html/custom/static-plugins/GraphodataBuhvPromotions/src/Controller/CartLineItemControllerDecorator.php on line 44

maybe 6.4. to 6.5 and then 6.7.3

My mistake it’s 6.5.7.3

no, I mean, first update from 6.4 to 6.5, second update from 6.5 to 6.7.3

this plugin GraphodataBuhvPromotions is not Shopware, maybe write to the manufacturers support

i had the 6.4 version now i updated it into 6.5.7.3 and facing error in custom plugin GraphodataBuhvPromotions
can you help me how i can solve the error any recommendations i am new in shopware6 developemnt

sorry, but don’t know the plugin

i have one external plugin and other is custom plugin here is details
these two plugin adding promotional code into card but i am facing error with this file name is CartLineItemControllerDecorator.php

prom

promo