WordPress and reCaptcha Type H illegal hex digit fix

In: Wordpress

Posted by Geries Handal

24 Mar 2009

Today I was cleaning up my categories and found that a post about Microsoft Junk Mail Prevention Program, I get the following errors

Warning: pack() [function.pack]: Type H: illegal hex digit in [your blog path]/wp-content/plugins/wp-recaptcha/recaptchalib.php on line 242
Warning: pack() [function.pack]: Type H: illegal hex digit in [your blog path]/wp-content/plugins/wp-recaptcha/recaptchalib.php on line 242

Apparently the problem is with the Mail Hide obfuscation functionality in the reCaptcha plugin. After a search, I found out that this is a result of a bad public or private key. In my case I had them both in “illegal form”; most likely, there was a space at the end of the key. Which makes me ponder if a simple trim couldn’t be called on the key variable. I don’t think that the keys include white spaces or people will type them, once in a while a space will sneak on us. A good design take cares of those things.

Comment Form

 

About this blog

A personal blog where I write about my current projects, work and interests. The posts are a reflection on my current self, varying over time, since change is the only constant.

Welcome to G To The Square, my thoughts on ICT, Business and Life... in a Square.