ElkArte Community

Project Support => Support => Topic started by: Atlas on November 13, 2018, 04:58:22 am

Title: Re: Session Verification Error!
Post by: Atlas on November 13, 2018, 04:58:22 am
Hi, I just installed version 1.1.5 and I'm unable to login, error occurs: "Your session timed out while posting. Please go back and try again."
PHP Version 7.1
Is there a list of required PHP extensions? Thanks.
Title: Re: Re: Session Verification Error!
Post by: ahrasis on November 13, 2018, 05:08:24 am
Do try clearing site cache and cookies.
Title: Re: Re: Session Verification Error!
Post by: Atlas on November 13, 2018, 06:32:55 am
Do try clearing site cache and cookies.
Assuming you mean my browser, I cleared it and still have the warning. I even deleted the session values in the db table "_sessions" and reloaded the login page, that didn't help either. BTW, this is a fresh install on a new domain.

Also,the registration feature fails to advance passed the registration agreement.
Title: Re: Re: Session Verification Error!
Post by: Spuds on November 14, 2018, 12:00:57 am
I'd upgrade to the latest 1.0.10 branch and check if that works on 7.2, I honestly don't remember if there are any deal breaking issues with 7.2 with that release. 

The reason I suggest 1.0.10 is that moving to the 1.1.x branch, while recommended, will take some time to migrate your theme to that version, old themes are generally not drop in compatible.  So if 1.0.10 works on 7.2 that will buy you the time needed for you to get your site converted to 1.1.x

Yes most of the addons you are using have been updated for 1.1, so that is good, the main work will be with the theme

The errors that I could see on that screen shot were all depreciated warnings, they will certainty fill up your log but should not prevent the code from running (and we can suppress them to help)
Title: Re: Re: Session Verification Error!
Post by: ahrasis on November 14, 2018, 12:39:04 am
1.0 does work with php 7.2 though minor fix may be required to remove all create_function errors. I am not sure if there are errors other than that.
Title: Re: Re: Session Verification Error!
Post by: Spuds on November 14, 2018, 01:05:56 am
Good to know :D ... we can provide some easy patches for those (and they should already exist in the 1.1 line anyway, so copy paste!)
Title: Re: Re: Session Verification Error!
Post by: Atlas on November 14, 2018, 11:18:49 pm
So the advice is to revert to 1.0?
Title: Re: Re: Session Verification Error!
Post by: Spuds on November 15, 2018, 02:02:37 am
1.1 is where you "want" to be ... my recommendation was solely to not force you to get your theme converted in the next 30 days or whatever timeline your ISP gave you.  I was just trying to buy you some time ;)
Title: Re: Re: Session Verification Error!
Post by: emanuele on November 15, 2018, 02:33:07 pm
@Spuds I think @Atlas just installed 1.1 fresh. :)
Title: Re: Re: Session Verification Error!
Post by: Atlas on November 24, 2018, 03:46:41 am
@Spuds I think @Atlas just installed 1.1 fresh. :)
I changed my PHP to 7.2 and tried again to install Elkarte 1.1, same errors.
Title: Re: Re: Session Verification Error!
Post by: emanuele on November 24, 2018, 09:17:31 pm
@Atlas now I'm a little confused.
Can you please help me understand where you are now?
If I understand correctly, Elk 1.1.x and php 7.2 does not work.
What about ElkArte 1.1.5 and php 7.1, does it work or not?
Title: Re: Re: Session Verification Error!
Post by: Atlas on November 26, 2018, 09:58:56 am
@Atlas now I'm a little confused.
Can you please help me understand where you are now?
If I understand correctly, Elk 1.1.x and php 7.2 does not work.
What about ElkArte 1.1.5 and php 7.1, does it work or not?
Yes, sorry, Fresh install of ElkArte 1.1.5 with 7.1 and 7.2, neither attempt worked. I was checking the other threads here... is there an issue with the https setting? Because I've configured my server to only allow https, that might be an issue.

Also, this site is new, aside from forcing https, I haven't done much configuring, there are many PHP extensions not installed. Is there a list of the required extensions?
Title: Re: Re: Session Verification Error!
Post by: Auctor Lucan on November 26, 2018, 10:27:34 am
Wow, I have that feature activated as well. Could that be the common issue that mucks up our forums?
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 04, 2018, 05:43:35 pm
I just successfully installed v1.1.5, "manually". My previous attempted installs were through my CPanel.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 05, 2018, 04:18:56 am
I just successfully installed v1.1.5, "manually". My previous attempted installs were through my CPanel.
eh, i spoke too soon. I successfully installed v1.1.5 offline, but still having the same error installing the live (online) copy.  I guess my next step will be to compare PHP modules between my online/offline servers.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 05, 2018, 04:40:18 am
I just successfully installed v1.1.5, "manually". My previous attempted installs were through my CPanel.
eh, i spoke too soon. I successfully installed v1.1.5 offline, but still having the same error installing the live (online) copy.  I guess my next step will be to compare PHP modules between my online/offline servers.
well, i enabled all PHP 7.2 extensions, and still have the error. Aside from the extensions, the differences between my online and offline servers are:
online: PHP 7.2.12, uses https - gets session error.
offline: PHP 7.2.10RC1, uses http, no session error.

..btw, "browser history" can't be the issue. I've tested it with multiple browsers, multiple devices, same issue in all.

To be clear, I'm getting the error when i attempt to login as admin after installation. Also when I change browsers and attempt to register a new account I'm unable to get passed the agreement page.
Title: Re: Re: Session Verification Error!
Post by: emanuele on December 05, 2018, 09:15:44 am
Okay, I split the topic because I was getting way too confused as to who was having which problem.
Next time you have a similar issue, please create your own topic and reference the other one, otherwise mixing two issues from two different forums that are using two different versions is way too confusing.

Please via phpmyadmin (or any other tool you prefer), check if you have something in the table elkarte_log_errors.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 05, 2018, 09:23:07 am
Please via phpmyadmin (or any other tool you prefer), check if you have something in the table elkarte_log_errors.

The table is empty.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 05, 2018, 09:30:38 am
Also i tried deleting rows in the "elkarte_sessions" table before attempting admin login again, that didn't help either.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 05, 2018, 12:33:25 pm
More info. I exported the SQL for my offline (successful) copy, edited the paths for the online copy and overwrote the online SQL with the edited version. That didn't help either.
Title: Re: Re: Session Verification Error!
Post by: emanuele on December 06, 2018, 11:31:52 pm
Could you please try with javascript disabled? It shouldn't be, but let's try that one as well.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 07, 2018, 10:41:07 pm
Could you please try with javascript disabled? It shouldn't be, but let's try that one as well.

That didn't help either.  Sending another link to you via PM.  Thanks for your help.
Title: Re: Re: Session Verification Error!
Post by: emanuele on December 08, 2018, 12:06:32 pm
You are using a redirect to hide the index.php and this is the thing messing with sessions.
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 08, 2018, 12:48:20 pm
You are using a redirect to hide the index.php and this is the thing messing with sessions.

ha! i didn't think of that! good catch, I forgot about that configuration.

Thank you so very much, I'm excited about this again, I can't wait to share my customizations with you. idk if you remember me from last year but I'm an rdfa-dev, but that's just the beginning of my customizing ideas, I'm also planning to use the forum as a Comments' repository (https://www.elkarte.net/community/index.php?topic=5487.msg39134;topicseen#msg39134)... by that I mean I intend to auto-generate topics per page for the site and use topic-replies as comments --semantically marked-up as such, of course. Kinda Elkarte meets Disqus... a Disqus that can't be censored by the likes of someone like Disqus.
Title: Re: Re: Session Verification Error!
Post by: ahrasis on December 08, 2018, 12:50:00 pm
No wonder...
Title: Re: Re: Session Verification Error!
Post by: Atlas on December 09, 2018, 08:46:34 am
You are using a redirect to hide the index.php and this is the thing messing with sessions.

Confirmed issue. We can mark this one resolved.

thanks again