# Invalides Formular-Token!

**URL:** <https://forum.shopware.com/t/invalides-formular-token/45731>\
**Category:** Allgemein\
**Created:** [12. Mai 2017 um 16:29 UTC](https://forum.shopware.com/t/invalides-formular-token/45731 "2017-05-12T16:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kerstin83](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@Kerstin83](https://forum.shopware.com/u/Kerstin83)\
**Post date:** [12. Mai 2017 um 16:29 UTC](https://forum.shopware.com/t/invalides-formular-token/45731/1 "2017-05-12T16:29:39Z")

</div>

Liebes Forum 🙂 🙂

Ich bekomme bei Formularen eine Fehlermeldung. Zum Beispiel wenn das Kontaktformular abgesendet werden soll oder man sich als Kunde einloggt.

Fehlermeldung im Frontend:

> Invalides Formular-Token!
> 
> Die Aktion konnte aufgrund eines invaliden Formular-Tokens nicht durchgeführt werden.  
> Ein neues Token wurde bereits generiert.
> 
> Bitte gehen Sie in Ihrem Browser eine Seite zurück und starten die Aktion erneut.
> 
> &nbsp;

Und als Fehlermail erhalte ich

> exception ‚Shopware\Components\CSRFTokenValidationException‘ with message ‚The provided X-CSRF-Token for path „/stripetest/account/login/sTarget/checkout/sTargetAction/confirm“ is invalid. Please go back, reload the page and try again.‘ in /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Shopware/Components/CSRFTokenValidator.php:155  
> Stack trace:  
> #0 [internal function]: Shopware\Components\CSRFTokenValidator-\>checkFrontendTokenValidation(Object(Enlight\_Controller\_ActionEventArgs))  
> #1 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Library/Enlight/Event/Handler/Default.php(91): call\_user\_func(Array, Object(Enlight\_Controller\_ActionEventArgs))  
> #2 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Library/Enlight/Event/EventManager.php(214): Enlight\_Event\_Handler\_Default-\>execute(Object(Enlight\_Controller\_ActionEventArgs))  
> #3 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Library/Enlight/Controller/Action.php(143): Enlight\_Event\_EventManager-\>notify(‚Enlight\_Control…‘, Object(Enlight\_Controller\_ActionEventArgs))  
> #4 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch(‚loginAction‘)  
> #5 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))  
> #6 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Shopware/Kernel.php(182): Enlight\_Controller\_Front-\>dispatch()  
> #7 /var/www/vhosts/meinshop.de/httpdocs/stripetest/vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
> #8 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)  
> #9 /var/www/vhosts/meinshop.de/httpdocs/stripetest/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)  
> #10 /var/www/vhosts/meinshop.de/httpdocs/stripetest/vendor/symfony/http-kernel/HttpCache/HttpCache.php(275): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true)  
> #11 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Shopware/Components/HttpCache/AppCache.php(141): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)  
> #12 /var/www/vhosts/meinshop.de/httpdocs/stripetest/vendor/symfony/http-kernel/HttpCache/HttpCache.php(206): Shopware\Components\HttpCache\AppCache-\>invalidate(Object(Symfony\Component\HttpFoundation\Request), true)  
> #13 /var/www/vhosts/meinshop.de/httpdocs/stripetest/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
> #14 /var/www/vhosts/meinshop.de/httpdocs/stripetest/shopware.php(117): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))  
> #15 {main}  
> 2017-05-12T18:22:55.972285+0200  
> core  
> {  
> &nbsp; &nbsp; „uri“: „/stripetest/account/login/sTarget/checkout/sTargetAction/confirm“,  
> &nbsp; &nbsp; „method“: „POST“,  
> &nbsp; &nbsp; „query“: {  
> &nbsp; &nbsp; &nbsp; &nbsp; „module“: „frontend“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „controller“: „account“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „action“: „login“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „sTarget“: „checkout“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „sTargetAction“: „confirm“  
> &nbsp; &nbsp; },  
> &nbsp; &nbsp; „post“: {  
> &nbsp; &nbsp; &nbsp; &nbsp; „sTarget“: „checkout“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „email“: „…“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „Submit“: „“,  
> &nbsp; &nbsp; &nbsp; &nbsp; „\_\_csrf\_token“: „“  
> &nbsp; &nbsp; }  
> }  
> No session data available  
> 1  
> Stripetest

Was könnte das sein ?

Es ist sw 5.2.22 und die letzte Änderung war, dass ich stripe installiert habe.

Liebe Grüße

Kerstin
