# Shopware6.4 to 6.5.7.3 and facing this error

**URL:** <https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821>\
**Category:** Shopware 6 (German)\
**Created:** [6. Februar 2024 um 09:45 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821 "2024-02-06T09:45:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 09:45 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/1 "2024-02-06T09:45:35Z")

</div>

# 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,`

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [6. Februar 2024 um 09:49 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/2 "2024-02-06T09:49:58Z")

</div>

Hast du auch eine Frage?

Viele Grüße

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 09:52 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/3 "2024-02-06T09:52:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [6. Februar 2024 um 10:44 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/4 "2024-02-06T10:44:18Z")

</div>

maybe 6.4. to 6.5 and then 6.7.3

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 10:53 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/5 "2024-02-06T10:53:21Z")

</div>

My mistake it’s 6.5.7.3

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [6. Februar 2024 um 11:03 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/6 "2024-02-06T11:03:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 11:17 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/7 "2024-02-06T11:17:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [6. Februar 2024 um 11:39 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/8 "2024-02-06T11:39:21Z")

</div>

sorry, but don’t know the plugin

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 13:43 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/9 "2024-02-06T13:43:46Z")

</div>

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

 ![pro](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/3/b/3b9ebd6083a68c47e5320692eefa68d0cc9315a7.png)

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 13:44 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/10 "2024-02-06T13:44:17Z")

</div>

![prom](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/b/1/b1a208e091e2eac9810f60d2e3c6de24de3a191b.png)

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 13:45 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/11 "2024-02-06T13:45:29Z")

</div>

![promo](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/b/7/b762836586d9a2213f9ea8f4866a9ef45eb381b1.png)

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 13:46 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/12 "2024-02-06T13:46:06Z")

</div>

![promot](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/4/a4c26a3499cd4e602d1bcf643cc44e8de78c4ab3.png)

---

<div class="post-metadata">

**Author:** ![jamin](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jamin](https://forum.shopware.com/u/jamin)\
**Post date:** [6. Februar 2024 um 13:46 UTC](https://forum.shopware.com/t/shopware6-4-to-6-5-7-3-and-facing-this-error/102821/13 "2024-02-06T13:46:52Z")

</div>

![error-2](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/3/c/3c62a2f517d32f95a5e03823e18846b47fccc65c.png)
