gd_login Problem
This topic contains 10 replies, has 2 voices, and was last updated by Craig Bennett 9 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 11, 2016 at 2:58 pm #67831
Hi,
I’ve just come across a problem logging in to my site using the login & registration page.
If I go to the gd-login page and try to login nothing happens I’m just redirected back to the homepage, but not logged in. It works fine if I log in via wp-login or the gd loginbox widget.
Funnily, I’ve a staging version of the site that is identical and doesn’t have the issue.
I’ve done all the usual checks, disabling all my plugins, etc and the problem remains.
Could you have a look into it for me,
Cheers
January 11, 2016 at 2:59 pm #67832This reply has been marked as private.January 11, 2016 at 3:22 pm #67835Hello,
Can you please provide FTP and also let us know the hosting company u are with, we had something similar with another customer earlier today.
Thanks,
Stiofan
January 11, 2016 at 7:48 pm #67902This reply has been marked as private.January 13, 2016 at 10:01 am #68100Hi Stiofan, did you manage to have a look into the problem I’m having?
January 13, 2016 at 7:40 pm #68250Hello,
I can’t connect with those FTP details, not getting any errors, it’s just timing out.
Stiofan
January 13, 2016 at 8:08 pm #68261Sorry about that,
I’d disabled password authentication in my ssh config file.
I’ve re-enabled it so you should be able to connect now.
Cheers, Craig
January 14, 2016 at 3:44 pm #68381Hi Craig,
I have tried to narrow it down and it seem to be that if $_POST[‘redirect_to’] is set then it redirects too early, however i can’t replicate this on any of my test sites, i tried to dig into the core WP files on your server but it seems i dont have the ability to change them, if you can give me access to those i will try and debug it again, otherwise i could give you a hackish quick fix but it wont help in the long run when u update.
Stiofan
January 14, 2016 at 8:33 pm #68457This reply has been marked as private.January 15, 2016 at 2:04 pm #68543Hi Craig,
Here is what i have learned from testing.
Firstly everything seems to be working in our code as it should, the main login page has a redirect_to option which should redirect you to the page you came from or a specified page, the login widget sets this value to the login page as default and does not have a redirect value that changes.
The actual signon in both cases works, the user object is created with no errors, the widget login then redirects back to the login page which you cant be on if you are logged in so you get redirected home, where as the login page redirects you to where you came from, it seems to be this second visit to the login page that is setting the correct login for the widget, from my tests the PHP session ID is being changed when submitting a login and there for instantly signs you out.
So basically the session ID changing is causing the problem and the cookie is not set right. This has to be a server issue as far as i can tell, i would ask your server admin whats going on with the session id changing, and i would play with the php.ini session settings, when i looked at them, it seemed to reference memcach in the save handler, which i guess could be related to the problem.
Keep us updated on how you get on and what the fix was in case it ever happens to anyone else.
Thanks,
Stiofan
January 17, 2016 at 11:21 pm #69138Hi Stiofan,
Thanks for trying and debugging.
I’ve just built a new server on digital ocean and still have the same issue, couldn’t find anything wrong with my server configuration on either Linode or digital ocean. I’m completely stumped as to what could be causing it.
As a solution, I’ve decided to build a login modal that uses the WordPress login form and so far this is working great, I’ve still to add register, password recovery and redirects to it but will get there in the end.
Cheers, Craig
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket