WordPress.org

Ready to get started?Download WordPress

Forums

AddThis Social Sign In
[resolved] Problem with sign in (7 posts)

  1. alexhan46
    Member
    Posted 1 year ago #

    I've setup for Facebook, Twitter, and Google social sign in. I believe I follow all the instruction correctly, but all attempts to sign in with any of three account either redirect to a blank page with error code { 'result': false, 'error': 'ERROR: Please enter a username.' } or give Javascript error

    Uncaught TypeError: Cannot call method 'submit' of null
    addthis_config.login.callback
    (anonymous function)

    depends on whether I turned on AJAX Registration or not.

    http://wordpress.org/extend/plugins/addthis-social-sign-in/

  2. vipinss
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    Are you using any plugin for registration using ajax ? If so can you please specify here, so that we can reproduce the issue if any.

  3. alexhan46
    Member
    Posted 1 year ago #

    Yes, I'm using a plug-in called 'Login with AJAX' by netweblogic (http://msyk.es/blog/login-with-ajax/)

  4. vipinss
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    The issue happened because the form id is missing in the login form created by login-with-ajax plugin.

    If you can access the widget_out.php (plugins/login-with-ajax/widget/default/), replace the line 14 with the below line
    <form class="lwa-form" action="<?php echo esc_url($this->url_login); ?>" method="post" id="registerform">

    Also you need to edit the login-with-ajax.php (plugins/login-with-ajax/) to prevent unnecessary loading of login-with-ajax plugin.
    Replace the line 101 with below line
    if ( isset( $_REQUEST["login-with-ajax"] ) && ( !empty( $_REQUEST["user_login"] ) || !empty( $_REQUEST["log"] ) ) ) { //AJAX Request

    Please let me know if you find any difficulties.

  5. alexhan46
    Member
    Posted 1 year ago #

    It worked! There is another error but when I tried same steps with my other WordPress website, it worked, so i don't think that's caused by this plugin.

    Thank you very much!

  6. vipinss
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    If you like our plugin, please consider rating it.

  7. alexhan46
    Member
    Posted 1 year ago #

    Will do! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic