Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2009 at 15:10 UTC
Updated:
1 Oct 2009 at 21:20 UTC
Just noticed this comment by kenbarnettpt on http://drupal.org/node/151584:
I'm running Drupal v6.13 on PHP v5.2.9 and MySQL v5.0.84 (Apache v2.2.1.11 on Unix) with the CAPTCHA module v6.x-2.0-rc3. I built PHP from source with "--with-gd" and have the libpng and libjpeg libraries installed. When I run the Drupal Status report, under the GD LIBRARY item it shows a green check mark and indicates "bundled (2.0.34 compatible)". However, when I go to Administer/User Management/CAPTCHA/Image CAPTCHA, I receive the message "The Image CAPTCHA module can not generate images because your PHP setup does not support it (no GD Library)." Any ideas? Thanks!
Ken
Comments
Comment #1
soxofaan commentedThe check for the GD library is in image_captcha.module around line 111:
Can you check if this function "imagejpeg" exists on your setup?
And does "imagepng" exists?
Comment #2
kenbarnettpt commentedMy bad. I had compiled PHP without explicit JPEG or FreeType support (I did have PNG support and native GD TTF support.) Once I recompiled PHP with --with-jpeg-dir=... --with-freetype-dir=..., all was golden. Might be worth updating the documentation to show these requirements? Thanks for the assist!
Ken
Comment #3
soxofaan commentedI updated the error message to make it more clear that both GD and JPEG support are required:
http://drupal.org/cvs?commit=264224