Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: EmilioGaviria on April 13, 2025, 09:57:46 PM

Title: Token verification failed. Please go back and try again.
Post by: EmilioGaviria on April 13, 2025, 09:57:46 PM
so Im getting this message when I try to login "Token verification failed. Please go back and try again."

I have bunch of mods installed and Im assuming one of them is causing this issues, also I moved domain on the site this could be it (I doubt as issue started when I installed mods... even after I removed it never went away.. so its fair to say repair_sttings.pphp worked)

my question is, is there a way to troubleshoot this one to leave some kind of mark in the logs so I know where to look?
Title: Re: Token verification failed. Please go back and try again.
Post by: Kindred on April 14, 2025, 07:32:17 AM
moving domains can definitely cause this issue if you did not a) correctly update ALL of your system URLs and paths... and b) change the cookie name.


You can check/correct the urls/paths and cookie name using repair_settings.php

and/or delete your site cookies in your browser
Title: Re: Token verification failed. Please go back and try again.
Post by: EmilioGaviria on April 14, 2025, 09:49:33 AM
Quote from: Kindred on April 14, 2025, 07:32:17 AMmoving domains can definitely cause this issue if you did not a) correctly update ALL of your system URLs and paths... and b) change the cookie name.


You can check/correct the urls/paths and cookie name using repair_settings.php

and/or delete your site cookies in your browser

sorry forgot to mention, I moved domains while back and everything was working for months
it's definitely one of the mods I installed, but now even after all are removed, issue persists

is there really no way to log where this error is coming from?

Title: Re: Token verification failed. Please go back and try again.
Post by: Kindred on April 14, 2025, 10:02:14 AM
Did you clear your cookies?
Title: Re: Token verification failed. Please go back and try again.
Post by: EmilioGaviria on April 14, 2025, 05:26:44 PM
yeah .. multiple browsers
removed all installed mods, remove all hooks from repair_settings.php

still same issue for all forum users

I installed invitation mod, conversations and shoutbox pro from smfhacks

I'm 99% sure everything was working just fine with these 3

than I started installing random themes and boom, now I'm stuck with this error.. no fixing it even when I remove all mods

Title: Re: Token verification failed. Please go back and try again.
Post by: Kindred on April 14, 2025, 06:16:12 PM
ok,...


1- install themes before mods. otherwise mod edits to template will not be applied to new themes

2-what theme are you running now?

3- what are your settings for local vs subdomain independent cookies?
4- what are your settings for database driven sessions?
Title: Re: Token verification failed. Please go back and try again.
Post by: EmilioGaviria on April 15, 2025, 09:26:03 AM
Quote from: Kindred on April 14, 2025, 06:16:12 PMok,...


1- install themes before mods. otherwise mod edits to template will not be applied to new themes

2-what theme are you running now?

3- what are your settings for local vs subdomain independent cookies?
4- what are your settings for database driven sessions?

1.) I guess this is where being new to smf comes in.. I just wanted to see what it looks like
2.) only default now
3) It's a sub-domain to begin with, its a dev site and Im still learning, I invited some users to join and test .. but it's not a "production" site .. keep in mind, this wasn't a problem until I installed "something"
4.) Where do I see that?


Title: Re: Token verification failed. Please go back and try again.
Post by: Kindred on April 15, 2025, 09:34:42 AM
index.php?action=admin;area=serversettings;sa=cookie
Title: Re: Token verification failed. Please go back and try again.
Post by: EmilioGaviria on April 16, 2025, 09:41:50 AM
no luck

I'm just gonna do re-install and try again but only with modifications I need

didn't think testing some mod\theme and deleting if I don't like it would break things ....