# Fehlermeldung Frontend: Argument 1 passed to Shopware

**URL:** <https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583>\
**Category:** Shopware 6 (German)\
**Created:** [22. November 2021 um 09:14 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583 "2021-11-22T09:14:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FragenAnsForum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/fragenansforum/32/7849_2.png) [@FragenAnsForum](https://forum.shopware.com/u/FragenAnsForum)\
**Post date:** [22. November 2021 um 09:14 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583/1 "2021-11-22T09:14:09Z")

</div>

Komplette Fehlermeldung:

# Argument 1 passed to Shopware\Core\Checkout\Cart\Delivery\Struct\ShippingLocation::createFromCountry() must be an instance of Shopware\Core\System\Country\CountryEntity, null given, called in /var/www/html/vendor/shopware/core/System/SalesChannel/Context/SalesChannelContextFactory.php on line 475

Das Backend funktioniert.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [22. November 2021 um 12:26 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583/2 "2021-11-22T12:26:23Z")

</div>

Das Lieferland wird nicht übergeben. Eventuell wurde es aus dem Theme entfernt oder … es wird jedenfalls nicht an Shopware übermittelt.

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [23. November 2021 um 06:36 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583/3 "2021-11-23T06:36:34Z")

</div>

Wo genau tritt das denn auf?  
Schau mal in den Sales-Channel Einstellungen, was dein Standard-Lieferland ist. Vielleicht ist es auch inaktiv?

---

<div class="post-metadata">

**Author:** ![FragenAnsForum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/fragenansforum/32/7849_2.png) [@FragenAnsForum](https://forum.shopware.com/u/FragenAnsForum)\
**Post date:** [23. November 2021 um 07:47 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583/4 "2021-11-23T07:47:22Z")

</div>

Hi Moritz,

nachdem ich Shopware local installiert habe und einen sqldump importiert habe.

Ja, das Standard-Lieferland ist leer - aber auch, wenn ich es fülle, klappt das Frontend nicht.

Bye

Michael

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [23. November 2021 um 09:26 UTC](https://forum.shopware.com/t/fehlermeldung-frontend-argument-1-passed-to-shopware/91583/5 "2021-11-23T09:26:42Z")

</div>

Also du hast es gefüllt, hast dann den Cache gelöscht und vielleicht nochmal deine Browser-Session/Cache gelöscht? Weil der Fehler deutet ziemlich darauf hin, dass es das fehlende Land im Sales-Channel ist.

Am besten mal im Inkognito-Modus testen.
