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

CommentFileSizeAuthor
#4 580648.patch2.2 KBcafuego

Comments

craigb456’s picture

Priority: Normal » Critical
craigb456’s picture

Priority: Critical » Normal
rayz90’s picture

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.

cafuego’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.2 KB

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.

rubinj’s picture

Assigned: Unassigned » rubinj
Status: Needs review » Patch (to be ported)

cafuego, thanks for the patch, I will try to get this implemented in the next day or two.

toddejohnson’s picture

Assigned: rubinj » toddejohnson
Status: Patch (to be ported) » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.