1

I have installed fbconnect module with Drupal 6 on Windows 7. Everything seems to be working fine. From front end I can login to my site via fbconnect. However when I try to run and drush script, for example drush updatedb, it throws me following fbconnect error

FBconnect Error Messages

Message is

WD php: Exception: Facebook needs the CURL PHP extension. in require_once() (line 19 of E:\wamp\www\foo\sites\default\modules\contrib_modified\fbconnect\facebook-php-sdk\src\base_facebook.php). Drush command terminated abnormally due to an unrecoverable error.

Edit: Curl is enabled but still I am getting this error, please see below screenshot

enter image description here

2 Answers 2

5

Drush uses a different php.ini than the web server does. The phpinfo() you are looking at above is from your web server's php.ini. Run drush status to see the path to the php.ini that Drush is using. Then, compare the two and copy directives from the web server php.ini, such as the directives that enable the CURL PHP extension and memory_limit, and put them in Drush's cli php.ini. Then everything should work fine.

1
  • This makes total sense, can't believe I didn't manage to put two and two together on this one!
    – Chapabu
    Feb 8, 2013 at 16:01
0

The answer is in the error. You need to get the CURL PHP extension.

How do I install cURL on Windows?

If it's installed, then make sure it's enabled.

2
  • please check the screenshot above it is already enabled but still I am getting error. It is only happening with drush Feb 8, 2013 at 13:54
  • If you're running WAMP 64-bit, then apparently the packaged extension is broken. Try this from this answer on StackOverflow
    – Chapabu
    Feb 8, 2013 at 14:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.