[mapserver-users] Mapserver error: "Web application error. Missing magic string, ..."

pcreso at pcreso.com pcreso at pcreso.com
Tue Oct 27 16:24:37 PDT 2009


I have an html template that worked fine with an earlier version of Mapserver, but not with v5.4.1

The error mesage is: 

Content-type: text/html isValidTemplate(): Web application error. Missing magic string, /srv/www/htdocs/mapdata/linz_topo/linz_250_template.html doesn't look like a MapServer template.

I can't find any docs to help identify what the error is & how to fix it.

Any advice appreciated....

  Brent Wood


The (short) html template I was using is:

<HTML>
 <HEAD>
   <TITLE> Mapserver LINZ250 prototype</TITLE>
 <HEAD>
 <CENTER>
   <H2> Mapserver demonstration of LINZ250 data</H2>
   <FORM method="get" action="/cgi-bin/mapserv">
     <TABLE border="0" cellspacing="0" cellpadding="4">
     <TR>
     <TD>
     <B><U>

     <INPUT name="img" type="image" SRC="[img]" width=600 height=480 border=0
     ALT="Map Image"><BR>
     <INPUT type="hidden" name="map" value="/srv/www/htdocs/linz_topo/linz250.map">
     <INPUT type="hidden" name="imgxy"     value="[center_x] [center_y]" >
     <INPUT type="hidden" name="imgext"    value="[mapext]" >
     <INPUT type="hidden" name="map"       value="[map]" >
     <INPUT type="hidden" name="savequery" value="true" >
     <INPUT type="hidden" name="mapext"    value="shapes" >
     <INPUT type="submit" value="Redraw/Update">

     Zoom In   <INPUT type=radio name=zoomdir value=1 [zoomdir_1_check]>
         
     Re-center <INPUT type=radio name=zoomdir value=0 [zoomdir_0_check]>
         
     Zoom Out  <INPUT type=radio name=zoomdir value=-1 [zoomdir_-1_check]>
         
     Zoom size <INPUT type=text name=zoomsize size=3 value=[zoomsize]>

     </TD>
     </TR>
   </TABLE>
   </FORM>

 </CENTER>
 </BODY>
</HTML>




More information about the MapServer-users mailing list