Take the 2-minute tour ×
Server Fault is a question and answer site for 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

closed as off-topic by HopelessN00b Jan 13 at 22:04

  • 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.

This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 13 at 22:04

1 Answer 1

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.