Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) on fedora9
kmanoj-pg7 kmanoj-pg7 wrote: hello users, i am newbie to mapserver i am trying to get the itasca demo map by running in my fedora 9... i have installed mapserver 5.0.3-3 version i am really couldn't understand by looking at the documentation file given for the installation of itasca demo. especially instructions given to edit the index.html. but i have made the following edits in the index.html !-- EDIT THE FORM ACTION -- form name=demo method=GET action=/cgi-bin/mapserv onSubmit=submit_form() //change configure() as submit_form() - kapil input type=hidden name=layer value=lakespy2 input type=hidden name=layer value=dlgstln2 input type=hidden name=zoomsize value=2 !-- EDIT THESE HIDDEN VARIABLES -- input type=hidden name=map value=/var/www/html/Mapserver_Demo/itasca.map input type=hidden name=program value=/cgi-bin/mapserv input type=hidden name=root value=/Mapserver_Demo input type=hidden name=map_web_imagepath value=/var/www/html/Mapserver_Demo/tmp/ input type=hidden name=map_web_imageurl value=/tmp/ after editing completed i call the link http://localhost/Mapserver_Demo/ then i initialized the basic application its thrown the following error loadWeb(): Unknown identifier. Parsing error near (/var/www/html/Mapserver_Demo/tmp/):(line 1) i searched the mapserver forum by somehow to figure out this problem. i saw similar postings with the same error. but unfortunately i haven't found any answer for the question. someone please help me out from this error help/tips will be appreciated.. There were changes in MapServer 5.0 affecting the way to pass CGI variables. If you do a search of this list's archives you will see that this question has been answered before, here is a response: http://n2.nabble.com/msLoadMap()-Unable-to-access-file-td1971168.html#a17286109 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MAPSERVER-USERS] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
Hi! Did you resolve this issue? I have seen something similar when the mapfile is encoded with wrong character set. Have you tried saving the file as ANSI or UTF-8? Regards, Pål Kristensen Νίκος Παπαδάκης wrote: Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form [img] /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/loadWeb%28%29%3A-Unknown-identifier.-Parsing-error-near-%28%3A%29%3A%28line-1%29-tp17344928p17364161.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
in fact please see my first response to your issue for the correct settings for imagepath and imageurl when using MS4W. -jeff On 20-May-08, at 5:39 PM, Νίκος Παπαδάκης wrote: It works!!! Paths don't need C:/ in front! Thank you. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form IMG SRC=[img] width=400 height=300 border=0 /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume Νίκος Παπαδάκης a écrit : Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form IMG SRC=[img] width=400 height=300 border=0 /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Hi: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1)
Hi, I copy-pasted your mapfile from this message (between MAP and END), stored it on my hard disk and had a try with MS4W with the following URL: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/maps/test.mapmode=map I received a yellowish box on browser with Hello World text on it. Thus your mapfile and operating system is OK for this task. There must be something very little teasing you at the moment, but I trust that you will do it. Are you totally sure that you do not have anything extra, like ':' in the first line of your mapfile, as the error message suggests? -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: [EMAIL PROTECTED] puolesta: ? ? Lähetetty: ti 20.5.2008 19:40 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form IMG SRC=[img] width=400 height=300 border=0 /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
hi Here is how I reference paths in Mapserver under Windows: # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH /ms4w/tmp/ms_tmp/ THis works for me. Kind regards, Robert Sanson Guillaume Sueur [EMAIL PROTECTED] 21/05/2008 4:46 a.m. if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume ? ?apad a écrit : Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME TEST!!! SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE C:\ms4w\Apache\htdocs\test.html IMAGEPATH C:\ms4w\Apache\htdocs\tmp IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html *html headtitleMapServer Hello World/title/head body form method=POST action=/cgi-bin/mapserv.exe input type=submit value=Click input type=hidden name=MAP value=C:\ms4w\Apache\htdocs\test.map input type=hidden name=map_web value=imagepath C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/ /form IMG SRC=[img] width=400 height=300 border=0 /body /html * * ___ mapserver-users mailing list mapserver-users@lists.osgeo.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. -- This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
It works!!! Paths don't need C:/ in front! Thank you. O/H Robert Sanson έγραψε: hi Here is how I reference paths in Mapserver under Windows: # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH /ms4w/tmp/ms_tmp/ THis works for me. Kind regards, Robert Sanson Guillaume Sueur [EMAIL PROTECTED] 21/05/2008 4:46 a.m. if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1)
Hi, I guess that Mapserver thinks that the first line in the mapfile should be MAP -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: [EMAIL PROTECTED] puolesta: ? ? Lähetetty: pe 16.5.2008 22:46 Vastaanottaja: Mapserver-users Aihe: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) I got over the msLoadMap() problem. but now i get this message : loadWeb(): Unknown identifier. Parsing error near (:):(line 1) I have checked the map file over and over agian but i can't find any error. I quote the contents of map file and html template again. Map file (name : hello.mapLocation C:/ms4w/Apache/htdocs/hello.map) NAME Hello_world SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE c:/ms4w/Apache/htdocs/test.html IMAGEPATH c:/ms4w/Apache/htdocs/tmp/ IMAGEURL /tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT Hello World END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END HTML Template (name : test.html Location:C:/ms4w/Apache/htdocs/test.html ) O/H Jeff McKenna ??: Hello, There were changes in MapServer 5.0 in the way CGI variables are passed...so you might try to replace that map_web_imagepath line in your hello.html with something like: input type=hidden name=map_web value=imagepath /ms4w/tmp/ms_tmp/ imageurl /ms_tmp/ -jeff ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users