Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Willie on August 24, 2019, 11:55:56 PM

Title: cannot access admin "session timed out while posting."
Post by: Willie on August 24, 2019, 11:55:56 PM
just patched from 2.0.12  to .13  and cannot access admin. get error message when attempting login.  Also     cannot login on summary page, but can access all guest boards and it shows I am logged in when in those boards. Cannot access restricted boards nor admin.  What went wrong?
Title: Re: Your session timed out while posting. Please go back and try again.
Post by: Aleksi "Lex" Kilpinen on August 25, 2019, 12:02:55 AM
Are you sure it was .13? There's this known problem with custom themes and .14 https://wiki.simplemachines.org/smf/Login_error_2.0.14
Can you try to use the default theme? If your settings allow, you can test by accessing your forum with /index.php?theme=1
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 25, 2019, 11:16:52 AM
Thanks. 13 did not patch.  I am at .12 from .11      The test script allows me into admin.  Will look at my mod. Thanks again.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 25, 2019, 11:27:44 AM
Last available update for my Anecdota 2.0  theme was in 2013.   Did patching to .12 create the problem?  Is there a risk in using a theme that is not updated?
Title: Re: cannot access admin "session timed out while posting."
Post by: Looking on August 25, 2019, 12:27:36 PM
You should be looking up the error logs on your server if you have access to them.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 26, 2019, 10:29:43 AM
Thanks Looking. Had access and had nothing there.   

Ran repair script, saved the themes suggestions and now cannot access anything. Get "Unable to load Themes/default/Errors.template.php!" 

now the " /index.php?theme=1"  will not work.

is the template.php in theme directory? If so, can I edit it to access the theme=1   
Title: Re: cannot access admin "session timed out while posting."
Post by: Sir Osis of Liver on August 26, 2019, 12:45:57 PM
Crip's themes work fine in 2.0.15, you just have to add the session check to header login.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 26, 2019, 09:38:35 PM
Thank you, Sir.....Is this correct


<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 26, 2019, 10:01:14 PM

When using the repair script,  I changed path to Anecdota2 which it said was right and it now keeps me from accessing the site.


When going to my site I get    Unable to load Themes/default/Errors.template.php!

even when using      /index.php?theme=1

How do I access the config to correct the paths. And what ought they be? when using Anecdota2?




Title: Re: cannot access admin "session timed out while posting."
Post by: Sir Osis of Liver on August 26, 2019, 10:12:32 PM
Have you run repair_settings?  It allows you to reset all users to default Curve.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 12:45:51 AM
Yes Sir.   I used the repair script and the screenshot above is from the information provided by that script. I saved it and that is how I got where I am now. I was using anecdota_2 theme. I don't know what went wrong.  I patched from .11 to .12. Things got progressively worse.
Title: Re: cannot access admin "session timed out while posting."
Post by: Kindred on August 27, 2019, 12:51:48 AM
Wait wait wait...
Did you change the default theme settings to point to anecdota?
Title: Re: cannot access admin "session timed out while posting."
Post by: Sir Osis of Liver on August 27, 2019, 01:09:04 AM
(http://www.thekrashsite.com/pics/fp.gif)  Is that even possible?  Would be a disaster.

Yep, it's a disaster, and throws the errors.template error.  Don't recognize the screenshot, though.  Would have to manually change it back to /Themes/default in repair_settings.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 09:04:53 AM
The screen shot is from the information given to me by the repair script.   I did not change anything, I just saved what is there.     It's been ten years since I set up the site. I am using anecdota as my theme.  What was supposed to be in the default path?  How do I correct it?  repair script is not working.
Title: Re: cannot access admin "session timed out while posting."
Post by: Illori on August 27, 2019, 09:12:01 AM
can you post a larger section of the repair_settings.php script? we need to see clearly what it states for the default theme. the default theme paths should NEVER be changed to point to another theme.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 09:25:12 AM
I can't access the page any longer. I have the page open in a tab. If I do anything I will lose the page.   The rest of the page shows options, not paths.   Why won't the script work any longer?
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 09:40:41 AM
Here are the labels for the script information:

Title: Re: cannot access admin "session timed out while posting."
Post by: Kindred on August 27, 2019, 11:51:18 AM
yeah.... that title "SMF Default theme - Anectoda"

that seems to suggest that you did exactly what I said...   which would explain why nothing works, because you're not supposed to do that.

You can not load the repair_settings.php screen again?
That should not depend on the theme settings at all.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 08:14:44 PM
I got a firewall. I am getting used to it.  I ran the repair script again and it worked. What needs to go into the default theme?
Title: Re: cannot access admin "session timed out while posting."
Post by: Sir Osis of Liver on August 27, 2019, 08:24:18 PM
In repair_settings -

SMF Default Theme - Curve URL:    
SMF Default Theme - Curve Images URL:    
SMF Default Theme - Curve Directory:

must all be set to ...... /Themes/default.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 27, 2019, 08:45:17 PM
Thank you  Sir.

I cannot get into admin, so do I change the theme paths even though I can't change the default theme?  Can I change the theme name in template?
Title: Re: cannot access admin "session timed out while posting."
Post by: Sir Osis of Liver on August 28, 2019, 01:16:56 AM
<sigh> Change the default theme paths in repair_settings.php.
Title: Re: cannot access admin "session timed out while posting."
Post by: Willie on August 28, 2019, 06:04:41 PM
Thank you Sir.  It worked. There was a problem with the hosting people. They had  me locked out even though the firewall was down.  :( 

Appreciate the help you all gave. The software is so good, that even we who know little about coding can get by with a little help from our friends. The "default" themes is confusing. There is the default I set for all users which is not the software default. I see it now.  :)

Have other issues, will take them elsewhere.

Again, thanks.