# Das Plugin konnte aufgrund der Fehlermeldung "syntax error, unexpected 'EntityRepositoryInterface..

**URL:** <https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085>\
**Category:** Programmierung\
**Created:** [14. Januar 2021 um 09:07 UTC](https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085 "2021-01-14T09:07:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BMoris](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@BMoris](https://forum.shopware.com/u/BMoris)\
**Post date:** [14. Januar 2021 um 09:07 UTC](https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085/1 "2021-01-14T09:07:49Z")

</div>

Eventuell kann mir hier eine helfen. Ich frage mit einem Plugin ein Kernel Event ab und redirecte beim auftreten des events, den user auf eine&nbsp;erstelte Fehler-Seite. Ich entwickel Plugins auf einen Lokalen Test-Shop ( Version 6.3.4.1). Das Plugin funktioniert auf dem Test-Shop ohne Probleme. Lade ich jedoch das Plugin auf einen weiteren Shopware-Shop hoch (ebenfals Version 6.3.4.1) kommt beim Aktivieren des Plugins Folgender Fehler:

_Das Plugin konnte aufgrund der Fehlermeldung “syntax error, unexpected ‘EntityRepositoryInterface’ (T\_STRING), expecting function (T\_FUNCTION) or const (T\_CONST)” nicht aktiviert werden._

Hat einer eine Idee wie man das lösen kann?

---

<div class="post-metadata">

**Author:** ![BMoris](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@BMoris](https://forum.shopware.com/u/BMoris)\
**Post date:** [14. Januar 2021 um 14:16 UTC](https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085/2 "2021-01-14T14:16:42Z")

</div>

Update: Die Repositorys werden in der service.xml nicht gefunden.&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/7ffacca69596eabc759f6e546e9c7e6315650bd9.png)

sales\_channel\_domain.repository wird nicht gefunden. Generell jedes .repository wird nicht gefunden. Bräuchte hilfe

---

<div class="post-metadata">

**Author:** ![FSA](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@FSA](https://forum.shopware.com/u/FSA)\
**Post date:** [22. Januar 2021 um 15:24 UTC](https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085/3 "2021-01-22T15:24:00Z")

</div>

das sind ein paar wenige informationen, kannst du bitte mal den constructor deiner class posten?

---

<div class="post-metadata">

**Author:** ![ThomasBaier](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@ThomasBaier](https://forum.shopware.com/u/ThomasBaier)\
**Post date:** [22. Januar 2021 um 17:47 UTC](https://forum.shopware.com/t/das-plugin-konnte-aufgrund-der-fehlermeldung-syntax-error-unexpected-entityrepositoryinterface/72085/4 "2021-01-22T17:47:59Z")

</div>

Wenn das Plugin lokal läuft und in production einen Syntaxfehler bringt, sollte es an unterschiedlichen PHP Versionen liegen. Bitte prüfe das doch einmal.
