# PHP Fatal error: Call to a member function getId()

**URL:** <https://forum.shopware.com/t/php-fatal-error-call-to-a-member-function-getid/49678>\
**Category:** Administration\
**Created:** [23. November 2017 um 16:10 UTC](https://forum.shopware.com/t/php-fatal-error-call-to-a-member-function-getid/49678 "2017-11-23T16:10:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexusonline](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@alexusonline](https://forum.shopware.com/u/alexusonline)\
**Post date:** [23. November 2017 um 16:10 UTC](https://forum.shopware.com/t/php-fatal-error-call-to-a-member-function-getid/49678/1 "2017-11-23T16:10:11Z")

</div>

Nach einer Migration bekomme ich in Shopware plötzlich:

PHP Fatal error:&nbsp; Call to a member function getId() on null in /web/engine/Shopware/Components/Snippet/Manager.php on line 156

server 500 error kein Zugriff mehr auf Frontend und Backend…

was kann das sein? wie könnte man das beheben…???

Shopware version .5.3.1

Gruß

alex

---

<div class="post-metadata">

**Author:** ![DanielNogel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@DanielNogel](https://forum.shopware.com/u/DanielNogel)\
**Post date:** [24. November 2017 um 06:24 UTC](https://forum.shopware.com/t/php-fatal-error-call-to-a-member-function-getid/49678/2 "2017-11-24T06:24:12Z")

</div>

Hi,

wenn ich das richtig sehe, versucht er dort auf die ID der Fallback-Sprache zuzugreifen. Die existiert bei dir nicht. Hast du die Locale ‘en\_GB’ bei dir gelöscht?

Besten Gruß

Daniel

---

<div class="post-metadata">

**Author:** ![alexusonline](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@alexusonline](https://forum.shopware.com/u/alexusonline)\
**Post date:** [24. November 2017 um 08:57 UTC](https://forum.shopware.com/t/php-fatal-error-call-to-a-member-function-getid/49678/3 "2017-11-24T08:57:21Z")

</div>

Hi Daniel 🙂 danke für die Hilfe,

PERFEKT!!! das war die Lösung! in der Datenbank war en\_EN statt en\_GB O.o

danke danke!
