<div dir="ltr"><div><div>You'll get some great hints as to where the apache server is going wrong in the error logs.<br><br></div>When you go to the page that gets stuck at "loading map...", look for the latest entries in the apache error_log.<br>
Those will give you hints as to what file the server can't find. You can usually look at the URL to see why - does it match the WMS url you are feeding to QGIS?<br><br></div>For immediate results, use a debugging program, like on Firefox you can install the Firebug plugin. Enable the plugin then load the page that is giving you problems. Firebug immediately tells you the request and response in detail to help understand the problem. You can get a lot of this information in the "Net" tab of the Firebug plugin.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 5:38 AM, zbynek <span dir="ltr"><<a href="mailto:zbynek.janoska@cdv.cz" target="_blank">zbynek.janoska@cdv.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am trying to run QGIS server with QGIS Web Client and have problem<br>
displaying map.<br>
I am using Windows 7.<br>
<br>
My DocumentRoot is "C:\OSGeo4W/Apache/htdocs"<br>
<br>
QGIS web client is in directory<br>
"c:\OSGeo4W\apache\htdocs\qgis-web-client-master\"<br>
<br>
QGIS server is running ok, following link shows map and map can be loaded to<br>
QGis desktop client as WMS<br>
<a href="http://localhost/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:4326&REQUEST=GetMap&map=c:/OSGeo4W/apache/htdocs/qgis-web-client-master/projects/helloworld.qgs&BBOX=-50,10,0,90&WIDTH=1000&HEIGHT=1000&LAYERS=Country,Hello&FORMAT=image/png" target="_blank">http://localhost/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&SRS=EPSG:4326&REQUEST=GetMap&map=c:/OSGeo4W/apache/htdocs/qgis-web-client-master/projects/helloworld.qgs&BBOX=-50,10,0,90&WIDTH=1000&HEIGHT=1000&LAYERS=Country,Hello&FORMAT=image/png</a><br>

<br>
However, when i try to display the same qgis project using web client, it is<br>
stuck on "loading map" - side bars etc. are shown, map, however, is not.<br>
<br>
I followed this thread:<br>
<a href="http://osgeo-org.1560.n6.nabble.com/QGIS-WEB-Client-Qgis-Server-td4983593.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/QGIS-WEB-Client-Qgis-Server-td4983593.html</a><br>
but without succes.<br>
<br>
My index.html includes this link to qgis web client:<br>
<li class="map-item"> HelloWorld - 4326<br>
<qgiswebclient.html?map=c:/OSGeo4W/apache/htdocs/qgis-web-client-master/projects/helloworld.qgs&format=image/png&visibleLayers=Hello,Country><br>
</li><br>
<br>
In Globaloptions.js, i have following variable:<br>
var serverAndCGI =<br>
"<a href="http://localhost/qgis-web-client-master/cgi-bin/qgis_mapserv.fcgi" target="_blank">http://localhost/qgis-web-client-master/cgi-bin/qgis_mapserv.fcgi</a>";<br>
<br>
and this file contains single line:<br>
c:/OSGeo4W/apps/qgis/bin/qgis_mapserv.fcgi.exe<br>
which points to the location of QGIS server<br>
<br>
---------<br>
I suppose, the problem must be in QGIS web client configuration, since<br>
webserver runs just fine, but i cannot find it.<br>
<br>
Any help would be much appreciated.<br>
<br>
Thanks,<br>
Zbynek<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Problem-loading-map-using-QGIS-web-client-on-Windows-7-tp5029267.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Problem-loading-map-using-QGIS-web-client-on-Windows-7-tp5029267.html</a><br>

Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>