WordPress.org

Ready to get started?Download WordPress

Forums

Social Connect
[resolved] Twitter Login don't work (14 posts)

  1. romainlp
    Member
    Posted 1 year ago #

    Hi,

    Just installed Social Connect, the Facebook login work fine, but when i authorize the Twitter applications, tht pop-up show me a 404 error

    Fatal error: Uncaught exception 'EpiOAuthException' with message '{"errors":[{"message":"Sorry, that page does not exist","code":34}]}

    Anyone have the same problem ?

    Thanks

    http://wordpress.org/extend/plugins/social-connect/

  2. jk000jk
    Member
    Posted 1 year ago #

    I've the same issue, I think is because twitter changed its api, anyone knows a fix?

  3. zackcello
    Member
    Posted 1 year ago #

    I was having a similar issue yesterday - even this morning. And NOW - it magically works. Have you tried your Twitter login again recently? I'm curious if they simply fixed something that would fix it for all of us.

  4. zackcello
    Member
    Posted 1 year ago #

    Wups. I spoke too soon. NOW I can actually see the twitter app login page, but when I go to login, instead of being redirected, I get that exact same message you got:
    Fatal error: Uncaught exception 'EpiOAuthException' with message '{"errors":[{"message":"Sorry, that page does not exist","code":34}]}' in /home/www/simplythreetrio.com/wp-content/plugins/thenbrent-social-connect-9f825ec/twitter/EpiOAuth.php:251 Stack trace: #0 /home/www/simplythreetrio.com/wp-content/plugins/thenbrent-social-connect-9f825ec/twitter/EpiTwitter.php(100): EpiOAuthException::raise('{"errors":[{"me...', 404) #1 /home/www/simplythreetrio.com/wp-content/plugins/thenbrent-social-connect-9f825ec/twitter/callback.php(17): EpiTwitterJson->__get('name') #2 {main} thrown in /home/www/simplythreetrio.com/wp-content/plugins/thenbrent-social-connect-9f825ec/twitter/EpiOAuth.php on line 251

    Maybe they are working on it as we speak? Cuz I don't think I ever actually got the initial Twitter login page...Progress?... Fingers crossed...

  5. zackcello
    Member
    Posted 1 year ago #

    Hey switch to WordPress Social Login. It works, even Twitter, if you follow the directions to update the Twitter app settings. And it works perfectly with Theme My Login.

  6. beginr
    Member
    Posted 1 year ago #

    @zackcello thank you for the tip. WordPress Social Login works perfectly!

  7. zackcello
    Member
    Posted 1 year ago #

    My pleasure! Actually, problems developed for me with Social Login, too. And I now use Janrain , free version. http://wordpress.org/extend/plugins/rpx/

    Maybe your Social Login will be flawless, but in case you see problems later, you know what to do! :)

  8. raptusyu
    Member
    Posted 1 year ago #

    Hi there!

    I've had the same problems as mentioned above: facebook works, twitter doesn't. Here are the steps I did to fix the issue. Note that this is not a perfect solution, however I wanted to keep the social-connect plugin.

    First, note that the URLs in the social-connect (SC) are a bit old. Once you register an app, the dev.twitter.com will list the https://api.twitter.com/oauth/, where the SC has http://twitter.com/oauth/ in its EpiTwitter.php, so this will most probably change. For now however, it will work.

    Second, we can do a bit of tracing in the SC callback.php (plugins/social-connect/twitter/callback.php). In my case, I've narrowed the problem between the

    $user=$twitter_api->get_accountVerify_credentials()

    and the

    $signature = social_connect_generate_signature($twitter_id)

    If we put a

    print_r($user); die();

    we will see that Twitter does its job. The problem most probably is in the function call of $user->name and $user->screen_name, since they produce the errors. However, the $user object already holds everything we need, if we do a

    $user_str = serialize($user);

    and then

    preg_match("/user_id=([0-9]*)/", $user_str, $match_id);
    $twitter_id=$match_id[1];
    preg_match("/screen_name=([a-zA-Z0-9_]{1,15}&?)/", $user_str, $match_user);
    $screen_name=$match_user[1];

    and leave everything else as is, it should work.

  9. FATIMA124
    Member
    Posted 1 year ago #

    THANKS TO raptusyu I APPLY YOUR SOLUTION IT WORKS LIKE CHARM.
    I REMOVE THE LINES

    $name = $user->name;
    $screen_name = $user->screen_name;
    $twitter_id = $user->id;

    AND INSERT

    $user_str = serialize($user);
    preg_match("/user_id=([0-9]*)/", $user_str, $match_id);
    $twitter_id=$match_id[1];
    preg_match("/screen_name=([a-zA-Z0-9_]{1,15}&?)/", $user_str, $match_user);
    $screen_name=$match_user[1];

    ON ITS PLACE THEN TRY IT WOW IT'S WORKING

  10. ebarcena
    Member
    Posted 1 year ago #

    Hey guys I tried raptusyu's solution since they seem to work for FATIMA124 but it didn't work for me. I get the followgin error after editing the callback.php fiel:

    Fatal error: Call to undefined function phprequire_once() in /home/mydomain/public_html/wp-content/plugins/social-connect/twitter/callback.php on line 1

    any suggestions? thanks

  11. raptusyu
    Member
    Posted 1 year ago #

    phprequire_once()

    @FATIMA124 Glad it worked :)

    @ebarcena You need a space between <?php and require_once()

  12. ebarcena
    Member
    Posted 1 year ago #

    Thanks a lot raptusyu! That did the trick ;)

  13. mompracem
    Member
    Posted 1 year ago #

    this github pull fixes it

    https://github.com/lesfar/social-connect/commit/95b545c6f0fbe6f335da1b00b2e1b4e336be8ce9

    however the plugin author does not seem very active...

  14. justbishop
    Member
    Posted 10 months ago #

    None of these fixes are working for me. I'm not very familiar with github. I c/p'd the code in each of the files into the SC existing files, replacing the original code in each. There wasn't a pre-existing folder/file for the last one, so I created all of that from scratch and uploaded via FTP. Was I supposed to do something else?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic