No Login possible on fresh installation

Started by Dave J, March 11, 2021, 05:13:30 AM

Previous topic - Next topic

Dave J

I have the same issue. 'You were unable to login. Please check your cookie settings.'

I started with installing the latest version from Github and no matter what I did as far as clearing cookies etc and using a newly installed browser it would not let me log in.

I then installed an older version 'smf_2-1-rc2_install' once the install was complete I was able to log in. I then uploaded the 'smf_2-1-rc3_upgrade' and once the upgrade was successfully completed went to log in and again it wouldn't let me.

It's my test site which is in a sub directory of my main site https://www.davejohnson.co.uk/testing/. I have cleared all the cookies and cache from all of my browsers and nothing works. I even used Dolphin browser on my tablet and it still wont let me in.

So you are aware I have recently successfully installed 2.0.18 in the same location with no errors, in fact that's the site I used to reconfigure SMFQuiz, my next mission (with code changes) was to try and get the quiz to work on SMF2.1.

I'm using Hostgator (yes I know what some of you think about it) but I've had no previous issues, apart from self inflicted ones.
PHP ea-php70

Aleksi "Lex" Kilpinen

Okay, I don't see anything obvious wrong - Try going directly to https://www.*.co.uk/testing/index.php?action=login, do a hard refresh ctrl+F5 and try to login.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

Quote from: Aleksi "Lex" Kilpinen on March 11, 2021, 05:32:35 AM
Okay, I don't see anything obvious wrong - Try going directly to https://www.*.co.uk/testing/index.php?action=login, do a hard refresh ctrl+F5 and try to login.

I tried that Lex, see attached for what happened


Aleksi "Lex" Kilpinen

Interesting. Can you try another browser?
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

Quote from: Aleksi "Lex" Kilpinen on March 11, 2021, 07:41:13 AM
Interesting. Can you try another browser?

Hi Lex.

Thanks for the replies

I did a fresh install of Chrome, which I've never used before and the results are the same. What I will do is remove the current install and start again with the version from here not the GitHub version. I will give you the password if the issue still remains.

Aleksi "Lex" Kilpinen

Alright, seems like a sensible next step - I'm gonna split this topic as well, just to keep it separate from the original issue.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

After the new install I have tried to register a new member, which went OK until it goes to auto log you in after the sign up process where again it stopped due to the cookie. Looking at the tables it has registered a new member so that process works just not the logging it.

I have just noticed something in the site files via the ftp that there is no 'htaccess file. Should there be one in 2.1?

Aleksi "Lex" Kilpinen

A .htaccess file isn't a requirement for SMF to work. I'll take a look at your new install.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

Thanks.

I have noticed through 'Inspect' on the browser this

Failed to load resource: the server responded with a status of 403 () /testing/index.php?action=login2;sa=check;member=1

Aleksi "Lex" Kilpinen

#9
Quote from: Aleksi "Lex" Kilpinen on March 11, 2021, 08:23:49 AM
A .htaccess file isn't a requirement for SMF to work. I'll take a look at your new install.
Okay, I can confirm that registration works - and login works until ?action=login2;sa=check;member=X ends up with the error
"You were unable to login. Please check your cookie settings." no matter if I use http:// or https:// - And no SMF cookie is set on the browser, ever. Only a PHP session cookie.
How about you try repair_settings.php and check all your paths, urls just to make sure, and look at your session / cookie settings - How are they set up?

EDIT:
Quote from: Dave J on March 11, 2021, 08:30:18 AM
I have noticed through 'Inspect' on the browser this

Failed to load resource: the server responded with a status of 403 () /testing/index.php?action=login2;sa=check;member=1
That's a good clue!! Do you have access to your server's error log? If you do, take a look at what they tell about that.


Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

Lex,

The server error log just logs this all the time and that's the only error

11-Mar-2021 13:37:35 UTC] PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0


there are 2635 entries for it. Every now and again I just delete the whole log file and then it comes back later starting afresh.

I'll try repair_settings.php and see what that does and let you know.

Dave J

Ran repair_settings.php and there were a couple of recommendations that were off that I have now selected, see attachments. All other links go to the correct location.

But I still can't log in.

I don't understand how the previous version RC2 works but not RC3 in my head it doesn't make sense. I wonder if I should go back to the previous version and then just start to change templates one by one and see what happens.

Aleksi "Lex" Kilpinen

I have flagged this topic for the support team and devs, in hopes of getting some more knowledgeable eyes on this. 
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Dave J

Quote from: Aleksi "Lex" Kilpinen on March 11, 2021, 08:57:10 AM
I have flagged this topic for the support team and devs, in hopes of getting some more knowledgeable eyes on this.

Thanks very much Lex it's much appreciated. I will leave everything as it is for the time being

Kindred

Just as a note: 2.1 RC3 download from github last month works fine....   

I'll try to update with a fresh copy from github later today and see if I can recreate
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dzonny

Not really sure if Image Magick may cause this kind of errror? From error pasted above, looks like Image Magick version is not compatible with php version installed, right? Can you change php version on your server maybe? And can you post result of phpinfo(); here as well, so we can take a look?

Kindred

OK, just confirmed that I can not recreate this with a fresh download from github.

Downloaded the Github ZIP
overwrote my existing installation
ran upgrade.php
logged out
logged in
repeated log out/in several times

Something would appear to be odd in the specific setup for your site
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

have you tried to change your cookie name to something else and see if that helps?

Dave J

#18
Thanks everyone for your input.

Quote from: Dzonny on March 11, 2021, 09:27:21 AM
Not really sure if Image Magick may cause this kind of errror? From error pasted above, looks like Image Magick version is not compatible with php version installed, right? Can you change php version on your server maybe? And can you post result of phpinfo(); here as well, so we can take a look?

The only way I know how to do that is with the attached pdf.

Quote from: Illori on March 11, 2021, 09:59:13 AM
have you tried to change your cookie name to something else and see if that helps?

I tried changing that from the default to '326' but it's still not working.

Quote from: Kindred on March 11, 2021, 09:43:08 AM
OK, just confirmed that I can not recreate this with a fresh download from github.

Downloaded the Github ZIP
overwrote my existing installation
ran upgrade.php
logged out
logged in
repeated log out/in several times

Something would appear to be odd in the specific setup for your site

What I don't understand Kindred is why SMF2.1RC2 works fine and I can log in, but RC3 doesn't.

The attachment will be temporarily available for team shortly in the Support Team board. Removed from public view by Lex.

Aleksi "Lex" Kilpinen

I removed the attachment from public view, as a preventative security measure.
Quote from: Dave J on March 11, 2021, 11:00:26 AM
The attachment will be temporarily available for team shortly in the Support Team board. Removed from public view by Lex.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: