Topic-icon Auto-Configuration Tool: cURL Disabled

Active Subscriptions:

None
14 years 2 weeks ago #23142 by AirCounsel
As I ran the Auto-Tune feature after uploading and installing JFBConnect v4.2, I got the following error that needs to be fixed before I can setup the Facebook App: Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\Joomla Law Website\administrator\components\com_jfbconnect\models\autotune.php on line 90

Please provide clear step-by-step instructions because I'm new to Joomla and don't have much experience using Facebook either.

Thanks!
The topic has been locked.
Support Specialist
14 years 2 weeks ago #23146 by alzander
AirCounsel,
cURL is a PHP function that needs to be enabled on your server. It's required both for our Auto-Configuration tool as well as for all communication with Facebook. While you can actually setup JFBConnect without using our auto-config tool (you can do it all manually), you will need cURL to do basic operations such as logging in.

If you don't administer the server (it sounds like you don't, which is fine), you'll need to contact your hosting provider and let them know you need to enable cURL on your site.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23155 by AirCounsel
Alzander,

Thanks for the reply! If I understood what you wrote, in order for me to configure JFBConnect properly, my site has to be hosted (Live) somewhere. Right now, I'm creating my site in Joomla and have it set up in my computer as a localhost. Please tell me, if I got it right. Otherwise, what's the alternative?
The topic has been locked.
Support Specialist
14 years 1 week ago #23156 by alzander
Nope, you got it all wrong :) You just need cURL enabled and a firewall or server/computer configuration that lets communicate with facebook.com (for mostly everything) and sourcecoast.com (for configuration only, but not required).

We do almost all of our development from 'localhost' and most of our users seem to use local development first. It makes sense and its safe. Something on your computer though seems to be preventing the basic communication required with the different sites involved.

Since the error your getting is the curl_init is not defined, that means:
* You're using an extremely, extremely old version of PHP. curl_init has been included (by default) in PHP since v4.0.2, which was released in 2001, I believe. This likely is not the case
* The PHP version you have installed was specifically configured *not* to include cURL. Again, it's included by default, so this is something that would have to be excluded intentionally. That seems to be the case. cURL can be excluded during compilation or (I think) through configuration settings which will forcefully disable it.

What are you using for development? Do you have any control over the PHP configuration or how it was installed and configured on your site? If so, you'll need to enable cURL functionality. If not, we'd recommend using something like WAMP (for windows) or something comparable for other OS's.

Hope that helps with some background. Facebook and JFBConnect both can work just about 100% normally on localhost setups. There are some features that won't work on localhost, but those are not the 'basic' features of JFBConnect..

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23199 by AirCounsel
Alex,

I found an instruction on stackoverflow on how to enable cURL in PHP. I basically said that I should go into the following directories Xampp and PHP open PHP.INI with notepad and uncomment the line: ;extension=php_curl.dll in order to enable it. And then it instructed me to restart the Apache service. Well, I found the file and removed the semi-colon to enable it. However, I don't know what was meant by "restart the Apache service." Needless to say, it didn't work since I got the same kind of error. What am I missing??

AirCounsel
The topic has been locked.
Support Specialist
14 years 1 week ago #23200 by alzander
I'm not sure how to restart XAMPP on Windows either.. usually, there's a control panel area where you can hit "Start" or "Stop". Just toggle through that. The instructions you followed sound correct though, so once you get that, it should be good.

Another option is to simply restart Windows.. though that's not an ideal way to restart :)

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23245 by AirCounsel
Alex,

Thanks to you, the cURL issue was resolved. I followed one of your suggestions and re-started windows in order to re-start XAMPP. After I did, the following previously commented function was read and the cURL was enabled: extension=php_curl.dll. However, now I'm having other issues involving SSL certificate and Facebook API. I opened a new thread here to get help. Please check it out.

AirCounsel
The topic has been locked.
Support Specialist
14 years 1 week ago #23251 by alzander
Glad to hear we got you past these issues. I just responded to your other post as well, which should be easy to work around.

Let us know if you need anything else,
Alex
The topic has been locked.