Fatal error: Call to undefined function imagettftext() really-simple-captcha.php
-
Hi there,
Having just setup a WordPress Docker image.
See: https://hub.docker.com/_/wordpress/
I’ve migrated an existing WordPress installation over to try it out.
I discovered that your plugin produced this error:
Fatal error: Call to undefined function imagettftext() in /var/www/html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 124
You’ll find that the
imagettftextfunction requires both the GD library and the FreeType library.The WordPress Docker image is actually based on php:5.6-apache, which does not appear to include the FreeType library by standard.
Have you considered using a fallback instead?
eg:
$use_font = ($font_path !== '' && file_exists($font_path) && function_exists('imagettftext'));See: https://github.com/bcit-ci/CodeIgniter/blob/develop/system/helpers/captcha_helper.php#L282
The topic ‘Fatal error: Call to undefined function imagettftext() really-simple-captcha.php’ is closed to new replies.