Forums | Mahara Community

Support /
Cron Error - ImageTTFBBox in GD.php on OSX


anonymous profile picture
Account deleted
Posts: 1

28 January 2015, 11:21

Hello. We are using Mahara which is installed on an OS X 10.10 Server platform. We are receiving the following cron errors:

 

[INF] 73 (lib/cron.php:148) Running core cron cron_site_data_weekly
PHP Fatal error:  Call to undefined function ImageTTFBBox() in /Library/Server/Web/Data/Sites/mahara.wupmooksgmol.ca/lib/pear/Image/Canvas/GD.php on line 1381

[INF] 84 (lib/cron.php:148) Running core cron cron_site_data_daily
PHP Fatal error:  Call to undefined function ImageTTFBBox() in /Library/Server/Web/Data/Sites/mahara.wupmooksgmol.ca/lib/pear/Image/Canvas/GD.php on line 1317

[INF] ad (lib/cron.php:148) Running core cron cron_institution_data_weekly
PHP Fatal error:  Call to undefined function ImageTTFBBox() in /Library/Server/Web/Data/Sites/mahara.wupmooksgmol.ca/lib/pear/Image/Canvas/GD.php on line 1381

[INF] c9 (lib/cron.php:148) Running core cron cron_institution_data_daily
PHP Fatal error:  Call to undefined function imagettfbbox() in /Library/Server/Web/Data/Sites/mahara.wupmooksgmol.ca/lib/pear/Image/Canvas/GD.php on line 1449

 

These lines coincide with the following lines in GD.php:

Line 1317:                 $bounds = ImageTTFBBox(
Line 1381:                 $bounds = ImageTTFBBox(
Line 1449:                 $size1 = imagettfbbox($this->_font['size']*$this->_pxToPtFactor, 0, $this->_font['file'], 'Al');

 

Any help would be great in resolving this. Thanks.

Aaron Wells's profile picture
Posts: 896

12 February 2015, 13:20

Hi,

It would appear that you don't have the GD image library set up for PHP on your server. Unfortunately, I don't know how to set that up on Mac OS X, but you can probably Google for it. See: http://php.net/manual/en/function.imagettfbbox.php

As a workaround, you could probably just disable the site data cron jobs (if you don't care about using Mahara's site data reports). Just delete their entries from the "cron" table in the Mahara database.

delete from cron where callfunction in ('cron_site_data_weekly', 'cron_site_data_daily', 'cron_institution_data_weekly', 'cron_institution_data_daily');

Cheers,

Aaron

2 results