• murteiranabo

    (@murteiranabo)


    Hello,

    I am hosting a WordPress blog on Hostdime and Contact Form 7 isn’t working because the Really Simple Captcha isn’t detecting the GD Libraries and FreeType.

    I contacted Hostdime’s support and they verified that the necessary libraries are enabled. This was their reply:

    “Hello,

    Thank you for your reply.

    Both GD and FreeType libraries are installed on the server at this time. They are also up for your account. This does appear to be a bug with [contact-form-7] and/or [really-simple-captcha] as forums online pointed out the same error, but no resolution. These plugins may need to be updated in order for them to work. Please note that due to them being third party software we are unable to assist due to them being out side of our support range. You may want to contact the developers to see if there is any other settings that we can enable. Again at this time GD and FreeType libraries are enabled at this time.

    Regards”

    I was going to send this directly to the developer but his site’s contact form says support requests will be ignored there.

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You can quote my answer following to write back to the host’s support.


    The alert saying that GD and/or FreeType are not available, is produced as a result of this code:

    if ( ! function_exists( 'imagecreatetruecolor' ) || ! function_exists( 'imagettftext' ) ) {
    	$message = __( 'This contact form contains CAPTCHA fields, but the necessary libraries (GD and FreeType) are not available on your server.', 'wpcf7' );
    
    	echo '<div class="error"><p><strong>' . esc_html( $message ) . '</strong></p></div>';
    }

    I.e., function imagecreatetruecolor or imagettftext is not callable on the server.

    Those functions are necessary for creating CAPTCHA images. They need proper versions of GD and FreeType libraries installed, according to the PHP docs.

    https://us3.php.net/manual/en/function.imagecreatetruecolor.php
    https://us3.php.net/manual/en/function.imagettftext.php

Viewing 1 replies (of 1 total)
  • The topic ‘Captcha not working but GD Libraries are installed’ is closed to new replies.