[MS4W-Users] Same map displays layer on one page but fails on another

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Mar 21 18:20:24 EST 2012

On 12-03-21 3:32 PM, Theobald, Charles wrote:
> I have a map that displays perfectly on one page, but when called from a second page fails to draw a critical layer.  The only difference is the mapsize; 200x120 on the first call, and 470 x 250 on the second.  The first call is on the site index page, hyperlinked to the second page, so the first will always be displayed first.  I'm also getting the error "loadForm(): Web application error. Not enough arguments for mapsize.", although the url calls the exact same .map file the only difference is the size.  
> We never had this problem with version 4 of the mapserver on Linux, it's only occurring on a new host, windows 2008 R2.
> Any suggestions would be appreciated.


When I debug things like this for clients I always try to duplicate
outside of the application.  Can you duplicate the problem through a
shp2img command (http://www.mapserver.org/utilities/shp2img.html) or
through a mapserv commandline call (see
http://www.mapserver.org/cgi/mapserv.html) ?  Once you have the problem
command, then you can paste it here for all of the mailing list readers
so they can provide comments.  Maybe also paste the output from a
'mapserv -v' command as well.

Hope that helps.

Thanks for using the MS4W Product in your organization.


Jeff McKenna
MapServer Consulting and Training Services

More information about the MS4W-Users mailing list