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
  • Author
    Posts
  • #67831

    Craig Bennett
    Lifetime Member
    Post count: 44

    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

    #67832

    Craig Bennett
    Lifetime Member
    Post count: 44
    This reply has been marked as private.
    #67835

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    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

    #67902

    Craig Bennett
    Lifetime Member
    Post count: 44
    This reply has been marked as private.
    #68100

    Craig Bennett
    Lifetime Member
    Post count: 44

    Hi Stiofan, did you manage to have a look into the problem I’m having?

    #68250

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    I can’t connect with those FTP details, not getting any errors, it’s just timing out.

    Stiofan

    #68261

    Craig Bennett
    Lifetime Member
    Post count: 44

    Sorry 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

    #68381

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #68457

    Craig Bennett
    Lifetime Member
    Post count: 44
    This reply has been marked as private.
    #68543

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #69138

    Craig Bennett
    Lifetime Member
    Post count: 44

    Hi 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

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount