Hi there,
I have a Debian server (Lenny version) with Debian package PHP5 v.5.2.6 and the Contentmap 1.0.3
In many pages I get the error:
Fatal error: Call to undefined function imageantialias()
After a brief investigation I discovered that:
- The error is generated by the line 657 of file plugins/content/contentmap.php : $tmp = imageantialias ($dst, true);
- The PHP manual of the imageantialias() function contains a warning: the function (and some other functions too) is only avail. when PHP is compiled with the bundle version of the GD library
- The Debian distibution (and Ubuntu too) uses a PHP compiled with an externali GD lib. that does not contains imageantialias()
- Debian guys will not fix this (!!) because they beleave the bundle lib, can expose to security hazard
- There are some forum threads proposing to recompile all the PHP package to fix this: http://cumu.li/2008/5/13/recompiling-php5-with-bundled-support-for-gd-on-ubuntu
I fixed the error commenting out the imageantialias() call in line 657 of file plugins/content/contentmap.php
and I would like to have this patch included in the next contentmap release, may be of course with a switch in the code that uses the function only if it is available.
To discover if your system is affected by this problem you can use this simple php script:
<?php
if (false === var_dump( function_exists('imageantialias'))) echo 'error1';
if (false === var_dump( function_exists('imagecreatetruecolor'))) echo 'error2';
?>
Luca Buraggi