# Was tun bei "SyntaxError: Invalid or unexpected token"

**URL:** <https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966>\
**Category:** Installation/Einstieg\
**Created:** [9. Dezember 2018 um 10:57 UTC](https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966 "2018-12-09T10:57:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krypnes](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Krypnes](https://forum.shopware.com/u/Krypnes)\
**Post date:** [9. Dezember 2018 um 10:57 UTC](https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966/1 "2018-12-09T10:57:47Z")

</div>

Hallo,  
Problem:  
Wenn ich im Backend Kategorien öffnen möchte kommt der Fehler “SyntaxError: Invalid or unexpected token” (siehe Bild)  
 ![](https://drive.google.com/file/d/11jkUKkbcxMiBQ6ZjKsYH6Km-VVjPiTfx/view)

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

Ursache:  
Ich glaube es lag dran das Ich einwenig mich mit einem Warenwirtschaftssystem beschäftighab. (JTL Connecter mit Wawi)  
Da ich dies aber nicht nutzen wollte hab ich es gelöscht und anscheind ist es deswegen passiert.

&nbsp;

Ich bedanke mich wenn Ihr mir helfen könnt.&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile")

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [9. Dezember 2018 um 23:12 UTC](https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966/2 "2018-12-09T23:12:06Z")

</div>

Hast Du den Shopware-Cache schon geleert?

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)

---

<div class="post-metadata">

**Author:** ![Krypnes](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Krypnes](https://forum.shopware.com/u/Krypnes)\
**Post date:** [13. Dezember 2018 um 07:49 UTC](https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966/3 "2018-12-13T07:49:42Z")

</div>

Ja denn Cache hab ich auch schon bereits geleert. Das Problem bleibt immer noch.  
&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![CarstenHarnisch](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@CarstenHarnisch](https://forum.shopware.com/u/CarstenHarnisch)\
**Post date:** [23. Dezember 2018 um 13:19 UTC](https://forum.shopware.com/t/was-tun-bei-syntaxerror-invalid-or-unexpected-token/56966/4 "2018-12-23T13:19:59Z")

</div>

manchmal sollte der cache auch auf der console gelöscht werden; verzeichnis var/cache und dort das shell-script ausführen.

ich hatte so einen ähnliche Fehler durch Plugins mit Fehlern oder durch Übersetzungen in denen z.B. Aprostrophs nicht richtig escaped waren …
