<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">When using the print option from the QGIS Web Client to print pdf, an internal server error is returned:</span></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br></span></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><a href="http://localhost/qgis/qgis_mapserv.fcgi.exe?map=c%3A%2FApache24%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" target="_blank">http://localhost/qgis/qgis_map<wbr>serv.fcgi.exe?map=c%3A%2FApach<wbr>e24%2Fhtdocs%2Fmygis%2Fproject<wbr>s%2Fhelloworld.qgs&SERVICE=<wbr>WMS&VERSION=1.3&REQUEST=<wbr>GetPrint&FORMAT=pdf&EXCEPTIONS<wbr>=application%2Fvnd.ogc.se_<wbr>inimage&TRANSPARENT=true&SRS=<wbr>EPSG%3A3857&DPI=300&TEMPLATE=<wbr>Composer%201&map0%3Aextent=-<wbr>3586440.5%2C1909298.7%<wbr>2C3938740.5%2C6179401.3&map0%<wbr>3Arotation=0&map0%3Ascale=<wbr>35000000&map0%3Agrid_interval_<wbr>x=2500000&map0%3Agrid_<wbr>interval_y=2500000&LAYERS=<wbr>Country%2CHello&OPACITIES=255%<wbr>2C255</a></span></font><br></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">My log file error:</span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><div><span style="font-size:13.44px">[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</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div><div><span style="font-size:13.44px">[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<wbr>_mapserv.fcgi.exe</span></div></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">But when I replace FORMAT output to PNG - it's all right!</span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">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.</span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">How to fix it? Any ideas?</span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div style="font-size:12.8px"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">Dmitry Konoplya</span></font></div></div>