Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-fbconnect error message


  • jfcarter
    Participant

    @jfcarter

    I just installed the new bp-fbconnect plugin. Right now, users can log in, but they get an error message like this one:

    Warning: fopen(http://api.new.facebook.com/restserver.php) [function.fopen]: failed to open stream: Operation not permitted in mysite/wp-content/plugins/bp-fbconnect/includes/wp-facebookconnect/facebook-client/facebookapi_php5_restlib.php on line 1939

    When I add the API and secret keys in the admin panel, I get the same error. Again, users can login, but I don’t want to keep getting this error.

    I really need help with this.

Viewing 6 replies - 1 through 6 (of 6 total)

  • Magi182
    Participant

    @magi182

    Are you running any other facebook plugins concurrently? If you are, you\’ll have either pick one, or fix the plugins so you instantiate only one copy of the facebook connect, and work both plugins through that.


    jfcarter
    Participant

    @jfcarter

    No, I’m only using one FB plugin. Really frustrating!

    Generically, check your php.ini to see if ‘allow_url_fopen’ is enabled. Then see if safe_mode is enabled. Then see if open_basedir enabled.


    jfcarter
    Participant

    @jfcarter

    @DJPaul,

    Thanks for your help; you were right.

    Safe_mode is enabled. For allow_url_fopen and open_basedir, I have to tell my webhost the following:

    1) path or filename for the script that needs the connection – do you know which script this is?

    2) ip address and port that it needs to connect to – I have no idea what this is–Facebook?

    Much obliged.

    Are you able to disable safe_mode via a htaccess file or similar?

    Whilst we might be able to narrow down the specifics for 1), 2) could prove a problem – because if facebook has load-balancing or multiple servers (i.e. for different countries), the IP address might be different for each user.

    I think a common solution is to use CURL libraries instead of fopen() (and friends) which doesn’t trigger this problem. Of course your PHP would need to have been compiled with CURL support. Problem is bp-facebook is a mod of an existing wp plugin that provides facebook authentication, and it’d be that author who would be best to make the changes.

    This isn’t an area where i’ve ever had to investigate in the past so I can’t suggest what code changes would be needed.q


    jfcarter
    Participant

    @jfcarter

    Good point abt the IP address. I’ll put in the request to my host and see what happens.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bp-fbconnect error message’ is closed to new replies.
Skip to toolbar