Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by Wesley, Sven Apr 14 '15 at 16:03

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Admin panels are off topic (see this for some reasons). The community has decided that we want to close both old and new questions when such an admin panel is relevant (link 1, link 2). – Sven Apr 14 '15 at 16:03
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

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