You need to contact your hosting provider. This error means something on your server prevents your site from connecting to social network’s API. It could mean that DNS is broken on your server or your server disallows outgoing connections. Either way this is something your hosting provider needs to look at.
** If you are getting Permission denied error, it usually means your hosting provider is blocking access to social network or social network is blocking access from your hosting provider.
*** If you are getting Failed to connect to 2a03:2880:2110:9f01:face:b00c:0:4: Network is unreachable – 2a03:2880:2110:9f01:face:b00c:0:4 is IPV6 address. IPv6 is a new Internet Protocol standard. This error means that IPv6 is activated, but it is not correctly configured on your server. You need to contact your hosting provider about that.
**** Suggested solution for “Operation timed out after …” from one of our users:
The solution was adding the following filter to my themes’ functions.php file, allowing the user to change the timeout to whatever they need to, in order to accommodate SNAP.
add_filter(‘http_request_timeout’, function(){return 5;});
Update. (Answer to the most popular reply to this FAQ which is “My Hosting provider says that everything is fine, so fix your plugin”):
Let us explain how it works.
Plugin does not connect to Facebook by itself. It asks WordPress to do it by calling standard WordPress function wp_remote_get().
WordPress also does not connect to Facebook by itself when asked. It asks PHP to do it by calling standard php curl_exec() function.
PHP also does not connect to Facebook by itself when asked. It asks the system binary library that installed on the server and called “cURL” to do it.
That library connects to Facebook. That library generates “Failed to connect to .. (or any other from the list above)” error and passes it to PHP that passes it to WordPress that passes it to the plugin.
Only your hosting provider could answer why that system binary library generates that error and do something about that.
Recent Comments