• Hi,

    I have the following issue. I have a login form where I the social login buttons are displayed via <?php echo do_shortcode(‘[wordpress_social_login]’); ?>. However, when visiting my website via mobile all social login buttons are working as they should. They are not working on desktop. By not working I mean that I can click on each single social button, but after that nothing is hapenning. The same issue I have on my comment form, where the social buttons are also displayed. Only on the WordPress registration page everything is working as it should (mobile and desktop).

    Any help would be greatly appreciated.

    Thanks.

    https://www.ads-software.com/plugins/wordpress-social-login/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hm – I may be experiencing the exact same issue. I haven’t been able to track down why they stopped working. I posted my own issue here but not sure if it went through, the bbpress thing looks like it wigged out when I tried. So maybe I can piggyback with you here and help solve this issue.

    I had G+, Twitter, and Facebook social logins completely working, then somewhere along the line they just stopped working. I disabled all plugins, checked for console errors that might be affecting this, but no such luck getting the proper href back into the social login buttons.

    Here’s what inspect element is showing up with:

    <a rel="nofollow" href="javascript:void(0);" title="Connect with Facebook" class="btn btn-lg btn-block btn-facebook" data-provider="Facebook"

    however, oddly enough when loaded on an iphone the buttons work just fine. I inspected element via mobile (using adobe edge inspect) and can see the appropriate href showing up in there – as seen below:

    <a rel="nofollow" href="https://mysite.com/wp-login.php?action=wordpress_social_authenticate&mode=login&provider=Facebook&redirect_to=http%3A%2F%2Fmysite.com%2F" title="Connect with Facebook" class="btn btn-lg btn-block btn-facebook" data-provider="Facebook"

    Anyone have any idea what might be causing this href javascript void(0) error? I’m out of ideas at this point and very confused as to why it would work fine on mobile but not when loaded on a desktop.

    My hunch says maybe I updated WordPress without thinking and perhaps the latest version is causing some sort of javascript error that’s only applying to desktop, perhaps via modernizr or something. I’m going to do some more testing tonight and will check back if I find anything.

    Hopefully one of the plugin developers can chime in and see if they’ve experienced any similar issues.

    Thread Starter lihas1987

    (@lihas1987)

    Hi corbinfraser,

    I am not sure if it is because of the href value. If you visit the standarf wordpress registration or login (wp-login.php) page, the social buttons are working fine on desktop as well as on mobile. Looking into the HTML code of the wp-login.php page, the href value is javascript:void(0);

    Did you retest it with a previous version of WordPress? My current WordPress version is 4.3.1. I am also supposiing that this issue is related to the current version of WordPress and has nothing to do with plugins.

    Hi Lihas1987

    I just wanted to let you know I was able to solve the issue over here – though I’m not 100% sure it’ll work for you.

    I tried downgrading down to 4.3.0 and didn’t have any such luck there. Hower, once I reinstalled WordPress Social Login (removed, reuploaded, reactivated) it began working again. I suspect a markup edit I placed in wsl.auth.widgets.php to allow bootstrap buttons to load was causing the login popup not to fire properly.

    I also read that if you have any other login type plugins that modify the wordpress login this may prevent it from working.

    Hope that helps!

    Thread Starter lihas1987

    (@lihas1987)

    Hi corbinfraser,

    thanks for the hint. If you remove, reupload and reactivate the WordPress Social plugin, does it have an impact on your social counts e.g. facebook like count?

    Thread Starter lihas1987

    (@lihas1987)

    Hi corbinfraser,

    I tried deactivating, reuploading and reactivating the plugin, but it did not fixed the bug. I finally looked into the file wsl.auth.widgets.php which is located in includes/widget and saw the following code which is the root cause

    if( $wsl_settings_use_popup == 1 && $auth_mode != ‘test’ )
    {
    $authenticate_url= “javascript:void(0);”;
    }

    In my WordPress Dashboard I had selected the option

    Authentication display : Popup

    So I changed it to “Page”, so that the if condition is not invoked. I do not mark this topic as closed as my solution is only a workaround, but not actually the solution to this problem. I hope the plugin developer fix it soon.

    Thanks again for sharing your thoughts.

    Lihas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Desktop Social Login issue’ is closed to new replies.