The function imagettfbbox() requires GD library and the FreeType library. That error means that the FreeType or GD library is either not enabled or there is a problem with it.
For more information:
imagettfbbox
Notes
Note: This function requires both the GD library and the » FreeType library.