Download & Extend

Fatal error: Call to undefined function curl_init()

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

Priority:normal» critical

#2

Priority:critical» normal

#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

Version:6.x-1.0-beta2» 6.x-1.x-dev
Status:active» needs review

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.

AttachmentSize
580648.patch 2.2 KB

#5

Assigned to:Anonymous» 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.

#6

Assigned to: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.

#7

Status:fixed» closed (fixed)

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

nobody click here