News:

Wondering if this will always be free?  See why free is better.

Main Menu

Moved hosting/server, now "stay logged in" is screwy

Started by showngo, January 19, 2021, 01:19:59 PM

Previous topic - Next topic

showngo

If you check the box most of the time you need to log in twice and you do not stay logged in. Other times logging in just repeats that screen.

I tried a search but "log" and "in" pull up a million posts.

Aleksi "Lex" Kilpinen

Just to narrow this down a bit, what browser are you using and have you tried if a different browser makes any difference?
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

showngo


Aleksi "Lex" Kilpinen

Alright, next who are you hosted with?
And do you get any errors in your logs when you try to login but it fails?
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

shadav

when you moved hosting, are you still using the same domain name or is it different?
maybe try running repair_settings
https://wiki.simplemachines.org/smf/Repair_settings.php
can't hurt anyways  :P

also moving servers, what is the php? 2.0.17 is only made for a high as 7.3, some mods however only work as high as 7.2

showngo

Same domain name, name servers have changed.
I will need to see what PHP version I have.

I'll give this all a try from my desktop.

showngo

Okay   I updated, during this move from simple portal 2.3.5 to 2.3.7, and looking at the errors it seems to be from that so I guess I will remove it or downgrade.

Aleksi "Lex" Kilpinen

Try, disable it - or remove it, and see if that fixes it. If it does, perhaps ask in the portal's support topic about it - If it doesn't, let us know and we can continue trying to figure this out.
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

showngo

Not fixed yet but it is from this error in the log,  There is no line
https: // xxxxxxx.com/forum/index.php?action=login2
Unable to verify referring url. Please go back and try again

showngo

I am reading up on the posts for  Unable to verify referring url

showngo

Okay, I have it down to, You can not log in with the first login that comes up automatically.  I have to click the login button, that screen changes and then it logs in with no problem, even with clicking the stay logged in button.

Illori

can you provide us a working link to your forum? we can tell a lot more that way.


showngo


Illori

that page gives a link to your forum as http://www.weaponsguild.com/forum/index.php

then you click around and you end up on a link that is https://weaponsguild.com/forum/index.php?PHPSESSID=4eaa568d795891e8edde2c375ed6c49a&

as you can see they are not the same. one is with www and one is without. you need to pick one and use it both on your redirect and for the forum.

also your redirect to the forum is not https.

showngo

Ill give it a try.

I made sure it was as the old setting.php was as that worked flawlessly but no go there.      Ill try that one.

Sir Osis of Liver

You can force https redirect in cpanel if you have a valid SSL certificate installed.  IIRC there's also a setting for either/or www, not sure where it is and don't have time to look right now.  Or you can do it in .htaccess.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

showngo

Quote from: Sir Osis of Liver on January 20, 2021, 11:51:55 AM
You can force https redirect in cpanel if you have a valid SSL certificate installed.  IIRC there's also a setting for either/or www, not sure where it is and don't have time to look right now.  Or you can do it in .htaccess.


This is the funny thing,  I have looked and searched on this new install    I do not see a .htaccess file anywhere.    I have it on the old server and this one was a clean install from the SMF zip

Sir Osis of Liver

Some servers create a cpanel .htaccess, some don't.  Some mods create .htaccess, or add code to an existing file.  You can make your own .htaccess, long as you get the code right.  SMF install package does not create .htaccess, it's not needed in plain vanilla install.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

showngo

Quote from: Sir Osis of Liver on January 20, 2021, 09:09:27 PM
Some servers create a cpanel .htaccess, some don't.  Some mods create .htaccess, or add code to an existing file.  You can make your own .htaccess, long as you get the code right.  SMF install package does not create .htaccess, it's not needed in plain vanilla install.

So it is no problem copying that from the old server and putting it in the same location on the new one?

Advertisement: