# Detail-Warenkorb-Problem

**URL:** https://forum.shopware.com/t/detail-warenkorb-problem/93981
**Category:** Shopware 5
**Created:** [19. April 2022 um 10:55 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981 "2022-04-19T10:55:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![solaradmin](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@solaradmin](https://forum.shopware.com/u/solaradmin)
#### Post date: [19. April 2022 um 10:55 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/1 "2022-04-19T10:55:26Z")

</div>

Beim Klick auf den Detailwarenkorb kommt folgende Fehlermeldung:

" **Fatal error** : Uncaught TypeError: Return value of Shopware\_Controllers\_Frontend\_Checkout::isShippingAllowed() must be of the type bool, string returned in /var/www/clients/client1/web2/web/engine/Shopware/Controllers/Frontend/Checkout.php:2170 Stack trace: #0 /var/www/clients/client1/web2/web/engine/Shopware/Controllers/Frontend/Checkout.php(201): Shopware\_Controllers\_Frontend\_Checkout-\>isShippingAllowed() #1 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Action.php(186): Shopware\_Controllers\_Frontend\_Checkout-\>cartAction() #2 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight\_Controller\_Action-\>dispatch() #3 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Front.php(225): Enlight\_Controller\_Dispatcher\_Default-\>dispatch() #4 /var/www/clients/client1/web2/web/engine/Shopware/Kernel.php(197): Enlight\_Controller\_Front-\>dispatch() #5 /var/www/clients/client1/web2/web/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shop in **/var/www/clients/client1/web2/web/engine/Shopware/Controllers/Frontend/Checkout.php** on line **2170**"

Hat jemand eine Idee, woran das liegen könnte?  
Danke für alle sachdienlichen Hinweise.

---

<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: [19. April 2022 um 11:01 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/2 "2022-04-19T11:01:37Z")

</div>

Hm, irgendwo die Lieferländer nicht richtug eingestellt?

---

<div class="post-metadata">

### Author: ![solaradmin](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@solaradmin](https://forum.shopware.com/u/solaradmin)
#### Post date: [19. April 2022 um 11:13 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/3 "2022-04-19T11:13:52Z")

</div>

Der finale Checkout funktioniert erfolgreich, aber beim Klick auf den Detailwarenkorb kommt diese Fehlermeldung

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [19. April 2022 um 11:29 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/4 "2022-04-19T11:29:22Z")

</div>

Hallo @solaradmin

wir konnten das von dir beschriebene Verhalten nachstellen und haben dafür ein Ticket erstellt: [Shopware Issuetracker](https://issues.shopware.com/issues/SW-26656)

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

### Author: ![solaradmin](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@solaradmin](https://forum.shopware.com/u/solaradmin)
#### Post date: [19. April 2022 um 11:35 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/5 "2022-04-19T11:35:05Z")

</div>

Können wir hier irgend etwas machen, reparieren, von Hand einstellen oder dergleichen, so das dieser Fehler abgestellt wird?

---

<div class="post-metadata">

### Author: ![solaradmin](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@solaradmin](https://forum.shopware.com/u/solaradmin)
#### Post date: [19. April 2022 um 11:38 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/6 "2022-04-19T11:38:13Z")

</div>

… also im Grund temporär, bis der Fehler gefixt ist, den Detail-Warenkorb deaktivieren; gibt es hierfür eine Möglichkeit?

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [19. April 2022 um 11:56 UTC](https://forum.shopware.com/t/detail-warenkorb-problem/93981/7 "2022-04-19T11:56:17Z")

</div>

Hallo,

du könntest höchstens manuell die Stelle fixen:

> <https://github.com/shopware/shopware/blob/v5.7.8/engine/Shopware/Controllers/Frontend/Checkout.php#L2170>

Diese Zeile wie folgt ergänzen:

```auto
return (bool) $countryTranslations[$countryId]['allow_shipping'];

```
