msReturnPage(): Web application error. Malformed template name
This error may occur when you are attempting to use a URL template for a query. The issue is that URL templates are only allowed for query modes that return only one result (e.g. query or itemquery)
You can only use a URL template for a query in mode=query or mode=itemquery. If you try it with mode=nquery or mode=itemnquery, you will get the error:
Content-type: text/html msReturnPage(): Web application error. Malformed template name
This Error Reference applies to: MapServer 4.4, MapServer 4.6, MapServer 4.8, MapServer 4.10, MapServer 5.0