<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    Mapserver is moaning about line 29, so does your symbol "foo"
    exists?<br>
    <br>
    STYLE<br>
      SYMBOL "foo"<br>
      COLOR 255 0 0<br>
    END<br>
    <br>
    e.g.:<br>
    <br>
    SYMBOL<br>
      NAME "foo"<br>
      TYPE ellipse<br>
      FILLED true<br>
      POINTS<br>
        10 10<br>
      END<br>
    END<br>
    <br>
    <div class="moz-signature">Bye, TDS
      <hr>
      <font size="-1">
        <a class="moz-txt-link-freetext" href="mailto:tds@tds-net.de">mailto:tds@tds-net.de</a><br>
      </font>
      <hr>
      <font size="-1">
        1+1=10<br>
        You have a question? - 42 or RTFM.
      </font>
    </div>
    <div class="moz-cite-prefix">Am 19.06.2015 um 08:05 schrieb ankur
      chitranshi:<br>
    </div>
    <blockquote
cite="mid:CA+Pqw-4EV_1jhQYODztP9TTKBZvLPDevQ1m0tCDdhcAdjYfiSQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">yes sure,
        <div><br>
        </div>
        <div>in line 18 my code is  </div>
        <div><br>
        </div>
        <div> $map=ms_newMapObj('C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map');</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>and my 'khasra.map ' file code follows....</div>
        <div><br>
        </div>
        <div>
          <div>MAP</div>
          <div><span class="" style="white-space:pre">  </span>NAME
            "bhopal Map"</div>
          <div><span class="" style="white-space:pre">  </span>IMAGECOLOR
            255 255 255</div>
          <div><span class="" style="white-space:pre">  </span>SIZE 1050
            637</div>
          <div><span class="" style="white-space:pre">  </span>IMAGETYPE
            PNG</div>
          <div><span class="" style="white-space:pre">  </span>WEB</div>
          <div><span class="" style="white-space:pre">          </span>TEMPLATE
            "index.php"</div>
          <div><span class="" style="white-space:pre">          </span>IMAGEPATH
            "/ms4w/tmp/ms_tmp/"</div>
          <div><span class="" style="white-space:pre">          </span>IMAGEURL
            "/ms_tmp"</div>
          <div><span class="" style="white-space:pre">  </span>END</div>
          <div><span class="" style="white-space:pre">  </span>SCALEBAR<span class="" style="white-space:pre">          </span></div>
          <div><span class="" style="white-space:pre">          </span>INTERLACE
            ON</div>
          <div><span class="" style="white-space:pre">          </span>INTERVALS
            1</div>
          <div><span class="" style="white-space:pre">          </span>LABEL</div>
          <div><span class="" style="white-space:pre">                  </span>SIZE
            TINY</div>
          <div><span class="" style="white-space:pre">          </span>END<span class="" style="white-space:pre">       </span></div>
          <div><span class="" style="white-space:pre">          </span>TRANSPARENT
            ON</div>
          <div><span class="" style="white-space:pre">          </span>UNITS
            KILOMETERS</div>
          <div><span class="" style="white-space:pre">  </span>END</div>
          <div><span class="" style="white-space:pre">  </span></div>
          <div><span class="" style="white-space:pre">  </span>LAYER</div>
          <div><span class="" style="white-space:pre">          </span>NAME
            "BASE"</div>
          <div><span class="" style="white-space:pre">          </span>STATUS ON</div>
          <div><span class="" style="white-space:pre">          </span>CONNECTIONTYPE
            POSTGIS</div>
          <div><span class="" style="white-space:pre">          </span>CONNECTION
            ""</div>
          <div><span class="" style="white-space:pre">          </span>DATA ""</div>
          <div><span class="" style="white-space:pre">          </span>TYPE
            polygon</div>
          <div><span class="" style="white-space:pre">          </span>CLASSITEM
            "BASE"</div>
          <div><span class="" style="white-space:pre">          </span>CLASS</div>
          <div><span class="" style="white-space:pre">                  </span>NAME
            "Data Not Available"</div>
          <div><span class="" style="white-space:pre">                  </span>STYLE</div>
          <div><span class="" style="white-space:pre">                          </span>COLOR 0
            0 0</div>
          <div><span class="" style="white-space:pre">                  </span>END</div>
          <div><span class="" style="white-space:pre">                  </span>STYLE</div>
          <div><span class="" style="white-space:pre">                          </span>SYMBOL
            "foo"</div>
          <div><span class="" style="white-space:pre">                          </span>COLOR
            255 0 0</div>
          <div><span class="" style="white-space:pre">                  </span>END</div>
          <div><span class="" style="white-space:pre">          </span>LABEL</div>
          <div><span class="" style="white-space:pre">                  </span>COLOR
             145 145 145<span class="" style="white-space:pre">                      </span></div>
          <div><span class="" style="white-space:pre">                  </span>SIZE
            medium</div>
          <div><span class="" style="white-space:pre">          </span>END</div>
          <div><span class="" style="white-space:pre">          </span>END</div>
          <div><span class="" style="white-space:pre">  </span>END</div>
          <div><span class="" style="white-space:pre">  </span></div>
          <div>END<span class="" style="white-space:pre">       </span></div>
        </div>
        <div><br>
        </div>
        <div>----------------</div>
        <div>my MapServer version is  6.0.3 (MS4W 3.0.6) </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>thanks in advance....</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jun 19, 2015 at 11:18 AM, TDS <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tds@tds-net.de" target="_blank">tds@tds-net.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi,<br>
              <br>
              can you post the lines in that file around line 18?<br>
              Has the file correct permissions and can Apache access
              that file - e.g. no restrictions like open_basedir?<br>
              <br>
              <div>Bye, Mathias <span class="">
                  <hr> <font size="-1"> <a moz-do-not-send="true"
                      href="mailto:tds@tds-net.de" target="_blank">mailto:tds@tds-net.de</a><br>
                  </font>
                  <hr> <font size="-1"> 1+1=10<br>
                    You have a question? - 42 or RTFM. </font> </span></div>
              <div>
                <div class="h5">
                  <div>Am 19.06.2015 um 07:16 schrieb ankur chitranshi:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Dear, 
                      <div><br>
                      </div>
                      <div> Still facing error....</div>
                      <div><br>
                      </div>
                      <div><br>
                        <b>Warning</b>: ms_newMapObj(): [MapServer
                        Error]: loadSymbol(): Parsing error near
                        (position):(line 29) in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b>
                        on line <b>18</b><br>
                        <br>
                        <b>Fatal error</b>: Uncaught exception
                        'MapScriptException' with message 'Failed to
                        open map file
                        "C:\ms4w\Apache\htdocs\bhopalf\mapFiles\khasra.map"'
                        in C:\ms4w\Apache\htdocs\bhopalf\index.php:18
                        Stack trace: #0
                        C:\ms4w\Apache\htdocs\bhopalf\index.php(18):
                        ms_newMapObj('C:\ms4w\Apache\...') #1 {main}
                        thrown in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b>
                        on line <b>18</b><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Fri, Jun 19, 2015 at
                        9:45 AM, TDS <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:tds@tds-net.de" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:tds@tds-net.de">tds@tds-net.de</a></a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                            <br>
                            MapScript can't find the file. Try to use
                            absolute path instead of relative path, e.g.
                            /MyWorkingDir/mapFiles/khasra.map instead of
                            mapFiles/khasra.map. Check also that on
                            linux/posix system all is case sensitive.<br>
                            <br>
                            <div>Bye, TDS
                              <hr> <font size="-1"> <a
                                  moz-do-not-send="true"
                                  href="mailto:tds@tds-net.de"
                                  target="_blank"><a class="moz-txt-link-freetext" href="mailto:tds@tds-net.de">mailto:tds@tds-net.de</a></a><br>
                              </font>
                              <hr> <font size="-1"> 1+1=10<br>
                                You have a question? - 42 or RTFM. </font>
                            </div>
                            <div>
                              <div>
                                <div>Am 19.06.2015 um 06:13 schrieb
                                  ankur chitranshi:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">while updating map
                                    server version 5.2.3 to 6.0.3, i am
                                    facing bellow error, 
                                    <div><br>
                                    </div>
                                    <div><b>Warning</b>: ms_newMapObj():
                                      [MapServer Error]: msLoadMap():
                                      (mapFiles/khasra.map) in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b>
                                      on line <b>26</b><br>
                                      <br>
                                      <b>Fatal error</b>: Uncaught
                                      exception 'MapScriptException'
                                      with message 'Failed to open map
                                      file "mapFiles/khasra.map"' in
                                      C:\ms4w\Apache\htdocs\bhopalf\index.php:26
                                      Stack trace: #0
                                      C:\ms4w\Apache\htdocs\bhopalf\index.php(26):
                                      ms_newMapObj('mapFiles/khasra...')
                                      #1 {main} thrown in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b>
                                      on line <b>26</b></div>
                                    <div><b><br>
                                      </b></div>
                                    <div><b>kindly help me</b></div>
                                    <div><b><br>
                                      </b></div>
                                    <div><b>thanking you <br clear="all">
                                      </b>
                                      <div><br>
                                      </div>
                                      -- <br>
                                      <div>thanks & regards<br>
                                        Ankur Chitranshi<br>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
mapserver-users mailing list
<a moz-do-not-send="true" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      <div>thanks & regards<br>
                        Ankur Chitranshi<br>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">thanks & regards<br>
          Ankur Chitranshi<br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>