# \[Fatal error:\] 5.6.x auf 5.7.x -\> ServiceLocator::has(string $id) must be compatible with

**URL:** <https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374>\
**Category:** Shopware 5\
**Created:** [16. Juni 2021 um 08:38 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374 "2021-06-16T08:38:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbmedia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/gbmedia/32/8606_2.png) [@gbmedia](https://forum.shopware.com/u/gbmedia)\
**Post date:** [16. Juni 2021 um 08:38 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374/1 "2021-06-16T08:38:52Z")

</div>

Verdammt,

das Update (5.6.9, 5.6.10) auf 5.7.x ist nicht möglich.

```auto
Fatal error: Declaration of Symfony\Component\DependencyInjection\ServiceLocator::has(string $id) must be compatible with Psr\Container\ContainerInterface::has($id) in /var/www/vendor/symfony/dependency-injection/ServiceLocator.php on line 46

```

- 5.6.9 auf 5.7.x über das Backend  
geht nicht

- 5.6.9 auf 5.7.x über Konsole  
geht nicht

- 5.6.9 auf 5.6.10 über Konsole  
geht

- 5.6.10 auf 5.7.x über das Backend  
geht nicht

- 5.6.10 auf 5.7.x über Konsole  
geht nicht

Ich erhalte immer diesen Fehler.  
Hat jemand ne Idee woran das liegt?

```auto
// geht leider auch nicht
composer install

```

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [16. Juni 2021 um 19:54 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374/2 "2021-06-16T19:54:59Z")

</div>

Hast du evtl. Plugins die selber Symfony Abhängigkeiten mitbringen? Das sieht nach einer Versionkollision aus

---

<div class="post-metadata">

**Author:** ![gbmedia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/gbmedia/32/8606_2.png) [@gbmedia](https://forum.shopware.com/u/gbmedia)\
**Post date:** [16. Juni 2021 um 20:10 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374/3 "2021-06-16T20:10:34Z")

</div>

hi shyim,  
tasächlich hat sich ein plugin versteckt.  
ich geh gerad noch paar sachen durch, aber derzeit sieht es besser aus als heut morgen.

---

<div class="post-metadata">

**Author:** ![gbmedia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/gbmedia/32/8606_2.png) [@gbmedia](https://forum.shopware.com/u/gbmedia)\
**Post date:** [16. Juni 2021 um 20:37 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374/4 "2021-06-16T20:37:12Z")

</div>

yay, geschafft.  
also, es hat sich tatsächlich ein plugin versteckt das nach dem update zur kollision geführt hat.  
musste alles zurück setzen, das symfony paket updaten, dann ging das SW update durch.  
die meldung ist nun weg.

danke @shyim und bleib gesund

---

<div class="post-metadata">

**Author:** ![gettheMaX](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@gettheMaX](https://forum.shopware.com/u/gettheMaX)\
**Post date:** [27. Oktober 2021 um 09:55 UTC](https://forum.shopware.com/t/fatal-error-5-6-x-auf-5-7-x-servicelocator-has-string-id-must-be-compatible-with/88374/5 "2021-10-27T09:55:42Z")

</div>

Moin, mich würde interessieren welches Plugin es bei dir war. Ich habe gerade das gleiche Problem.
