WordPress.org

Support

Support » Plugins and Hacks » Hacks » Facepress fp-oauth.php Error on Line 29

Facepress fp-oauth.php Error on Line 29

  • Whenever anyone tries to login using their facebook account I receive “Cannot use object of type WP_Error as array in fp-oauth.php on line 29″ I don’t know anything about PHP and I’ve been trying to change line 29 somehow to make it work, no success yet. Thank you for reading!

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 15 replies - 1 through 15 (of 21 total)
  • I know there is more info you need to solve I just don’t know what to give you guys

    Users receive the following error when trying to log into my site with their facebook accounts:

    “Cannot use object of type WP_Error as array in fp-oauth.php on line 29”

    I am using the most current version of WordPress 3.1.2 & Facepress Ver1.1

    I am using Theme 2010
    I deactivated all plugins issue still exists
    i am using mysql
    PHP 5.x
    IIS 7
    GoDaddy is the host

    The site is Capospizza2.com if you live in the cleveland area and help me solve the issue there is pizza in it for you! Thank you to anyone that reads this!

    What is wrong with the array on line 29, I feel like the answer is dangling there, in front of my facce. my noobness is preventing me from seeing it.

    Seems like wp_remote_get() is returning an error…

    can u please add this right after line 27:

    if ( is_wp_error($token) )
       echo $token->get_error_message();

    tell me what message do you get and then remove it 🙂

    Yes let you know immediately THANK YOU so much!

    SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    Fatal error: Cannot use object of type WP_Error as array in D:\Hosting\2091513\html\capospizza\wp-content\plugins\fp\fp-oauth.php on line 32

    I really can’t thank you enough for taking the time to do this…

    try replaceing line 27 with this:
    $token = wp_remote_get($url,array('sslverify'=>0));

    hope it works 😀

    Now I get:

    Fatal error: Cannot use object of type WP_Error as array in D:\Hosting\2091513\html\capospizza\wp-content\plugins\fp\fp-oauth.php on line 35

    Where should I insert`if ( is_wp_error($token) )
    echo $token->get_error_message();`

    Line 27:
    $token = wp_remote_get($url, array('sslverify' => false) );
    Line 34:
    $test = wp_remote_get('https://graph.facebook.com/me?access_token='.$t['access_token'], array('sslverify' => false) );

    try replacing the 2 lines above

    I copied and pasted in the code. It takes me back to the login page and shows a red error box above the Username field that says: Error: Facebook user not recognized.

    make sure to link your profile in wp-admin/profile.php page

    anytime i revisit the login page (whether or not i am logged into FB) it shows the red error field and say Error: Facebook user not recognized.

    login with ur username and passwd… go to your profile page, and click the login with facebook link 🙂

    if you can’t login, try cleaning your cache.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Facepress fp-oauth.php Error on Line 29’ is closed to new replies.
Skip to toolbar