I have recently updated my server to the latest version of PHP 5.1.27, except now - a few of the scripts used by my websites come up with the following error:

Fatal error: Call to undefined function imagettftext()

I did build the latest version with GD and have had a look at various answers on the internet - but nothing seems to work for me.

I have cPanel/WHM 11.30.4 on a Cent OS 5 Linux server.

I'd appreciate some help with this :-)

link|improve this question

62% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Do you have freetype? The imagegettftext() function relies on both GD and freetype. If you're missing one of the 2, the function won't be defined.

link|improve this answer
So I need to tick "TTF (FreeType)" (as it wasn't ticked) and hit build again? :-) – James Anderson Nov 19 '11 at 19:21
Yeah, try that. – Jon Lin Nov 19 '11 at 21:29
Works perfectly - thank you :D – James Anderson Nov 22 '11 at 8:39
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.