Sep 28, 2020, 10:43 AM

News:

Backup those files BEFORE manually editing them


Session verification fail and can't log out

Started by LandyVlad, Sep 15, 2020, 07:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LandyVlad

I am trying to log into my test forum http://gsx1400owners.org/forum_test/index.php
to do some admin on it and also do a test update etc.

It logs me in automatically (password is saved on chrome) and I am pretty sure I know the password, but when I try to go into admin and it wants me to confirm my password I get: 

QuoteAn Error Has Occurred!
Session verification failed. Please try logging out and back in then try again.

So I click on log out and get the same again:
QuoteAn Error Has Occurred!
Session verification failed. Please try logging out and back in then try again.

Sooo it's telling me to log out but also won't let me.

Hmmm.

Thoughts?
I reject your reality, and substitute my own.

Skhilled

You need to clear your browser's cache by using CTRL+F5. Then try again.

You should also upgrade it to the latest version, 2.0.17.

LandyVlad

first thing I tried mate - no luck.

Yeah I'll do upgrades etc but need to be sure I can get in first.
Fix one problem at a time :) 

I reject your reality, and substitute my own.

Skhilled


LandyVlad

Sep 17, 2020, 07:01 PM #4 Last Edit: Sep 17, 2020, 07:04 PM by LandyVlad
Any ideas?
I reject your reality, and substitute my own.

lurkalot

Quote from: LandyVlad on Sep 17, 2020, 07:01 PMAny ideas?

Just curious, can you login via the saved login you mentioned, then try going admin via this link http://gsx1400owners.org/forum_test/index.php?action=tpadmin;sa=panels;noblocks

And let me know what happens.

Skhilled

Here's the fix for your SMF version. You'll need to use FTP if you can't login. Or try a different browser.

For the themes, in index.template.php look for this:

<input type="hidden" name="hash_passwrd" value="" />
And replace it with this:

<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
It should look similar to this:
https://www.simplemachines.org/community/index.php?topic=553902.msg3925962#msg3925962

lurkalot

I was going to suggest the session check fix Steve, but thought twice as LandyVlad must have gone through this scenario on his live site and fixed it there.. That made me think it might be something else.

Hopefully it is just that because it's nice and easy to fix.  ;)   

Skhilled

I was thinking the same. If it wasn't SMF 2.0x then I'd think it would be something else. 2.0.15 definitely had that issue but was fixed in .16 or .17, I think.

lurkalot

Quote from: Skhilled on Sep 19, 2020, 12:03 PMI was thinking the same. If it wasn't SMF 2.0x then I'd think it would be something else. 2.0.15 definitely had that issue but was fixed in .16 or .17, I think.

The issue started in 2.0.14 and was still there in 2.0.15 https://wiki.simplemachines.org/smf/Login_error_2.0.14

Skhilled

Ah! You're right, I remember now. I, personally, didn't have many issues with it until I upgraded to .15 and then I started looking for a fix and found it.

LandyVlad

Quote from: lurkalot on Sep 18, 2020, 02:13 AMJust curious, can you login via the saved login you mentioned, then try going admin via this link http://gsx1400owners.org/forum_test/index.php?action=tpadmin;sa=panels;noblocks

And let me know what happens.

Yes, that works.  Odd.
I reject your reality, and substitute my own.

LandyVlad

Quote from: Skhilled on Sep 19, 2020, 03:05 AMHere's the fix for your SMF version. You'll need to use FTP if you can't login. Or try a different browser.

For the themes, in index.template.php look for this:

<input type="hidden" name="hash_passwrd" value="" />
And replace it with this:

<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
It should look similar to this:
https://www.simplemachines.org/community/index.php?topic=553902.msg3925962#msg3925962

Thanks.

I just went to install the 2.0.16 update and failed with heaps of errors.
So I tried uninstalling mods and a good 1/2 of those failed too. All sorts of dramas.

I think I'm better off just killing this test forum and making another clone from my working 2.0.17 version.
I reject your reality, and substitute my own.

lurkalot

Easiest way, just upload a fresh set of files from the Large Upgrade zip found here, https://download.simplemachines.org/

Just unzip it, and upload the files overwriting the existing files.  This will keep all your data, and give you a fresh working version of SMF without any mods, so you will need to reinstall your mods.  All settings and data from your mods such as the portal will be retained.

lurkalot

Quote from: LandyVlad on Sep 20, 2020, 10:59 PMYes, that works.  Odd.

Then I imaging it's one of the TP blocks causing the issue.  Try turning off the User Block, and or any block that has a login in it.  Or Upgrade the portal it's well out of date.  That should cure the login issue.