Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newsletter Subscribe & Unsubscribe => Invalid CSRF token #256

Closed
Webstylerin opened this issue Mar 14, 2022 · 1 comment
Closed

Newsletter Subscribe & Unsubscribe => Invalid CSRF token #256

Webstylerin opened this issue Mar 14, 2022 · 1 comment

Comments

@Webstylerin
Copy link

Webstylerin commented Mar 14, 2022

Hallöchen,

ich habe gerade eine Seite von Contao 4.9 auf 4.13 gezogen. Diese Seite besitzt das Newsletter-Modul und ich verschicke mit dem Notification Center die Benachrichtigungen, d.h. ich nutze die Module Unsubscribe (Notification Center), Subscribe (Notification Center) und Activate (Notification Center).

Unter 4.9 passt alles, wie es soll, unter 4.13 bekomme ich aber bei Subscribe und Unsubscribe einen Token-Fehler. Switche ich auf die entsprechenden Module des Cores passt es.

Ich hänge mal den Stack Trace an, aber der enthält keinen Hinweis auf das Notification Center, daher bin ich etwaws unsicher ob es wirklich am NC liegt.

Nachtrag: Wenn ich die Anfrage-Tokens deaktiviere funktioniert alles.

Contao\CoreBundle\Exception\InvalidRequestTokenException:
Invalid CSRF token. Please reload the page and try again.

  at vendor/contao/core-bundle/src/EventListener/RequestTokenListener.php:102
  at Contao\CoreBundle\EventListener\RequestTokenListener->__invoke()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:128)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (web/index.php:44)   
Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
Invalid CSRF token. Please reload the page and try again.

  at vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:91
  at Contao\CoreBundle\EventListener\ExceptionConverterListener->convertToHttpException()
     (vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:68)
  at Contao\CoreBundle\EventListener\ExceptionConverterListener->__invoke()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:213)
  at Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
     (vendor/symfony/http-kernel/HttpKernel.php:85)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (web/index.php:44)       

VG
Nicole

@aschempp
Copy link
Member

Der Fehler sollte in 1.6.9 behoben sein.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants