This forum is archived. Posts are preserved for historical reference. For current help, join us on Discord.

Token doesn't match!

In Modifications and Hackery · Started by PeterAarts on 2019-03-12 8:10 pm · 15347 views · 5 replies

I have been using UserSPice as framework for my website a long time, I always was able to copy it to a new directory and use it again while testing.
[size=small]Since a certain moment, forget when, I always get a message : Token doesn't match!
[/size]
[size=small]I can't find a way to get the website to work again !?[/size]
[size=small]I feel like a fool, not being able to solve this, I expect it to be very simple...:([/size]
Peter,

Tokens not matching occur when the token being submitted in the form does not match the token generated in the class. This would be in a form or anytime you generate and post/submit a token.

Can you provide more information on the specific cases and code this is happening with? Is this custom code or US core code?

Brandin.
Hi Brandin,

The website works great on 1 instance, copying to antoher server with another URL (localhost or webserver name) the error occurs.
Both servers have the same apache and MySql configuration. I the past it worked performing this method. I'm using US 4.3.
Peter,

Unfortunately I have no idea what could be causing this issue. Are they different OS'? I know we've run into some random issues here and there with Ubuntu I believe it was.

Brandin
I fixed it by performing a complete clean install and database clean-up.
Thanks for sharing your resolution!