WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar Login
AJAX login errors (38 posts)

  1. Quentin
    Member
    Posted 1 year ago #

    When logging in, the widget refreshes with an error that only says "undefined". The login does succeed, refreshing the page or clicking on any link shows the user as logged in, but the widget itself does not redirect appropriately on a successful login.

    WP 3.5.1 Plugin 2.5.0

    http://wordpress.org/extend/plugins/sidebar-login/

  2. dfumagalli
    Member
    Posted 1 year ago #

    I get the same issue.

    A red "Undefined" box appears at the top of the widget and the widget looks like the login failed.

  3. zircle
    Member
    Posted 1 year ago #

    Under "Login Redirect Url", is that field blank? If it is, try putting in your homepage, if not.. then I'm not sure what your problem is.

  4. dhoffmann
    Member
    Posted 1 year ago #

    same here. all fields filled out. after upate no login and mesage "undefined".

  5. SARed
    Member
    Posted 1 year ago #

    I have same issue For Chrome, IE10 and Safari, but Firefox works fine

    I tried entering home page in "Login Redirect Url" but no change

    I've reverted back to version 2.4 from a backup until this gets resolved

  6. mortydot
    Member
    Posted 1 year ago #

    Hi,

    We have the same problem. Strange is that we use a multisite install and one subsite it works, other it does not.

    Subsite A (no login redirect page in option field) - works
    Subsite B (with or without login option field configured) - undefined

    Looking foreward to a fix,
    Kinds regards,
    Sven

  7. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    Are you guys using anything like force SSL login?

    What about the browser error console? Anything about cross-domain requests?

  8. mortydot
    Member
    Posted 1 year ago #

    Hi mike,

    No we are not using SSL, dont know how you want to test it. But you can find the problem site here and view the error yourself:

    http://www.dorknoper.nl

    Filling in any random data will result in the error.
    Kinds regards,
    Sven

  9. Quentin
    Member
    Posted 1 year ago #

    No SSL
    Console actually returns a successful response, and refreshing the page results in the user being logged in appropriately. The AJAX part itself just doesn't work at all.

  10. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    Could you check turning off other plugins, in case something is hijacking the ajax login event.

  11. mortydot
    Member
    Posted 1 year ago #

    Hi Mike,

    Problem is that this is a multisite installation.
    A other site (http://www.sv-cvl.nl works fine and is the same installation.

    Here after the error and a page request, the user is NOT loged in (in comparison with Quentin)

    Kinds regards,
    Sven

  12. SARed
    Member
    Posted 1 year ago #

    Any update on a fix for this problem yet?

  13. mortydot
    Member
    Posted 1 year ago #

    Freom our side, the problem is non-continues (not always there) we turned of wp-supercache to test if there is a caching problem. Problem still there

  14. mortydot
    Member
    Posted 1 year ago #

    @mike, any update about this bug? Its quit useless now.

    Facts so far: problem is not always there (sometimes it is, sometime it is not). WP-supercache has no impact on the error. In a multisite installation one site has the error, while the other works like a charm.

    Please a update about the the situation.
    Kinds regards,
    Sven

  15. mortydot
    Member
    Posted 1 year ago #

    Hi, we have a update, we can confirm that the problem in our situation is caused by wp-supercache plugin. http://ocaoimh.ie/wp-super-cache/

    Quit a much used caching module for wordpress.
    Any sign from the plugin developer by now?

  16. SARed
    Member
    Posted 1 year ago #

    Hi

    I don't use Super-cache and get the same error

    When I roll back to Sidebar login 2.4, Everything works perfectly, So in my case the problem is with the update version 2.5

  17. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    No doubt some poorly coded plugin is breaking the JSON response by adding its own code - won't be the first time I've seen this.

    Added a workaround in 2.5.2 - basically wrapping the ajax response in some <!--COMMENTS--> and parsing that in the JS code. Should work around this issue.

    @mortydot, leaving bad reviews as 'hostage' to get issues fixed is really shitty. Just sayin.

  18. SARed
    Member
    Posted 1 year ago #

    Thanks Mike

    I can confirm that version 2.5.2 works perfectly on my site

    I have tested with Google Chrome, IE 10, Firefox 19.0.2 and Safari 5.1.7

    Great to have this Wonderful plugin working again :)

  19. scruffy1
    Member
    Posted 1 year ago #

    latest does NOT work on our site

  20. scruffy1
    Member
    Posted 1 year ago #

    just to let you know we are using safari 5.0.6 and firefox 16.0.2 as we are still on OSX 10.5.8

  21. mortydot
    Member
    Posted 1 year ago #

    @mike, problem is still there for us. We see that it can give trouble when using wpsupercache. Clearing old cache after the update does not work. Also one site it works, other it does not.

    Suggestion; force a full redirect to the login screen with the username and password as post data when undefined error appears? Its a work around, but better than the undefined message.

    Note about the review: its a 4 week old bug. We feel forced to inform other users about the state of the plug-in. Also the reason with the post topic so people can read the reason of the review and the suggestion when we change it.

    Please don't feel assaulted. See it more like a duty to the WP community to share experience of the current state of a plug-in (what is broken for us now). When you have the plug-in working (let me know how we can assist in any way), than we are also willing to make a small donation.

  22. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    @mortydot - when you say site, do you mean a site on your multisite install, or something separate? TBH I've not really checked multisite as I never use it. And is it mutlsite + caching, or multisite without?

    And users can see this topic if they get the issue (not everyone has the issue remember).

    @scruffy...

  23. SARed
    Member
    Posted 1 year ago #

    For the record I use W3 Total Cache and have no problems now after update

    @mortydot Perhaps you should try it instead of Super cache? and see if problem persists

  24. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    +1. You never know, SuperCache might be interfering with AJAX posts. I know W3 Total Cache ignores AJAX events.

  25. mortydot
    Member
    Posted 1 year ago #

    @mike @sared, yes multisite. Point is that one sub-site works, other not. And the problem sub-site sometimes has the problem and sometimes not.

    Perhaps a idea to force a full page redirect to the wp-login.php with the login data included when the 'undefined' shows up? I think its a good fallback solution that is more user friendly than a undefined message.

    WP Super cache should also supports Ajax, but if we can find a bug there, I think we should locate it (just the Ajax response that confirms its that plugin), and report it to them. I think they would appreciate it :-)

    Please let me know how you think about the fall-back solution above. Kinds regards, and keep up the good work! Sven

  26. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    mortydot - tried multisite locally with super cache and faced no issues here. Are you certain there are no other plugins *on that site* breaking this? It only takes 1 bit of code, or a theme, to hook into ajax and prevent the response being returned. Otherwise I'll need access to debug this so email me.

  27. mortydot
    Member
    Posted 1 year ago #

    You have been contacted with a possible fix. Please keep us updated, thanks in advantage.

  28. Okoth1
    Member
    Posted 1 year ago #

    Same problem here. Please don't focus too hard on on any cache plugin, because I'm using none.

    I haven't added any plugins after I updated to 2.5.2 and there is where the problem started.

  29. Okoth1
    Member
    Posted 1 year ago #

    Btw, the refresh doesn't work. When I press F5 it show OK on the page.

  30. Charles Fulton
    Member
    Posted 1 year ago #

    Just to add a data point we have multiple multisite instances with 2.5.2 installed, in both WP 3.5.1 and WP 3.6 beta 2, and we haven't seen this problem. Based on problems I've seen with other WP plugins I suspect there's a plugin throwing javascript errors which screws up the AJAX functionality of this plugin. It wouldn't be the first time nor the last.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.