Mautic Community Forums

Cannot solve this error: CSRF token error. Try to refresh the page and try again

My software
My Mautic version is: 4.0.1
My PHP version is: 7.4.23
My Database type and version is: 5.5.68-MariaDB

I’ve read all discussions about this error on this forum and also on other forums around. But still cannot solve this issue:

  • every time I login into Mautic all stylesheets does not seem to load. A refresh solves this problem after which Mautic is neatly displayed
  • every time I visit content>email the error ’ CSRF token error. Try to refresh the page and try again’ is shown about 6 times. error messages disappear after which everything seems to work fine.
  • Often changes made in the builder are not saved and I lose all my adjustments. The buttons ‘builder’, ‘apply’ (etc.) are then inactive/not clickable.

I do now copy/paste all changes into standard notebook app (from Windows) and apply/save every change I make (close builder, save email content, open builder, etc.). This takes a lot of time.

Anyone else having this issues and know how to solve this?

Hi, this is not easy to troubleshoot without actually diving in.
Do you have SSL enabled?

Thank you for your reply.
SSL is enabled (forced) indeed.