[Mapbender-users] Problems to print my map to a PDF in mapbender

Christoph Baudson (Wheregroup) christoph.baudson at wheregroup.com
Fri Nov 6 07:51:25 EST 2009

Hi Lluís,

thanks for your mail. I guess it comes down to your PHP installation, 
quoting the PHP website:

"Depending on your PHP and GD versions this function is defined or not. 
With PHP 4.0.6 through 4.1.x this function always exists if the GD 
module is loaded, but calling it without GD2 being installed PHP will 
issue a fatal error and exit. With PHP 4.2.x this behaviour is different 
in issuing a warning instead of an error. Other versions only define 
this function, if the correct GD version is installed. "

Maybe check with phpinfo() if/which version of GD is installed.


Lluís Vicens schrieb:
> Hi,
> I'm running mapbender 2.6 rc1 on ubuntu 8.04. When I try to print my 
> map to a PDF , this function doesn't works!  I can open the print 
> dialog and select format, orientation, quality, ... but when I make a 
> click on the print button nothing happens. Automatically a new tab is 
> opened in Firefox[1] completely blank. No errors but no content... :(
> There isn't any mention to an error in the mapbender log file and just 
> this error in the php log file:
> [06-Nov-2009 12:18:05] PHP Fatal error:  Call to undefined function 
> imagecreatetruecolor() in 
> /var/www/mapbender_2.6_rc1/http/classes/class_weldMaps2PNG.php on line 41
> Where's the problem? Any hint? I've been looking for the function 
> imagecreatetruecolor or imagecreate but it seems that these functions 
> are not defined anywhere.
> Thanks in advance for your help.
> Lluís
> [1] http://localhost/mapbender/print/mod_printPDF_pdf.php?


Aufwind durch Wissen!

Qualifizierte OpenSource-Schulungen
bei der www.foss-academy.eu



W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn

Christoph Baudson

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
Amtsgericht Bonn, HRA 6788

WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm

More information about the Mapbender_users mailing list