Back to top

Autore Topic: Fatal error: Call to undefined function imageantialias() in contentmap.php  (Letto 8425 volte)

Offline lburaggi

  • Nuovo arrivato
  • *
  • Post: 5
    • Mostra profilo
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:
Codice: [Seleziona]
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:
Codice: [Seleziona]
<?php
if (false === var_dumpfunction_exists('imageantialias'))) echo 'error1';
if (
false === var_dumpfunction_exists('imagecreatetruecolor'))) echo 'error2';
?>


Luca Buraggi

Offline ste

  • Instancabile
  • ******
  • Post: 8774
  • Sesso: Femmina
    • Mostra profilo
Hi Luca,
thanks for your feedback I take note for the next release

PS: ma parli anche italiano??
« Ultima modifica: 14 Apr 2010, 13:46:32 da ste »
TTI - Team Traduzione Italiano di Joomla.it - Guide su Joomla

Offline lburaggi

  • Nuovo arrivato
  • *
  • Post: 5
    • Mostra profilo
Si ! - sono italiano.
Ho scritto in inglese perchè non sapevo esattamente chi mi avrebbe letto ...

Offline ste

  • Instancabile
  • ******
  • Post: 8774
  • Sesso: Femmina
    • Mostra profilo
Bene così se legge qualche inglese capisce ;)
TTI - Team Traduzione Italiano di Joomla.it - Guide su Joomla

 



Web Design Bolzano Kreatif