ElkArte Community

Elk Development => Bug Reports => Topic started by: ahrasis on June 16, 2016, 08:04:05 pm

Title: Token Error On Changing Back To Default Theme
Post by: ahrasis on June 16, 2016, 08:04:05 pm
I got this token verification error when changing back to default theme via admin cp. Log out and re-login but the result is still the same.

1.1.
Title: Re: Token Error On Changing Back To Default Theme
Post by: ahrasis on June 17, 2016, 02:49:11 am
Don't bother. I have deleted the upgraded site and its database. I don't think the upgrade works, fully.
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 17, 2016, 03:34:45 am
Usually token verification errors are completely unrelated to potential upgrade problems because tokens were present in 1.0 as well and they do not use the database (that is the only difference between a fresh install and an upgrade).
So, if it is a token issue it's going to be broken in a fresh install as well, while if the upgrade has an issue it's good to understand what the issue is and try to fix it, so a general description of what could be broken would be useful. :)
Title: Re: Token Error On Changing Back To Default Theme
Post by: ahrasis on June 17, 2016, 06:38:51 am
Unfortunately, the successfully (though not fully) upgraded site and database was already deleted. The token verification is not only affecting changing theme but also the other settings as well. In short, I simply cannot save any settings due to it.

I have tried to restore and upgrade the 107 site but the upgrade now stuck at old language error. I couldn't get it to pass that, so that was it for the upgrade.

Anyway, the install of 1.1 Beta 1 or 107 or the restore of 107 site is running just fine, so I think the issue is only related to upgrade. If I can go through with the upgrade, like I did the first time, may be, just may be, I can check the error again.
Title: Re: Token Error On Changing Back To Default Theme
Post by: ahrasis on June 17, 2016, 03:01:21 pm
Doing some digging and found this was once an issue in SMF 2.1 Alpha (http://www.simplemachines.org/community/index.php?topic=511231.0). @Burke Knight was reporting this and the issue was solved by Oldiesman. I am not so sure how to check it further since there is no link to that fix. Could this be related to this? I am not so sure until I can upgrade again.
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 17, 2016, 05:50:41 pm
The two things are most likely fairly different.
First of all it is important to know exactly what were you doing.
It's coming from an upgrade, so I guess you had a custom theme and wanted to go back to elk default.
I guess: admin > config > theme management > manage and install?
Then were you changing the "Overall forum default theme"?
Title: Re: Token Error On Changing Back To Default Theme
Post by: ahrasis on June 17, 2016, 11:38:37 pm
When the upgrade was successful, I did change the theme to FaceIt to test how far it is working with 1.1 beta 1. Everything seemed normal except for some like the font awesome for menu is no longer working.

Then, I tried installing ROAM addon for rearrangement of the admin menu. It works partially. So I removed the hook using the tool since I cannot uninstall it.

Then the token verification error came. Since I couldn't save some of my preferred settings, what I did was, I changed my theme to defauly using profile page. That works but the token verification error was still there.

I think I can just redo the upgrade (since I have all the backup except that upgraded one), so I deleted the site and its database.

Unfortunately, this time round I cannot upgrade with old and new package even I am using the same files and database. All that I got is old language error.

So that was the full story but I really not sure what was causing that token verification error. :D
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 09:34:19 am
Same error here on a 2.1 imported site.   Except in reverse.  The token error occurs on an added theme but not the default Elk.  The other theme is set as the forum default, if it helps. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 18, 2016, 09:35:58 am
So you are changing the theme in the profile?
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 10:15:00 am
Setting it back to the Elk default in a user's profile gets rid of the token verification issue, if that helps.  Please forgive my poor explanations. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 18, 2016, 10:23:59 am
Don't worry, I'm not in a good state of mind (headache due to some insect stinging me in the head and sleep deprivation are not a good combination LOL).
I mean the error token is always in the profile page, not in the admin one, right?
Because in the original report I had the impression it was in the admin panel, then at a certain point I understood it was in the profile page, so now I'm a little confused... O:-)
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 11:28:30 am
For me it happens in the admin panel or profile whenever attempting to make updates. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 18, 2016, 12:14:57 pm
Could you try to change the theme here?
Just to have a verification.
I added a quick&dirty color replacement for testing.
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 01:19:18 pm
Changed theme, did a profile edit.   Both were successful. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: Spuds on June 18, 2016, 01:52:49 pm
Which addons do you have installed (specifically do you have the fancybox addon ?)
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 05:45:13 pm
Bookmarks, ILA, Attachment Resize, Giggle Member Map, and Crips Blue theme.  No fancybox. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 18, 2016, 11:41:42 pm
Nevermind guys.  Sorry to add to the confusion.  The issue is in the Mostly Blue theme.  The problem doesn't occur in any other theme (installed a few for comparison).  Not sure of the cause though.   :-X
Title: Re: Token Error On Changing Back To Default Theme
Post by: emanuele on June 19, 2016, 02:28:53 am
Aha!
It could be an hook added that is not present in the theme, I'll give it a spin and see if it is possible to create a "compatibility pack" for the themes. :)
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 19, 2016, 04:30:00 pm
Hhhmmm.....dunno.   The same theme works on another site with the same mods just fine.  Perhaps reinstalling the theme will help.  Maybe it got corrupted or something. 
Title: Re: Token Error On Changing Back To Default Theme
Post by: badmonkey on June 19, 2016, 04:46:27 pm
Reinstalled.  So far no more errors.  :)  Thanks guys!