Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
My Version D7.9
When I try to activate the image captcha module, I get this message.
The Image CAPTCHA module can not be installed because your PHP setup does not provide the GD library, which is required to generate images.
The strange thing is that my provider gives me this information
version 2.3 de la librairie GLIBC installed
Furthermore, I have another site (same provider, same modules versions...) it works nicely !!!
thanks for your help
Comment | File | Size | Author |
---|---|---|---|
#4 | Screen shot 2011-11-13 at 10.58.44.png | 165.99 KB | soxofaan |
Comments
Comment #1
soxofaan CreditAttribution: soxofaan commentedHello,
the check whether the GD library is available is (image_captcha.module around line 163)
can you see whether this returns true or false on your setup?
Comment #2
soxofaan CreditAttribution: soxofaan commented(sorry wrong category)
Comment #3
pdeclarens CreditAttribution: pdeclarens commentedHi,
Thanks for your help.
This is what I find at line 163:
if (!function_exists('imagejpeg')) {
$status = $status | IMAGE_CAPTCHA_ERROR_NO_GDLIB;
}
Sorry but I do not know where and how I have to insert the code lines you suggest to test the GD library...
Comment #4
soxofaan CreditAttribution: soxofaan commentedI misread this apparently the first time: you need the GD library (http://www.php.net/manual/en/book.image.php)
the GLIBC library is something totally different (http://www.gnu.org/s/libc/) .
If you check the status report of you website, you should have entries about the GD library (see attached screenshot)
Comment #5
pdeclarens CreditAttribution: pdeclarens commentedHello,
Thanks for your help
This is what I find in the report:
OK
Prise en charge du format PNG par la bibliothèque GD bundled (2.0.34 compatible)
Does this help ti find out what is wrong?
rgds
Comment #6
soxofaan CreditAttribution: soxofaan commentedif you change that line 163 from
to
do things work correctly then?
Comment #7
pdeclarens CreditAttribution: pdeclarens commentedhello,
I made the suggested modification and changes the image format to png.
It works !
great many thanks !
Comment #8
soxofaan CreditAttribution: soxofaan commentedok, thanks for testing
committed to D6 and D7 versions:
http://drupalcode.org/project/captcha.git/commit/3d3e759
http://drupalcode.org/project/captcha.git/commit/e514b60