4.3.3.3 Missing magic string
When running a GetFeatureInfo request with the info_format set as text/html, you will get an error like the below, if you do not include a magic string in each of your HTML template documents.
Content-type: text/xml isValidTemplate(): Web application error. Missing magic string, template-file doesn’t look like a MapServer template.
You need to add <!-- MapServer Template --> to the top of ALL templates.
Example the exemplar template query footer.html is:
<!-- MapServer Template -->
</body>
</html>
The recently updated exemplar service kits include this NEW requirement, but those updating from older services might miss this.
More information on this and related issues. (http://mapserver.org/development/rfc/ms-rfc-56.html)
Section last modified: 11 June 2013