<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dara, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am pretty sure that relative paths work for templates, but for testing purposes, try using the absolute path to the template.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dara Olson [mailto:dolson@glifwc.org] <br><b>Sent:</b> Tuesday, August 16, 2011 10:03 AM<br><b>To:</b> Fawcett, David (MPCA); mapserver-users@lists.osgeo.org<br><b>Subject:</b> Re: [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>It is below.  I am running a web mapping site with GeoMoose(2.0) and MapServer(5.2.1), but I can't seem to find a way to figure out what I am doing wrong or why I am ending up with the error. Any help would be greatly appreciated.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Miigwech!</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Dara</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>MAP<br>SIZE 1920 1920<br>MAXSIZE 10000<br>EXTENT -20614760.777156 1751325.1919492 -1927436.1053437 7915207.1517617<br>UNITS meters<br>SYMBOLSET "..\symbols\glifwc_symbol.sym"<br>FONTSET "..\fonts\fonts.list"<br>CONFIG  "MS_ERRORFILE" "d:/Logs/Mapserver/MapServerDEVELSITE.log"</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>OUTPUTFORMAT<br> NAME 'agg/png'<br> DRIVER AGG/PNG<br> IMAGEMODE RGBA<br> FORMATOPTION "TRANSPARENT=TRUE"<br>END<br> <br>IMAGETYPE AGG/PNG<br>TRANSPARENT ON<br>IMAGECOLOR -1 -1 -1</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>DEBUG 3<br>  <br>############################### ---- LEGEND ---- ###############################</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> LEGEND<br>   STATUS on<br>   TRANSPARENT on<br> END<br> <br>############################### ---- Map projection ---- ###############################</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> PROJECTION<br>  "init=epsg:900913"<br> END</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>############################### ---- LAYERS ---- ###############################<br> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>LAYER #  MN Ogaa Harvest LBS<br>    NAME "mn_ogaa_harvest_lbs"<br>    TYPE POLYGON<br>    CONNECTIONTYPE postgis<br>    CONNECTION "host=zzzzzzz user=zzzzzz password=zzzzzz dbname=zzzzzz"<br>    PROCESSING "CLOSE_CONNECTION=DEFER"   </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>    DATA "the_geom900913 from inland.mn_ogaa_harvest_lbs_spatial using unique new_id using srid=900913"<br>    PROJECTION<br>        "init=epsg:900913"<br>    END<br>    METADATA<br>        "wms_title" "MN Ogaa Harvest Lakes"<br>    END<br>    CLASS<br>        NAME "MN Ogaa Harvest Lakes" <br>        STYLE<br>            SYMBOL 0 <br>            SIZE 6 <br>            OUTLINECOLOR -1 -1 -1<br>            COLOR 182 177 145<br>        END<br>        TEMPLATE "../identify/ogaa_harvest/mn_ogaa_harvest_lbs_identify.html"<br>    END<br>END # MN Ogaa Harvest LBS</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>END #map file</span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>My HTML identify template used to display results is, </span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'><!-- MapServer Template--><br><tbody><br><tr><br><th colspan="2">MN Ogaa Harvest in Pounds</th><br></tr><br><tr><br><td align="left">Lake:</td><br><td>[lake]</td><br></tr><br><tr><br><td align="left">2011 Harvest:</td><br><td>[_2011_harvest]</td><br></tr><br>...</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'></tbody><br><tr><td colspan="2"><hr></td></tr></span><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>----- Original Message ----- <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:#E4E4E4'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <a href="mailto:david.fawcett@state.mn.us" title="david.fawcett@state.mn.us">Fawcett, David (MPCA)</a> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>To:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <a href="mailto:dolson@glifwc.org" title="dolson@glifwc.org">Dara Olson</a> ; <a href="mailto:mapserver-users@lists.osgeo.org" title="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Sent:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> Tuesday, August 16, 2011 9:42 AM<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Subject:</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> RE: [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dara, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can you share the part of your mapfile that describes this layer?  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Dara Olson<br><b>Sent:</b> Tuesday, August 16, 2011 9:01 AM<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> [mapserver-users] Web application error. Malformed template name<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Good morning. I am having some problems identifying a layer through MapServer and I seem to be stuck.  <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>I have a flat table of harvest by waterbody by year by individual in PostgreSQL/PostGIS. I created a "temporary view" of the sum harvested by waterbody by year and joined in geometry which I then made into a crosstab so that each lake would be listed and columns across with harvest by year.  It draws successfully in my web mapping application (and view looks fine in postgres), but when I try to use the Identify feature on the website (Mapserver GET URL request) I get the following error in MapServer, <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>[Fri Aug 12 09:57:33 2011].687000 msReturnPage(): Web application error. Malformed template name ().<br>[Fri Aug 12 09:57:33 2011].703000 msQueryByPoint(): Search returned no results. No matching record(s) found.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Before doing the crosstab I was getting this error, but I assumed that it didn't like the multiple records linked to the same geometry and that's why I did the crosstab.  But still nothing works.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Does anyone have any idea of where to begin to debug?  Any help would be greatly appreciated.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Thanks!<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>Dara Olson, GLIFWC<o:p></o:p></span></p></div></div></blockquote></div></body></html>