Posted by craigb456 on September 17, 2009 at 7:38pm
| Project: | YubiKey |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | toddejohnson |
| Status: | closed (fixed) |
Issue Summary
I have installed the YubiKey into my site but when i goto "Add a YubiKey" touch the key i get the folowing error can someone help?
Fatal error: Call to undefined function curl_init() in /usr/share/drupal6/modules/yubikey/yubikey.inc on line 32
Comments
#1
#2
#3
You need to enable the php module cURL to use Drupals Yubikey module.
You can do this by enabling the module in the php.ini file or in case your site is hosted, you have to ask your hoster to enable it for you.
#4
Attached patch implements hook_requirements() which checks for the existence of the php cURL library when installing the yubikey module. It'll also should you the cURL version in the status report.
It does an extra check in yubikey.inc so the above error will not occur. Instead a message is displayed and the user is directed to the status report page.
#5
cafuego, thanks for the patch, I will try to get this implemented in the next day or two.
#6
I just committed this to the 6--1 branch. This will be part of the next 6.x-1.x-dev release. 6.x-2.x already has this check.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.