Hi,
I enabled the captcha and image captcha modules. and when i go to captcha administration page i saw the drop down to select the type of captcha wanted to use,
but under that dropdown , i can only see 'math captcha' and i can't see image captcha as an option there.
also when i go to imagecaptcha example, - that is showing up, and it says the error, my php is not support true type font,
anybody know how to enable true type font for php.
sarath
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 668152_unambiguous_setup_checking_01.patch | 4.04 KB | soxofaan |
Comments
Comment #1
tommeir commentedconfirmed, image Captcha not in selection list (Default challenge type and Challenge type).
Tried to upgrade from 2.0 to 2.1 - same problem.
Comment #2
imclean commentedI'm also seeing this behaviour. With no TTF support the option to select Image CAPTCHA isn't available. Apparently this is known: http://drupal.org/node/384814#comment-1403112
The problem seems be that when checking if Image CAPTCHA is available, the module only checks to see if everything is ok, not whether the only problem is lack off TTF support. I'm not sure why it's done like this because TTF fonts are not required for Image CAPTCHA support.
To get around it, I've replaced line 177 of image_captcha/image_captcha.module with the following 2 lines (so _image_captcha_check_setup() isn't called twice):
Comment #3
cj11363 commentedI have the same problem with 2.1 on my OS X 10.6 machine, and the code suggested by imclean appears to have solved it. Thanks!
--cj
Comment #4
soxofaan commentedthe fix from #2 should indeed work
Here is a more radical solution:
I removed the IMAGE_CAPTCHA_SETUP_OK constant, because it is confusing: even when there is no TTF support ('IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT' = 1 != IMAGE_CAPTCHA_SETUP_OK = 0), the setup is still ok (however not recommended).
The patch also contains some other minor tweaks and related documentation additions.
Comment #6
soxofaan commented#4: 668152_unambiguous_setup_checking_01.patch queued for re-testing.
Comment #8
soxofaan commented#4: 668152_unambiguous_setup_checking_01.patch queued for re-testing.
Comment #9
soxofaan commentedchanging branch for testbot
Comment #11
soxofaan commentedfixed #704110: Prevent installation of image CAPTCHA module when no GD available (with support for installation profiles), which included the patch from this thread