WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
[resolved] Login with Ajax Broken (24 posts)

  1. slightlydazed
    Member
    Posted 1 year ago #

    Dear All,

    I've just updated to version 3.1 of Login with Ajax, and noticed that there appears to be a bug. Previous version worked absolutely fine.

    I use the sidebar widget to log in and refresh the current page after login. All I get now, instead of the refresh, is a message in the browser saying:

    {"result":true,"message":"Login Successful, redirecting...","action":"login"}

    Can anyone advise as to this error?

    Occurs in all browsers I've tried (IE10, Firefox 20, Chrome). I am using the themeforest infocus theme, if relevant.

    Thanks for any help....

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. slightlydazed
    Member
    Posted 1 year ago #

    Dear All,

    In addition to the above.... I tried the solution mentioned on another post of deactivating and reactivating the plugin, which for me did not work.

    I've removed the widgets from my sidebars, deleted the plugin files and then reinstalled. This does seem to work, but if I change any of the settings of the plugin or in the widget, it will break.

    "Breaking" in this instance means that any pages with the LwA widget in the sidebar will refuse to load (blank white screen results).

    When I leave settings alone and the plugin "works", I've noticed that refresh times for the current page are very long compared to the last version.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Do you have a sample link for us to see?

    I don't think the page load times would have anything to do with LWA though... does the speed improve if you disable the plugin?

  4. slightlydazed
    Member
    Posted 1 year ago #

    Hi Marcus,

    Thanks for the response. My page is http://www.chasingrays.co.uk - I've left things in the "working" state for now, but if you'd like me to "break" things for further testing, please let me know...

    Look on the blog page for testign - there's no sidebar on the main page.

    Sorry for the confused explanation. The page load speed is fine. It's when I enter my login credentials and LwA requests a page refresh, this seems to take a lot longer than previous versions of LwA (I am perhaps being a bit too picky here - I'm not so worried about this last issue unless it's of any interest to you).

    Thanks,
    SD.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I tried registering account 'testing' for testing, but never got an email. I'd need to see it 'broken' to understand the problem really..

    Also, any examples on what exactly you change to break the plugin would help too.

    One thing you may want to try is switching themes temporarily. I have a feeling it's a theme JS issue.

  6. hetgelaat
    Member
    Posted 1 year ago #

    I was having the same problem and I have solved it. I had one login-box on my page which I duplicated (cloned) (with jQuery) to another position. That way I got issues like the above. When I moved the login-box (instead of cloning it) I didn't have any issues. My guess is it could have something to do with duplicate ID's in the HTML...?

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    actually, 3.1 should allow multiple login widgets on the same page (will be putting up a demo soon)

    could it be because you have a custom widget template? If so then that may be the problem.

  8. dennishall
    Member
    Posted 1 year ago #

    Hi:

    I like the new redirects, however, I use your shortcode and it is displaying the following PHP errors:

    Warning: Missing argument 2 for shortcode_atts(), called in /.../wp-content/plugins/login-with-ajax/login-with-ajax.php on line 390 and defined in /.../wp-includes/shortcodes.php on line 294

    Warning: Invalid argument supplied for foreach() in /.../wp-includes/shortcodes.php on line 297

    An update to correct these would be great.

    Best Regards.

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I've just updated the dev version to correct this, and also the broken JS problem (well, at least it degrades and doesn't go blank)

    3.1.0.1 - http://downloads.wordpress.org/plugin/login-with-ajax.zip

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I'll be updating the plugin again shortly to a 'stable', but if you have time to test and confirm, that'd be appreciated!

  11. slightlydazed
    Member
    Posted 1 year ago #

    Hello Marcus,

    Looks like this problem is solved now..... I will try your link above to the corrected version ASAP and let you know what happens, though.

    I have authorised your account request to my site if you want to have a further poke around. I'm not sure why you didn't get your email; captured as spam somewhere perhaps?

    To "break" the plugin just meant changing *any* setting - either through "dashboard >> settings >> login with Ajax" or in the LwA widget - and saving. This would result in blank screens on any subsequent page that used the sidebar widget in any browser I tried.

    Again, I'll see what happens with your corrected version and get back to you. If it doesn't work, I'll leave the site in "broken" state and send another reply on this post.

    Thanks everyone for your comments on this thread - your help is very much appreciated.

  12. tomasSK
    Member
    Posted 1 year ago #

    I can confirm this error. After updating to 3.1 version on 2 different blogs I couldn't log in. All I get is {"result":true,"message":"Login Successful, redirecting...","action":"login"}

  13. tomasSK
    Member
    Posted 1 year ago #

    sorry, I have just noticed a newer version 3.1.0.1 - this one works, many thanks.

  14. tomasSK
    Member
    Posted 1 year ago #

    A Global Login Redirect doesn't work any more. I downloaded new files and now trying to set the plugin how it was before. Doesn't matter what I put in the Global Login Redirect field, it always logs me in /wp-admin.

  15. slightlydazed
    Member
    Posted 1 year ago #

    Hello Marcus,

    Just a further note that I've tested version 3.1.0.1 and it seems to work fine. I can save changed settings and everything seems to be robust again.

    Thanks very much for the help and fix.

    SD.

  16. slightlydazed
    Member
    Posted 1 year ago #

    I'm marking this up as resolved - if anyone objects, let me know.

    Cheers,
    SD.

  17. dennishall
    Member
    Posted 1 year ago #

    Hi:

    I have not received any update since the 3.1.1 and still have the PHP errors.

    Will this be fixed?

  18. dennishall
    Member
    Posted 1 year ago #

    Correction:
    I have not received an update since 3.1 and still get the PHP errors.

    You can see this at:
    http://www.kassius.ca/login-register/

  19. slightlydazed
    Member
    Posted 1 year ago #

    Sorry, I've had to change this post back to unresolved.

    I've done a bit more testing and am able to replicate the blank white screen issue.

    When I set the widget template to default, I always get a blank white screen. The html source code for this page reads:

    <input type="hidden" id="sabre_js_payload" name="sabre_js_payload" value="20" />

    (and that is all the source I get).

    I've tested Sabre out a bit, and can get rid of the blank white page by unchecking the stealth option (silent control on/off) in the sabre plugin settings.

    I've also noticed - as Marcus notes above - that registration using the widget does NOT send an email to the user notifying them of their selected password and username, but does send an email when the admin confirms the account (through sabre).

    Is anyone else having these problems also using the Sabre plug-in?

    Marcus - do you recommend any plugins that do the same job as Sabre that you know to work well with LwA? In worst case, would you mind posting a link back to version 3.0.4.1 of LwA?

  20. SPM
    Member
    Posted 1 year ago #

    After the latest update, I'm getting the same warnings.

    Warning: Missing argument 2 for shortcode_atts(), called in /home/rayyaninst/rayyaninstitute.com/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 390 and defined in /home/rayyaninst/rayyaninstitute.com/wp-includes/shortcodes.php on line 294

    Warning: Invalid argument supplied for foreach() in /home/rayyaninst/rayyaninstitute.com/wp-includes/shortcodes.php on line 297

    See here

  21. jeff_beck01
    Member
    Posted 1 year ago #

    I too am now having redirect issues with the new update(s), first 3.1 and same with 3.1.0.1. When I login it gives the "Login Successful, redirecting" message, but the redirect never happens. I have a global redirect set up, and tried setting up role-based redirects (all to the same URL though) as well.

    I reverted back to Version 3.0.4.1 and it works again.

  22. slightlydazed
    Member
    Posted 1 year ago #

    OK, I've reverted to version 3.0.4.1 to see if this allows user registration emails to be sent.

    In short, it does (and works properly with Sabre). Is there a potential problem, then, in the ajax registration method? Using ajax registration in v 3.1.0.1 (and 3.1) will register the user but the confirmation email is not sent.

    This is a real shame as the ajax registration method is a really excellent idea.

    Anyone else with similar issues?

    I will not pursue this issue here, but have posted a separate thread.

    Cheers,
    SD.

  23. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    v3.1.1 should fix the original problem.

    It's pretty hard to help many people with different problems on one thread, if you don't have the exact same problem (or have a new problem) then post a new thread please.

    If you have a link to the form with the problem that'd help too.

  24. slightlydazed
    Member
    Posted 1 year ago #

    The original problem on this post appears to have been resolved with version 3.1.1 of LwA so I'm setting this one to resolved.

    Cheers,
    SD

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic