Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: carbar57 on December 20, 2017, 08:37:37 PM

Title: Cannot login to my forum
Post by: carbar57 on December 20, 2017, 08:37:37 PM
I keep getting this error

(https://i.imgur.com/mD22X53.png)

Can't login as admin or as dummy member

So what can I do ?
Title: Re: Cannot login to my forum
Post by: Sir Osis of Liver on December 20, 2017, 08:41:26 PM
Which SMF version are you running?  Which theme?  Is that happening in the header login?  Have you tried the 'Login' menu option?  Can you login in Curve?
Title: Re: Cannot login to my forum
Post by: carbar57 on December 20, 2017, 09:16:26 PM
Version 2.013
Theme: Alpha Centure then switch back to default theme (might be curved), temporarily.
Tried all login fields. Same error again
Title: Re: Cannot login to my forum
Post by: Sir Osis of Liver on December 20, 2017, 09:57:06 PM
Link to your forum?  Can you pm test member login info?
Title: Re: Cannot login to my forum
Post by: carbar57 on December 20, 2017, 11:24:16 PM
Sent PM
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 01:04:49 AM
Try to login through

http://yourdomain/index.php?theme=1

OR through an error message, like try to view a member only area or a user profile as a guest, and use the login link in the error message.

Title: Re: Cannot login to my forum
Post by: carbar57 on December 21, 2017, 03:05:29 AM
Quote from: Aleksi "Lex" Kilpinen on December 21, 2017, 01:04:49 AM
Try to login through

http://yourdomain/index.php?theme=1

OR through an error message, like try to view a member only area or a user profile as a guest, and use the login link in the error message.
Tried that. Didn't work.
And there is no login link in the error message.
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 04:44:04 AM
When did this start, did you do something like install an update or a mod?
Title: Re: Cannot login to my forum
Post by: carbar57 on December 21, 2017, 06:20:50 AM
No ... Only changed themes then logged out.
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 06:24:19 AM
Could you give me a link to see?
Perhaps PM me a test login?
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 06:43:29 AM
Something is off there, and not just logins, have you installed any mods to the forum?

You could try running repair_settings.php to begin with, and check that everything is correct there.
https://download.simplemachines.org/index.php?tools

With your current forum state, I would perhaps also instruct you to try do a large upgrade (rewriting all files) or a complete reinstall to see if that fixes things.
Title: Re: Cannot login to my forum
Post by: Sir Osis of Liver on December 21, 2017, 03:58:55 PM
Running Curve, everything else is working, registration disabled.  Any mods?  How did you get to 2.0.15?
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 04:11:02 PM
The theme at least is mangled, I really suggest you do a large upgrade - overwrite all files. If this does not fix it, then at least we know the error is not in botched code. The forum seems to be missing some actions that are built in every SMF, so the code is not really "clean"...
Title: Re: Cannot login to my forum
Post by: carbar57 on December 21, 2017, 07:50:31 PM
Quote from: Sir Osis of Liver on December 21, 2017, 03:58:55 PM
Running Curve, everything else is working, registration disabled.  Any mods?  How did you get to 2.0.15?
Well not everything is working ...  I still cant login. I still have 2.0.13.   
I can't say what mods I have, because I need to login to see them.
Registration was turned due to bots and spammers trying to join.

Were you able to login with the details I sent in the PM ?
Title: Re: Cannot login to my forum
Post by: carbar57 on December 21, 2017, 07:52:07 PM
Quote from: Aleksi "Lex" Kilpinen on December 21, 2017, 06:24:19 AM
Could you give me a link to see?
Perhaps PM me a test login?

Sent PM
Title: Re: Cannot login to my forum
Post by: carbar57 on December 21, 2017, 08:13:52 PM
Quote from: Aleksi "Lex" Kilpinen on December 21, 2017, 04:11:02 PM
The theme at least is mangled, I really suggest you do a large upgrade - overwrite all files. If this does not fix it, then at least we know the error is not in botched code. The forum seems to be missing some actions that are built in every SMF, so the code is not really "clean"...
I don't know how to do anything you suggested and it seems to me, I have to be able
to login to do what your suggesting.

The only way is through my CPanel but what file am I looking for and what needs to be edited.

This is what I think. The error code is showing probably because a value has changed somewhere.
Possibly it may be that simple, but it may be much more than that.

What do you think ?

I really don't want to overwrite all files because then I may lose 5 years of added posts.
Title: Re: Cannot login to my forum
Post by: Sir Osis of Liver on December 21, 2017, 10:43:26 PM
Posts are in your database, uploading clean files doesn't touch content.  Not on my computer so can't post the link, but look in wiki for 'upload clean set of files'.  Short explanation - download large upgrade package, unzip, upload to forum root.  Delete all upgrade files (no need to run it).
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 21, 2017, 11:52:47 PM
Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Title: Re: Cannot login to my forum
Post by: carbar57 on December 22, 2017, 12:31:53 AM
Apparently I have 2.0.1.5 ... Got my son to look at it, even he's not familiar with SMF.

Somehow he's almost fixed it. Can login through theme, but then displays
alphacentauri203 theme but when I log out, it reverts to curve theme.(default)

He doesn't know how to fix that. Of course I want my visitors and members
to see the alphacentauri203 theme. It works better on mobiles.

To see what I mean ... Try the details I sent you in the PM

Any ideas how I can fix that.
Title: Re: Cannot login to my forum
Post by: Sir Osis of Liver on December 22, 2017, 12:36:35 AM
You have to reset the theme for all users in Admin -> Themes and Layout.
Title: Re: Cannot login to my forum
Post by: carbar57 on December 22, 2017, 12:54:39 AM
Quote from: carbar57 on December 22, 2017, 12:31:53 AM
Apparently I have 2.0.1.5 ... Got my son to look at it, even he's not familiar with SMF.

Somehow he's almost fixed it. Can login through theme, but then displays
alphacentauri203 theme but when I log out, it reverts to curve theme.(default)

He doesn't know how to fix that. Of course I want my visitors and members
to see the alphacentauri203 theme. It works better on mobiles.

To see what I mean ... Try the details I sent you in the PM

Any ideas how I can fix that.

Update: Found how to fix the theme problem. Problem solved.
I only need to change a few images in alphacentauri203 theme
and everything should work properly.

So thanks for everyones help. Much appreciated.

Issue Resolved ... Whoo Hoo
Title: Re: Cannot login to my forum
Post by: Aleksi "Lex" Kilpinen on December 22, 2017, 01:04:25 AM
Glad to hear! :) If you run in to further problems, just let us know. For now, I'll mark the topic solved.