TCPDF ERROR: [Image] Unable to get image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

TCPDF ERROR: [Image] Unable to get image

pcardinal
Hi,

Need help again

I got the following message with Quickplot

TCPDF ERROR: [Image] Unable to get image: 
http://xxx.com/mapguide/fusion/widgets/QuickPlot/GeneratePicture.php?session_id=0c94d492-7d86-11e3-8000-e0db55113222_en_MTI3LjAuMC4x0AFC0AFB0AFA&map_name=greffes52d5e71de20dd&print_size=184.60000000000002,90.67030497592297&print_dpi=96&box=-8253120.268615,5684460.269348,-8157879.731385,5684460.269348,-8157879.731385,5731239.730652,-8253120.268615,5731239.730652&normalized_box=-8253120.268615,5684460.269348,-8157879.731385,5684460.269348,-8157879.731385,5731239.730652,-8253120.268615,5731239.730652&scale_denominator=288896&rotation=0



but the browser has no problem to show the image when I am directly inserting the address
"http://xxx.com/mapguide/fusion/widgets/QuickPlot/GeneratePicture.php?session_id=0c94d492-7d86-11e3-8000-e0db55113222_en_MTI3LjAuMC4x0AFC0AFB0AFA&map_name=greffes52d5e71de20dd&print_size=184.60000000000002,90.67030497592297&print_dpi=96&box=-8253120.268615,5684460.269348,-8157879.731385,5684460.269348,-8157879.731385,5731239.730652,-8253120.268615,5731239.730652&normalized_box=-8253120.268615,5684460.269348,-8157879.731385,5684460.269348,-8157879.731385,5731239.730652,-8253120.268615,5731239.730652&scale_denominator=288896&rotation=0"

So TCPDF seems to be the culprit!

Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

Jackie Ng
It's probably a PHP notice/error/warning message being written out to the response stream that is screwing up the image. Turn on logging in php.ini to see what it is.

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

pcardinal
No  notice/error/warning message  
Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

Jackie Ng
You didn't see any PHP notices/error/warnings or you didn't see them logged?

You probably won't see such messages displayed because they're in the content of the image that TCPDF is complaining about.

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

pcardinal
I didn't see any PHP notices/error/warnings, but I found the solution for the problem. I just added "www" in my URL. Instead of "http://mysite.com/mapguide/...", I wrote "http://www.mysite.com/mapguide/...". Regards,
Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

pcardinal
In reply to this post by Jackie Ng
 I didn't see any PHP notices/error/warnings logged.
Reply | Threaded
Open this post in threaded view
|

Re: TCPDF ERROR: [Image] Unable to get image

GordonL
I had to set the PORT to 80 manually in the
PlotAsPDF.php page.  I would get those errors otherwise.