Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Burke ♞ Knight on September 16, 2013, 06:51:38 AM

Title: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Burke ♞ Knight on September 16, 2013, 06:51:38 AM
In admin panel, getting this when trying to save edits in Current Theme, and when try to clear file cache.

Token verification failed. Please go back and try again.

Any ideas on why, or fix?

EDIT:

Now, I'm getting it everywhere in Admin section.
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Illori on September 16, 2013, 06:54:48 AM
it works fine for me, are you using the latest version from github?
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Burke ♞ Knight on September 16, 2013, 06:56:22 AM
Yes, been working on a theme, now get this everywhere.
Test site on localhost WAMP server.
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Illori on September 16, 2013, 06:58:02 AM
then it seems like you may have removed some code for the token validation as that is in the theme files, not source. [hidden fields]
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Burke ♞ Knight on September 16, 2013, 07:01:14 AM
I think I found the issue.
Note to mod and theme makers:

Do not place any code in the area where the meta is, as it causes this issue.
I had tried to add my usual favicon setting right above the title tag in the meta section.
Had to move it up some. ;)
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Illori on September 16, 2013, 07:03:50 AM
that sounds odd, IMO it should not cause this issue unless there is an issue with the code syntax you used.
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Burke ♞ Knight on September 16, 2013, 07:04:59 AM
Here is my code:

<link rel="shortcut icon" href="', $settings['favicon'], '" type="image/x-icon" />

Works in 2.0.x forums.
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Illori on September 16, 2013, 07:06:54 AM
i guess at this point would be best for a dev to take a look... last i check i was not a dev :P
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Arantor on September 17, 2013, 10:17:28 AM
There are actually some issues with token validation in the generic settings pages since the token check is carried out but I don't see the token itself being pushed into the generic settings template.
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Arantor on January 13, 2014, 03:33:38 PM
In any case I can't reproduce this on current 2.1...
Title: Re: 2.1 Alpha 1: Token verification failed. Please go back and try again.
Post by: Burke ♞ Knight on January 14, 2014, 12:44:57 AM
I think Oldiesmann had fixed this back in September.
Just never got closed.