Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 :-)

share|improve this question
add comment

1 Answer

up vote 1 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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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