Download & Extend

reCAPTCHA Mailhide gives error on page (pack-function)

Project:reCAPTCHA
Version:5.x-2.5
Component:reCAPTCHA Mailhide
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

When I enable and configure reCAPTCHA Mailhide as described in the documentation, I get a lot of error messages on each page where I've email adresses:

* warning: pack() [function.pack]: Type H: illegal hex digit L in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit g in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit H in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit h in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit w in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit j in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit k in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit _ in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit - in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit o in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit s in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit s in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit W in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.
* warning: pack() [function.pack]: Type H: illegal hex digit I in /var/www/vhosts/domain.com/httpdocs/modules/recaptcha/recaptcha/recaptchalib.php on line 237.

I'm using PHP 5.2.6 on a Debian Etch server. Please tell me if you need more information.

Cheers,
Andy

Comments

#1

Do you have the mcrypt installed? Should be php5-mcrypt.

#2

I know this issue is very old but I am having the same problem. The reCAPTCHA module is working great (BTW: THANKS!!!) but the reCAPTCHA Mailhide throws lots of warnings like this one:

warning: pack() [function.pack]: Type H: illegal hex digit L in /hermes/bosweb/web209/b2095/sl.mabgorga/public_html/sites/all/modules/recaptcha/recaptcha/recaptchalib.php on line 237.

I have set the public and private keys for the input filter; disabled the 'URL Filter'; and rearranged the filters so that reCAPTCHA Mailhide is first. PhpInfo reports that mcrypt 2.5.7 is installed.

Unlike the original poster I am using recaptcha-6.x-1.4

Any ideas?

#3

Note that
reCaptcha uses seperate Keys for

Mail Hide and Captcha

The error is because the pack() function is supplied a wrong private Key (The mail key is supposed to contain only Hex chars...)

nobody click here