[Qgis-user] QGIS Server error when printing to PDF

DimK midkan at gmail.com
Wed Aug 24 20:33:03 PDT 2016


Hello,

When using the print option from the QGIS Web Client to print pdf, an
internal server error is returned:

http://localhost/qgis/qgis_mapserv.fcgi.exe?map=c%3A%2FApach
e24%2Fhtdocs%2Fmygis%2Fprojects%2Fhelloworld.qgs&SERVICE=
WMS&VERSION=1.3&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS
=application%2Fvnd.ogc.se_inimage&TRANSPARENT=true&SRS=
EPSG%3A3857&DPI=300&TEMPLATE=Composer%201&map0%3Aextent=-
3586440.5%2C1909298.7%2C3938740.5%2C6179401.3&map0%
3Arotation=0&map0%3Ascale=35000000&map0%3Agrid_interval_
x=2500000&map0%3Agrid_interval_y=2500000&LAYERS=
Country%2CHello&OPACITIES=255%2C255

My log file error:

[Mon Aug 22 08:47:18.033625 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] End of script output before headers: qgis_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.033625 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: Warning 1: Unable to find driver ECW to unload from
GDAL_SKIP environment variable.\r: C:/QGIS/apps/qgis-ltr/bin/qgis
_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.034626 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: Warning 1: Unable to find driver ECW to unload from
GDAL_SKIP environment variable.\r: C:/QGIS/apps/qgis-ltr/bin/qgis
_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.034626 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: Warning 1: Unable to find driver JP2ECW to unload from
GDAL_SKIP environment variable.\r: C:/QGIS/apps/qgis-ltr/bin/qgis
_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.034626 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: Warning 1: Unable to find driver ECW to unload from
GDAL_SKIP environment variable.\r: C:/QGIS/apps/qgis-ltr/bin/qgis
_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.034626 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: Warning 1: Unable to find driver JP2ECW to unload from
GDAL_SKIP environment variable.\r: C:/QGIS/apps/qgis-ltr/bin/qgis
_mapserv.fcgi.exe
[Mon Aug 22 08:47:18.034626 2016] [cgi:error] [pid 3428:tid 1036] [client
::1:49864] AH01215: QFSFileEngine::open: No file name specified\r:
C:/QGIS/apps/qgis-ltr/bin/qgis_mapserv.fcgi.exe


But when I replace FORMAT output to PNG - it's all right!

I use QGIS 2.8 (long term) 64 bit version on Windows Server 2012 R2
Standard, Apache 2.4.20 (Win64). I tried using version 2.14 and 2.16 but
without success.

How to fix it? Any ideas?

Dmitry Konoplya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160825/94885919/attachment.html>


More information about the Qgis-user mailing list