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

P Kishor punk.kish at gmail.com
Tue Oct 27 20:18:25 PDT 2009


On Tue, Oct 27, 2009 at 6:24 PM,  <pcreso at pcreso.com> wrote:
> 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....

http://www.mapserver.org/development/rfc/ms-rfc-56.html?highlight=magic


>
>  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>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States



More information about the MapServer-users mailing list