Title: Error in online server: CurlException.
Last modified: August 21, 2016

---

# Error in online server: CurlException.

 *  [wkk](https://wordpress.org/support/users/wkk/)
 * (@wkk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/)
 * Hello,
 * I’m using this plugin at localhost without any problems, but when I tried to 
   move my web to an online server I got this error:
 * Fatal error: Uncaught CurlException: 7: couldn’t connect to host thrown in /home/
   a4029449/public_html/wp-content/plugins/facebook-feed-grabber/facebook-sdk/base_facebook.
   php on line 977
 * Could it be related to cURL php extension or something? The online server uses
   php 5.2.17 and cURL is enabled: libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/
   0.6.5
 * Thank you very much in advance.
 * Best regards,
 * [http://wordpress.org/plugins/facebook-feed-grabber/](http://wordpress.org/plugins/facebook-feed-grabber/)

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

 *  Plugin Author [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226093)
 * Hi there,
    After some Googling of my own it does appear to be a server configuration
   issue.
 * The article linked to below is the most informative article I could find that
   might help you.
    - [How to fix Facebook Connect Error](http://www.tech-and-dev.com/2012/07/how-to-fix-facebook-connect-error.html)
 * Hope this helps you solve the problem! Please post back here with what you find!
 *  Thread Starter [wkk](https://wordpress.org/support/users/wkk/)
 * (@wkk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226094)
 * Unfortunatelly I don’t have pretty much control of the online server (it’s from
   a hosting service). If the problem is due to a port blocked and hosting support
   offers me to use another one, where could I change this configuration?
 * Thank you very much for your help and also for your quick answers!
 * Regards,
 *  Plugin Author [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226095)
 * You will need to file a support question with your host asking about the two 
   ports. If the ports are blocked you will then have to ask them to open up the
   ports for you. I doubt you can use a different port as Facebook is going to expect
   you to be on ports 80 & 443.
    If you do the above and the ports aren’t blocked
   and you are on PHP 5.3+ then I would try [making a plugin](http://codex.wordpress.org/Writing_a_Plugin)
   that just has `curl_setopt( $ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );` in 
   it and see if that fixes the problem.
 *  Thread Starter [wkk](https://wordpress.org/support/users/wkk/)
 * (@wkk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226133)
 * Hosting support confirmed me both ports are opened (since 80 is for HTTP and 
   443 for HTTPS/SSL protocols, it would be very strange if they were blocked).
 * The server is on php 5.2.17, I don’t know if that could be a problem if I write
   a plugin for this (me making plugins, what an adventure! xD). However, I see 
   your plugin already includes that code in facebook-sdk/base_facebook.php line
   987. So I don’t understand what would be the difference between this and a new
   plugin including also that line (I’m absolutely n00b about wp plugin coding, 
   sorry xD).
 * Is there more documentation I could read for this? I noticed package facebook-
   sdk is not eclusive of your plugin (facebook-albums uses it also, and also isn’t
   working xD). So if it is a built-in code, normally the original source has more
   documentation.
 * This is a bit frustrating as I’m blind of what’s happening in the online server…
 * Thank you for all your ideas, I hope we could reach a solution!
 * Regards,
 *  Thread Starter [wkk](https://wordpress.org/support/users/wkk/)
 * (@wkk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226172)
 * Well, I avoided the Uncaught CurlException by commenting line 977 of base_facebook.
   php. This just resolved a bad controlled error, but not the error itself (makeRequest
   returns false, so nothing is showed).
 * I’ve been googling for a while and I see many people is experienced this problem
   recently (a month ago, more or less). So I think it could be related to a problem
   with cURL versions.
 * – At localhost, I’m using PHP 5.3.8 and cURL 7.21.7 (it works!)
    – Online server
   uses PHP 5.2.17 and cURL 7.15.5 (ko, here…)
 * Just a couple of questions:
    · What’s your configuration for testing this plugin?·
   Do you have any documentation reference for facebook-sdk package?
 * Thank you very much in advance. I’ll keep investigating.
 * Regards,
 *  Plugin Author [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226173)
 * The SDK is managed on GitHub at [https://github.com/facebook/facebook-php-sdk](https://github.com/facebook/facebook-php-sdk).
 * My development machine is running,
    - PHP 5.5.0
    - cURL 7.21.4
 * I also have the plugin on a production server running,
    - PHP 5.3.13
    - cURL 7.22.0
 * And a 2nd production server running,
    - PHP 5.2.17
    - cURL 7.24.0
 *  Thread Starter [wkk](https://wordpress.org/support/users/wkk/)
 * (@wkk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226240)
 * Well finally I’ve made a jQuery solution, based on [https://github.com/pavelk2/social-feed](https://github.com/pavelk2/social-feed)(
   also from GitHub). I dind’t find a way to bypass cURL library, so I don’t know
   if that was actually the problem. But I’m pretty sure that it should be. Sorry
   I can’t help more =(
 * Anyway thank you for all your support.
 * Best regards.
 *  Plugin Author [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226256)
 * Sorry I couldn’t be more helpful but I’m glad you found a solution!

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

The topic ‘Error in online server: CurlException.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-feed-grabber.svg)
 * [Facebook Feed Grabber](https://wordpress.org/plugins/facebook-feed-grabber/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-feed-grabber/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-feed-grabber/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-feed-grabber/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-feed-grabber/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-feed-grabber/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/error-when-moving/#post-4226256)
 * Status: not resolved