# CSRF-Token ungültig?

**URL:** <https://forum.shopware.com/t/csrf-token-ungultig/39861>\
**Category:** Allgemein\
**Created:** [15. September 2016 um 18:07 UTC](https://forum.shopware.com/t/csrf-token-ungultig/39861 "2016-09-15T18:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wulffmedia](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@Wulffmedia](https://forum.shopware.com/u/Wulffmedia)\
**Post date:** [15. September 2016 um 18:07 UTC](https://forum.shopware.com/t/csrf-token-ungultig/39861/1 "2016-09-15T18:07:19Z")

</div>

Guten Tag,

&nbsp;

ich habe einen Shop (Shop A) dort haben ich einen Sprachshop zu Shop A (Shop AS) dann noch einen Sub-Shop &nbsp;(Shop B).

Ich habe als Template:

Bare  
Responsive  
Shop-B

Das Shop B ist ein Responsive Template in dem ich den Ordner Kopiert und unbenannt habe und die theme.php bearbeitet habe ist es nun Shop B template.

&nbsp;

Das funkioniert ohne Probleme.&nbsp;

Nun möchte ich noch Sub-Shop C einrichten, das klappt auch alles. Aber wenn ich nun das Template Shop-B kopiere und umbenne dann schmuckt er mir ein Error beim Template Menü aus.

&nbsp;

Folgendes habe ich ausgelesen:

&nbsp;

```
Ups! Ein Fehler ist aufgetreten!

Die nachfolgenden Hinweise sollten Ihnen weiterhelfen.

The provided CSRF-Token is invalid. If you're sure that the request should be valid, the called controller action needs to be whitelisted using the CSRFWhitelistAware interface. in engine/Shopware/Components/CSRFTokenValidator.php on line 118

Stack trace:

#0 [internal function]: Shopware\Components\CSRFTokenValidator->checkBackendTokenValidation(Object(Enlight_Controller_ActionEventArgs))
#1 engine/Library/Enlight/Event/Handler/Default.php(91): call_user_func(Array, Object(Enlight_Controller_ActionEventArgs))
#2 engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#3 engine/Library/Enlight/Controller/Action.php(143): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#4 engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('themeCacheWarmU...')
#5 engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#6 engine/Shopware/Kernel.php(176): Enlight_Controller_Front->dispatch()
#7 vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#9 vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#10 engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#11 shopware.php(101): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#12 {main}

```

&nbsp;

Das genau muss ich nun tun um den Fehler zu behebn?

&nbsp;

Danke 🙂

---

<div class="post-metadata">

**Author:** ![kosdro](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@kosdro](https://forum.shopware.com/u/kosdro)\
**Post date:** [16. September 2016 um 14:08 UTC](https://forum.shopware.com/t/csrf-token-ungultig/39861/2 "2016-09-16T14:08:31Z")

</div>

**Hallo Community,**

**ich habe eine ähnliche Fehlermeldung. Wenn ich [www.XXXX.de/Backend/Cron](http://www.XXXX.de/Backend/Cron) ausführe.**

**Kann uns da niemand weiterhelfen.**

**Vielen Dank im Voraus.**

&nbsp;

The provided CSRF-Token is invalid. If you’re sure that the request should be valid, the called controller action needs to be whitelisted using the CSRFWhitelistAware interface. in engine/Shopware/Components/CSRFTokenValidator.php on line 118

Stack trace:

```
 #0 [internal function]: Shopware\Components\CSRFTokenValidator-\>checkBackendTokenValidation(Object(Enlight\_Controller\_ActionEventArgs)) #1 engine/Library/Enlight/Event/Handler/Default.php(91): call\_user\_func(Array, Object(Enlight\_Controller\_ActionEventArgs)) #2 engine/Library/Enlight/Event/EventManager.php(214): Enlight\_Event\_Handler\_Default-\>execute(Object(Enlight\_Controller\_ActionEventArgs)) #3 engine/Library/Enlight/Controller/Action.php(143): Enlight\_Event\_EventManager-\>notify('Enlight\_Control...', Object(Enlight\_Controller\_ActionEventArgs)) #4 engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('indexAction') #5 engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #6 engine/Shopware/Kernel.php(176): Enlight\_Controller\_Front-\>dispatch() #7 vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #8 engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #9 vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #10 engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #11 shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #12 {main}
```
