Fatal error: Call to undefined function imagettfbbox() in /home/littledeer/www/sites/all/modules/imagecache_actions/textactions.inc on line 284

Basically, the image does not display. I have seen sort-of-related issues like this and tried some of the fixes suggested. I have tried verifying that GD in installed. I used a more generic font, etc. I tried at first to output the default text with the default font as well. I tried updating to the DEV version, but ended up with another error. (Something similar, but about "overlay"...)

PHP Version 5.2.13

Comments

dman’s picture

hm.
Can't imagine how that particular error would occur if gd exists. it's sorta integral to it.
THOUGH you may have an incomplete gd. There are extra dependencies, like freetypelib

My sample. See '--with-gd' '--with-ttf' '--enable-gd-native-ttf'

That really is normally all in the package when you get a working PHP distro, though I recall having to add them myself when doing my own builds

php -i

...
Configure Command =>  './configure'  '--prefix=/usr' '--sysconfdir=/private/etc' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-mime-magic=/etc/apache2/magic' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--with-pear' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pdo-mysql=/usr/local/mysql' '--enable-pdo' '--with-pdo-mysql=/usr/local/mysql' '--with-pdo-mysqli=/usr/local/mysql/bin/mysql_config' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--with-png-dir' '--with-jpeg-dir' '--with-freetype-dir=/usr/local/32bit'

...

gd

GD Support => enabled
GD Version => bundled (2.0.34 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.3.5
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled

If you have some of the above (freetype or ttf) things missing, that may explain it.

ron williams’s picture

Status: Active » Closed (works as designed)

I had this error on a new server that did not have TTF support for php.

dman’s picture

@Ron Williams
Thanks for the confirmation!
I suspected as much, but wasn't really going to be able to replicate easily.