[mapserver-users] output issues (malformed template name)

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Thu Apr 4 00:55:41 PDT 2013


Hi,

The immediate reason for the error  is that you do not have a referred template file in your system
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'

For correcting this error you must change TEMPLATE to refer to something that exists. The template file must contain at least the magic string 'mapserver template' in the first line of the template http://www.mapserver.org/mapfile/template.html
However, I have a feeling that this will not be enough for making your application to launch. If this happens, please tell a bit more about your application, how it works and what happens when you press the launch button.  And absolutely add
CONFIG "MS_ERRORFILE" "c:\good_errorfile_path_for_you.txt" and
DEBUG 5 into your mapfile.  This way you will get much valuable information into the errorfile. Comment out the DEBUG line once everything works perfectly for you.

The PyQgis MapServer Export plugin should really be fixed. At least it should write the "wms_enable_request" metadata item. Now it does not and no mapfile created with QGis will work for WMS without editing. Plugin is also using the deprecated TRANSPARENCY and I  would rather see PROJECTION blocks to use "init=epsg:xxxx" but that  may not be so important.  I am not sure it the plugin writes always SYMBOLSET "/wwwroot/symbols/symbols.sty" and uses SYMBOL "circle" in some type of classes but if it does it can also lead to not working mapfiles.  Is there anything else to complain? I can make a QGis feature request once I have collected the most important things to correct and checked that they have not been corrected already.

-Jukka Rahkonen-



Mark Mirrlees wrote:

Hello everyone,

I am trying to create a new map and it is causing me some output issues.

When I click my launch button to start the application it comes up with this message

Content-type: text/html msReturnPage(): Web application error. Malformed template name (fooOnlyForWMSGetFeatureInfo).

I have attached my mapfile and I do apologize for the length of it.

I'm not sure what's wrong in the map file! Any help would be greatly appreciated!

Thanks,
Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130404/9a651dff/attachment.html>


More information about the mapserver-users mailing list