<div dir="ltr">hi<div><br></div><div>make changes, after your , suggestion ,still m facing bellow error</div><div><br></div><div><pre><b>Warning</b>:  mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'BASE'.
 in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b> on line <b>77</b><br>
<br>
<b>Warning</b>:  mapObj::draw(): [MapServer Error]: msPostGISLayerWhichShapes(): Error executing query: ERROR:  zero-length delimited identifier at or near """"
LINE 1: select "","textstring",encode(ST_AsBinary(ST_Force_2D("the_g...
               ^
 
 in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b> on line <b>77</b><br>
<br>
<b>Fatal error</b>:  Call to a member function saveWebImage() on a non-object in <b>C:\ms4w\Apache\htdocs\bhopalf\index.php</b> on line <b>80</b></pre><pre><b><br></b></pre><pre><b><br></b></pre><pre><b>kindly help me out,</b></pre><pre><b><br></b></pre><pre><b>thanks in advance</b></pre><pre><b><br></b></pre></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 12:08 PM, ankur chitranshi <span dir="ltr"><<a href="mailto:ankuriimt@gmail.com" target="_blank">ankuriimt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">hi,<div><br></div><div> can you please  send  some sample map file......</div></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 11:57 AM, TC Haddad <span dir="ltr"><<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br></div>Hi <br><br></div>you are calling symbol "foo" but you do not have a line that references your symbol file<br><br></div>try adding a SYMBOLSET with path to you symbols definition file in the top part of your map file...<br><br></div>Tanya<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 18, 2015 at 11:05 PM, ankur chitranshi <span dir="ltr"><<a href="mailto:ankuriimt@gmail.com" target="_blank">ankuriimt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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 style="white-space:pre-wrap">       </span>NAME "bhopal Map"</div><div><span style="white-space:pre-wrap">      </span>IMAGECOLOR 255 255 255</div><div><span style="white-space:pre-wrap">   </span>SIZE 1050 637</div><div><span style="white-space:pre-wrap">    </span>IMAGETYPE PNG</div><div><span style="white-space:pre-wrap">    </span>WEB</div><div><span style="white-space:pre-wrap">              </span>TEMPLATE "index.php"</div><div><span style="white-space:pre-wrap">           </span>IMAGEPATH "/ms4w/tmp/ms_tmp/"</div><div><span style="white-space:pre-wrap">          </span>IMAGEURL "/ms_tmp"</div><div><span style="white-space:pre-wrap">     </span>END</div><div><span style="white-space:pre-wrap">      </span>SCALEBAR<span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">         </span>INTERLACE ON</div><div><span style="white-space:pre-wrap">             </span>INTERVALS 1</div><div><span style="white-space:pre-wrap">              </span>LABEL</div><div><span style="white-space:pre-wrap">                    </span>SIZE TINY</div><div><span style="white-space:pre-wrap">                </span>END<span style="white-space:pre-wrap">     </span></div><div><span style="white-space:pre-wrap">         </span>TRANSPARENT ON</div><div><span style="white-space:pre-wrap">           </span>UNITS KILOMETERS</div><div><span style="white-space:pre-wrap"> </span>END</div><div><span style="white-space:pre-wrap">      </span></div><div><span style="white-space:pre-wrap"> </span>LAYER</div><div><span style="white-space:pre-wrap">            </span>NAME "BASE"</div><div><span style="white-space:pre-wrap">            </span>STATUS ON</div><div><span style="white-space:pre-wrap">                </span>CONNECTIONTYPE POSTGIS</div><div><span style="white-space:pre-wrap">           </span>CONNECTION ""</div><div><span style="white-space:pre-wrap">          </span>DATA ""</div><div><span style="white-space:pre-wrap">                </span>TYPE polygon</div><div><span style="white-space:pre-wrap">             </span>CLASSITEM "BASE"</div><div><span style="white-space:pre-wrap">               </span>CLASS</div><div><span style="white-space:pre-wrap">                    </span>NAME "Data Not Available"</div><div><span style="white-space:pre-wrap">                      </span>STYLE</div><div><span style="white-space:pre-wrap">                            </span>COLOR 0 0 0</div><div><span style="white-space:pre-wrap">                      </span>END</div><div><span style="white-space:pre-wrap">                      </span>STYLE</div><div><span style="white-space:pre-wrap">                            </span>SYMBOL "foo"</div><div><span style="white-space:pre-wrap">                           </span>COLOR 255 0 0</div><div><span style="white-space:pre-wrap">                    </span>END</div><div><span style="white-space:pre-wrap">              </span>LABEL</div><div><span style="white-space:pre-wrap">                    </span>COLOR  145 145 145<span style="white-space:pre-wrap">                     </span></div><div><span style="white-space:pre-wrap">                 </span>SIZE medium</div><div><span style="white-space:pre-wrap">              </span>END</div><div><span style="white-space:pre-wrap">              </span>END</div><div><span style="white-space:pre-wrap">      </span>END</div><div><span style="white-space:pre-wrap">      </span></div><div>END<span style="white-space:pre-wrap">      </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><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 11:18 AM, TDS <span dir="ltr"><<a href="mailto:tds@tds-net.de" target="_blank">tds@tds-net.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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><hr>
      <font size="-1">
        <a 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>
    <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 href="mailto:tds@tds-net.de" target="_blank">tds@tds-net.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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 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> </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 href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a 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>thanks & regards<br>Ankur Chitranshi<br></div>
</div>
</div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>thanks & regards<br>Ankur Chitranshi<br></div>
</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></div>