Hello every body,
I am trying to make a simple video uploading site with Drupal. I am using the Video module. Let me tell you what I have done:

1) Just made a fresh installation of Drupal 7.7

2) Installed the Video module

3) Enabled the following

* Video
* Video UI

Now when I go to configuration tab I see the following error:

Exception: You must have the cURL extension enabled to use this library. in require_once() (line 22 of C:\wamp\www\freshdrupal\sites\all\modules\video\libraries\zencoder-php\Zencoder.php).

However I can still create a new content type and add field of video type. In that case when I add a content and upload video it gaves the same exception error as shown above.

Please help. If there is any substitute module for doing the same please tell me so. I need it urgently.

Comments

hypertext200’s picture

You have to enable your CUrl on server, please check with your hosting provider about it.

Heshan Wanigasooriya
Github

lsdoc77’s picture

Look at your os instructions on how to install cURL .. In linux it is quite simple through the avaliable package manager..
If you are on a shared host I think you have to call them..

hoangbien’s picture

I was resoled problem. I uninstall library module version 7.1. so i install library module version 7.2. it ok.
Thanks you,

drupalvino’s picture

I am also having this same error. But there is no cUrl module for drupal 7.

How to solve this problem?

Any idea?

WorldFallz’s picture

http://drupal.org/node/1354734#comment-5301542

curl is not drupal-- it's your server.

drupalvino’s picture

thank you.

how can i enable it?

hoangbien’s picture

Hello,
I think you can enable extension=php_curl.dll in php.ini.
ex: xampp/php/php.ini

drupalvino’s picture

Thanks a lot.......

i enabled extension=php_curl.dll in php.ini.

But same,

"(line 22 of C:\wamp\www\freshdrupal\sites\all\modules\video\libraries\zencoder-php\Zencoder.php).
The website encountered an unexpected error. Please try again later. "

error display in my drupal 7 site.

I installed support modules AmasonS3, Video preset, AWS SDK for PHP, FFmpeg Wrapper UI, libraries-7.x-2.0-alpha1.

But if I click the configuration button the above error is display.

how to solve this problem?

hoangbien’s picture

Ok,
you disable modules: Amazons3, video preset, AWS SDK fro php, FFmpeg Wrapper, libraries. so you can uninstall libraries module in tab uninstall. then you copy new module libraries-7.x-2.0-alpha1 and install it.
note: you need disable all module involved with libraries. before you want to uninstall libraries module.
Best regards,

drupalvino’s picture

Thanks for your reply.

I solved this problem. I have another one doubt.

Is it possible to play videos in lightbox2 ? using drupal 7.

If it is possible means guide me how to do that using contributed modules.

sumitk’s picture

On Ubuntu 10.4 I had to do..

$sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

legendfall’s picture

Just 3 easy steps.
■Locate and open your php.ini file (if not sure open the url http://localhost/xampp/phpinfo.php, and search for the line Loaded Configuration File). Mine was in C:\xampp\php\php.ini.
■Near line 952, uncomment extension=php_curl.dll (remove the semicolon).
■Restart the Apache web server.

source: http://niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp

de_chris’s picture

Hello, I've got the same problem. I activated curl extension and restarted Apache. After that I installed the new version of libraries module (7.2 Alpha2). Since I was unable to deactivate Geofield due to field usage I only replaced the libraries folder and run update.php. Libraries and Geofield seam to work fine under the new libraries version but I still got the error message reported here, "Exception: You must have the cURL extension enabled to use this library. in require_once()". Any ideas? Do I have to change anything in the Zencoder library?
Edit: My fault, for some reason curl is not loaded ;), got to fix this first