Social Login Redirects To Nowhere

The social login I implemented into my Wordpress site had worked perfectly fine until recently. Now, when I sign in or register with the social login, instead of being redirected to the webpage I had specified, it redirects right back to the login page with these parameters: http://**********.com/login?oa_social_login_source=login
Also, instead of even showing the login page, it just shows the WP_User Object that had been passed to the page via the Social Login's redirect. To make it clear what I mean, this is an example, when I would try to sign in with my Twitter account:

WP_User Object ( [data] => stdClass Object ( [ID] => 85 [user_login] => Koolstr [user_pass] => *************** [user_nicename] => koolstr [user_email] => cab239254606d96714a06b21dd63abc4@example.com [user_url] => http://twitter.com/Koolstr [user_registered] => 2016-05-24 23:16:07 [user_activation_key] => [user_status] => 0 [display_name] => Koolstr ) [ID] => 85 [caps] => Array ( [subscriber] => 1 ) [cap_key] => wp_hd2vj7fv5a_capabilities [roles] => Array ( [0] => subscriber ) [allcaps] => Array ( [read] => 1 [level_0] => 1 [subscriber] => 1 ) [filter] => ) stdClass Object ( [identity_token] => ********************** [date_creation] => Mon, 13 Jul 2015 03:03:15 +0200 [date_last_update] => Wed, 25 May 2016 01:21:31 +0200 [provider] => twitter [provider_identity_uid] => ******************* [source] => stdClass Object ( [name] => Twitter [key] => twitter [access_token] => stdClass Object ( [key] => ************************ [secret] => **************** ) ) [id] => http://twitter.com/Koolstr [displayName] => Koolstr [name] => stdClass Object ( [formatted] => Koolstr ) [preferredUsername] => Koolstr [profileCreated] => 07/16/2008 [profileUrl] => http://twitter.com/Koolstr [thumbnailUrl] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto_bigger.jpg [pictureUrl] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto.jpg [utcOffset] => -4:00 [currentLocation] => NY [aboutMe] =>*************** [urls] => Array ( [0] => stdClass Object ( [value] => http://t.co/gadw5eqg5m [type] => other ) [1] => stdClass Object ( [value] => http://twitter.com/Koolstr [type] => profile ) ) [accounts] => Array ( [0] => stdClass Object ( [domain] => twitter.com [userid] => 15449375 [username] => Koolstr ) ) [photos] => Array ( [0] => stdClass Object ( [value] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto_mini.jpg [size] => 2:XS ) [1] => stdClass Object ( [value] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto_normal.jpg [size] => 3:S ) [2] => stdClass Object ( [value] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto_bigger.jpg [size] => 4:M ) [3] => stdClass Object ( [value] => https://pbs.twimg.com/profile_images/486669757/twitterProfilePhoto.jpg [size] => 5:L ) ) [browser] => stdClass Object ( [agent] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 [type] => Chrome [version] => stdClass Object ( [major] => 50 [full] => 50.0.2661.102 ) [platform] => stdClass Object ( [name] => Windows [type] => Desktop ) ) )

That is all the webpage would show. I checked and the user did in fact get successfully registered as a user on my Wordpress site (if he was signing in for the first time), but the user isn't signed in. Does anybody have any idea what could possibly be doing this? I need to restore the social login functionality, as it is essential to our services. I feel like the callback url may not be appropriately set, yet I don't see a way to set it...

Thanks for any help.

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited May 2016 Answer ✓
    Hi Jeffrey,

    our Social Login plugin does not include any debugging and/or outputting of code on the screen. So the code that you see when logging in is probably displayed by a manually added line or another plugin. It's probably also this output that interrupts the login process.

    Could you please look at the file communication.php of the plugin and search for something like print_r, die, var_dump or echo ? The standard plugin does not include this code, so it would be a manually added line.

Answers

  • I looked in that file and did not find any output statements. You were correct, another plugin was causing it. I went through them all disabling one at a time until I found the culprit. Turned out to be a custom plugin I made where I forgot to remove the debug statements. I got rid of them and now the social login is working again. Thank you for your assistance.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.