<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:large">I did what you said : I copy and paste layer by layer from the old mapfile to a new one, and test each time. I did not make any modification (as far as i know). Now I can get the capabilities in FF ! Thanks.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:large"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:large">Now I have the list of layers in QGIS. But I can't load them : it seems to have a problem of connection with PostGIS. Log error says : </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:large"><div class="gmail_default">Error executing SQL: (connection pointer is NULL</div><div class="gmail_default">) in msPostGISLayerGetExtent()[Wed Nov 23 16:33:27 2016].216000 msPostGISLayerGetExtent(): General error message. Error executing SQL. Check server logs.</div><div class="gmail_default">I guess that the logs in the message are PostGIS ones ?</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-23 15:10 GMT+01:00 Jeff McKenna <span dir="ltr"><<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In that tiny mapfile (one layer), I would also remove any special characters and numbers from any of your strings in that small mapfile (so no accents, numbers, spaces in any NAME parameters, and remove any special characters from the wms_title metadata or elsewhere).  Working with that copied mapfile and removing all those things helps me debug always - then later I can go back to the full mapfile, get that working at the commandline, then test with a manual request in the browser, and finally test in a client such as QGIS or OpenLayers.<span class="im HOEnZb"><br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" rel="noreferrer" target="_blank">http://www.gatewaygeomatics.co<wbr>m/</a><br>
<br>
<br>
<br></span><span class="im HOEnZb">
On 2016-11-23 9:48 AM, Jeff McKenna wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Regarding your issue, here is my advice for how I always debug such a<br>
situation:<br>
<br>
- I narrow down the mapfile until I am able to have the<br>
smallest/shortest mapfile that still generates the error (one layer,<br>
simple classification)<br>
<br>
- once I have that tiny mapfile, then examine that one problem layer<br>
(most times I also change the data in that layer, from something like a<br>
PostGIS connection to a local shapefile, and see if that changes anything)<br>
<br>
- for OGC/WMS requests, I will run the request directly from the MS4W<br>
commandline, such as:<br>
<br>
   setenv.bat<br>
   mapserv -nh<br>
QUERY_STRING="map=D:\ms4w\blah<wbr>.map&SERVICE=wms&REQUEST=GetCa<wbr>pabilities"<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
getcap.xml<br>
</blockquote>
<br>
And open that generated xml file to check for any errors or "WARNING"s<br>
in the response.<br>
<br>
Thank you for the positive feedback from you that MS4W is working great<br>
for you and your clients.<br>
<br>
-jeff<br>
<br>
<br>
<br>
</blockquote>
<br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.or<wbr>g</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/mapserver-users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><i style="font-size:small">----------</i></div><div><i style="font-size:small">Mathias Cunault</i><br></div></div></div><div><font size="2"><i>chargé d’opération et de recherche<br></i></font><font size="2"><i><font size="2"><i>Inrap Tours - </i></font>148 av. Maginot<br>37000 TOURS<br>06 32 05 98 96<br><u><a href="mailto:mathias.cunault@inrap.fr" target="_blank">mathias.cunault@inrap.fr</a></u></i></font></div><div><a href="http://www.inrap.fr" target="_blank">www.inrap.fr</a><br><font size="1">abonnez-vous à la lettre d'information de l'Inrap : <a href="http://www.inrap.fr/newsletter.php" target="_blank">http://www.inrap.fr/newsletter.php</a></font><br></div><div><br></div><div><div style="font-size:12.8000001907349px"><div><font color="#666666" size="1">Darth Mathias : "Topology is a pathway to many abilities some consider to be unnatural"<br></font></div><font color="#666666" size="1">Padwan : "Is it possible to learn this power ?"<br></font></div><font color="#666666" size="1">Darth Mathias : "Not from an archaeologist !"</font><br></div></div></div></div></div></div></div></div></div>
</div>