Shade- / MyFacebook-Connect

A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
27 stars 24 forks source link

Facebook and Twitter Connect Not working after database n files restore #9

Closed zikriirfandi closed 11 years ago

zikriirfandi commented 11 years ago

hi, i screw up myBB forum of mine, so i need to fully restore, either files and database.

and, after restoration Facebook and Twitter Connect stop working.

the error:

FacebookApiException Object ( [result:protected] => Array ( [error_code] => 6 [error] => Array ( [message] => name lookup timed out [type] => CurlException ) ) [message:protected] => name lookup timed out [string:Exception:private] => [code:protected] => 6 [file:protected] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line:protected] => 977 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 909 [function] => makeRequest [class] => BaseFacebook [type] => -> [args] => Array ( [0] => https://graph.facebook.com/me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified [1] => Array ( [method] => GET [access_token] => 557651720949408|0a38bbd6eaa5eb3e7da17df5644d7fc6 ) ) ) [1] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 876 [function] => _oauthRequest [class] => BaseFacebook [type] => -> [args] => Array ( [0] => https://graph.facebook.com/me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified [1] => Array ( [method] => GET ) ) ) [2] => Array ( [function] => _graph [class] => BaseFacebook [type] => -> [args] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) [3] => Array ( [file] => /home/k5601503/public_html/myfbconnect/src/base_facebook.php [line] => 654 [function] => call_user_func_array [args] => Array ( [0] => Array ( [0] => Facebook Object ( [sharedSessionID:protected] => [appId:protected] => 557651720949408 [appSecret:protected] => 0a38bbd6eaa5eb3e7da17df5644d7fc6 [user:protected] => [signedRequest:protected] => [state:protected] => [accessToken:protected] => 557651720949408|0a38bbd6eaa5eb3e7da17df5644d7fc6 [fileUploadSupport:protected] => [trustForwarded:protected] => ) [1] => _graph ) [1] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) ) [4] => Array ( [file] => /home/k5601503/public_html/myfbconnect.php [line] => 73 [function] => api [class] => BaseFacebook [type] => -> [args] => Array ( [0] => /me?fields=id,name,email,cover,birthday,website,gender,bio,location,verified ) ) ) [previous:Exception:private] => )

Shade- commented 11 years ago

You have an old version of MyFacebook Connect running on your server. Use the latest from GitHub instead.

Anyway, the error message says it all: name lookup timed out. It's a cURL exception so you might have a look at your cURL installation and check for errors in your server's error log. MFC needs cURL extension to be properly running on your server without particular exceptions.

zikriirfandi commented 11 years ago

thank you shade, i'll try to update the plugin first.

zikriirfandi commented 11 years ago

the cURL support is enabled, what do you mean by cURL exception? i am newbie to web developing. MFC was previously working like a charm.

Shade- commented 11 years ago

http://stackoverflow.com/questions/13153557/error-in-curl-request-name-lookup-timed-out

It's likely that your server is a bit slow.

zikriirfandi commented 11 years ago

okay, i'll contact the hosting company

NewEraCracker commented 11 years ago

Probably there is an issue with cURL configuration.

Sometime ago I've coded a script to diagnose server-side issues caused by PHP misconfiguration: https://github.com/NewEraCracker/php_work/blob/master/check_compatibility.php

It should provide you with the issues it detects and require fixing.