Problems to print my map to a PDF in mapbender

3 messages Options
Embed this post
Permalink
Lluís Vicens

Problems to print my map to a PDF in mapbender

Reply Threaded More More options
Print post
Permalink
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?

--
=============================
Lluís Vicens                
                             
SIGTE - Universitat de Girona
Pl. Ferrater Mora, 1        
17071   Girona              
                               
email: [hidden email]    
T:(34) 972 418 039          
=============================

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Christoph Baudson (Wheregroup)

Re: Problems to print my map to a PDF in mapbender

Reply Threaded More More options
Print post
Permalink
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.

Christoph

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
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
[hidden email]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Lluís Vicens

Re: Problems to print my map to a PDF in mapbender

Reply Threaded More More options
Print post
Permalink
Hi Christoph,

So many thanks for your help! You're right, I didn't have installed GD
in my php installation so I installed php5-gd and it works perfect!! Thanks.

Regards,
Lluís

=============================
Lluís Vicens                
                             
SIGTE - Universitat de Girona
Pl. Ferrater Mora, 1        
17071   Girona              
                               
email: [hidden email]    
T:(34) 972 418 039          
=============================



En/na Christoph Baudson (Wheregroup) ha escrit:

> 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.
>
> Christoph
>
> 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?
>>
>
>
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users