Web based family history software

This Help forum is for issues relates to the latest release (1.6.x). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

Question Cant log in - Loops back to log in page

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #1 by clivejo
Today I tried to log into my webtrees account , but it keeps looping back to the login page, any idea whats wrong?

BTW I have https setup on the domain.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
8 years 8 months ago #2 by fisharebest
Replied by fisharebest on topic Cant log in - Loops back to log in page
Posting the URL so we can see the exact re-direction would help, but in the absense of specifics, I can only give a general answer.

The information provided by your server to webtrees is probably not quite right. Perhaps the server is using HTTPS, but is telling webtrees that it is using HTTP - so that webtrees then tries to redirect from HTTP to HTTPS.

If you have access to your database (via PhpMyAdmin, etc.), it may help to delete the entries for "SERVER_URL" and "LOGIN_URL" from the wt_site_setting table.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #3 by clivejo
Replied by clivejo on topic Cant log in - Loops back to log in page
When I type in a correct username and password it just redirects back to the index.php page, but still as a guest.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
8 years 8 months ago #4 by fisharebest
Replied by fisharebest on topic Cant log in - Loops back to log in page
As I said, the information provided by your server to webtrees is probably not right.

As a result, the session (login) cookie is being set for the wrong domain.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #5 by Jackie
Replied by Jackie on topic Cant log in - Loops back to log in page
Hello Clivejo,

As Greg asked in post #2:

1- What is the URL of your website?
2- Do you have access to the MySQL database using phpMyAdmin?
3- If yes, did you remove the row LOGIN_URL in the webtrees table named wt_site_setting ?

Please Log in or Create an account to join the conversation.

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #6 by clivejo
Replied by clivejo on topic Cant log in - Loops back to log in page
Yes I deleted the two settings via phpMyAdmin. The site now does not use the https.

johnston-family.org.uk

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #7 by Jackie
Replied by Jackie on topic Cant log in - Loops back to log in page
Hi clivejo,

Do you still use a custom module for login?

Reference : www.webtrees.net/index.php/fr/forum/4-cu...ticator-module#50577

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #8 by Jackie
Replied by Jackie on topic Cant log in - Loops back to log in page

clivejo wrote: Yes I deleted the two settings via phpMyAdmin. The site now does not use the https.

johnston-family.org.uk


You can now log in. Now, perhaps ask your webhost about using https ?

Please Log in or Create an account to join the conversation.

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #9 by clivejo
Replied by clivejo on topic Cant log in - Loops back to log in page
No, the custom module didnt work and I didnt install it on my main site.

No, I still cant log on. https is still available but the site has defaulted back to http

Please Log in or Create an account to join the conversation.

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #10 by clivejo
Replied by clivejo on topic Cant log in - Loops back to log in page
Ok today I deleted all files from the root folder and only copied the contents of webtrees-1.6.2.zip to the site. I then copied my data folder. I tried to log in but couldnt.

I have also copied my custom theme over and the site seems to be displaying correctly, however I am not able to access the admin area. Any ideas?

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
8 years 8 months ago #11 by fisharebest
Replied by fisharebest on topic Cant log in - Loops back to log in page
> I tried to log in but couldnt.

It might help if we could elaborate on "couldn't".

If I was investigating this on my own server, the first thing I would look at is the HTTP headers (tip: use the firebug plugin for firefox). Perhaps compare them witht the headers you see when you log in to the demo server.

> however I am not able to access the admin area

You said you couldn't log in. I wouldn't expect you to be able to access the admin area without logging in.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • clivejo
  • Topic Author
  • Visitor
  • Visitor
8 years 8 months ago #12 by clivejo
Replied by clivejo on topic Cant log in - Loops back to log in page
OK it appears to be a compatibility issue with PHP 5.7 which I was testing. I have went back to 5.6 and can log in again.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}