<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello all<div>many thanks for your help. If it's useful I can provide some more strack trace for the different versions.</div><div>I've resolved an issue with selection I had with Fusion running on Mapserver&nbsp;5.6.1.</div><div>I don't know if it's a bug, but it worked for me. The problem was the following.</div><div>I was having different output results using different order of layers in the mapfile, not in visualization but in querying. I was testing it on a small development server with only 8GB disk space. My used space grew up suddenly because Fusion and mapscript were writing the same warning error to the apache log. Firebug said that Query.php was working untill it was stop by the default 30'' timeout, but mapscrit still continued to write the warning on the apache log, as I could see using tail.</div><div>I was able to reproduce this error in different situations, but the most common was the usage of more then 2 raster images (no difference which format).</div><div>Everything was normal using query with mapfiles having up to 2 raster (I tested it even with a mapfile with no vectors); adding the third image in the mapfile provoked the error I explained before.</div><div>I think the problem was a conflict in fusion/layers/MapServer/php/Query.php, lines 192-201.</div><div>There is a loop using as incremental variable $i and the name of this variable is probably the main error that causes an endless loop: this for cycle is already inside another for cycle (starting at line 178) that uses as incremental variable $i.</div><div>The fix is to change the second variable from $i to $ii (or other):</div><div>Here is the code (lines 191-201):</div><div><br></div><div>$bRasterMaxSet = 0;</div><div><div>&nbsp; &nbsp; for ($ii=0;$ii&lt;$nCount; $ii++)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $aKeyVal = explode("=", $aProcessings[$ii]);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (count($aKeyVal) == 2 &amp;&amp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strcasecmp(trim($aKeyVal[0]), "RASTER_QUERY_MAX_RESULT") == 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bRasterMaxSet = 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">If its' useful I'll post some more stack for the still unsolved problem I have with mapserver 5.6.6 (yet another selection problem, as I wrote in a previous email)</div><div><br></div><div>-----</div><div>Julian Bogdani</div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>

<br><div><div>On Nov 21, 2011, at 4:06 PM, Michael Adair wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    I did a quick trial of&nbsp; Fusion with MapServer 6 and it appears that
    the underlying Mapscript objects have changed so Fusion PHP code
    needs to be fixed for MapServer 6.&nbsp; I wouldn't go down that route
    yet.<br>
    <br>
    It's hard to say what the issue is without seeing the site, but I
    would focus on the "parsing error" in your stack trace.<br>
    <br>
    Mike<br>
    <br>
    <br>
    <br>
    On 21/11/2011 8:39 AM, Paul Spencer wrote:
    <blockquote cite="mid:DB59D01A-C0CC-4A61-B77D-E3359B0F022B@dmsolutions.ca" type="cite">The likely suspects are usually the PHP and mapserver
      versions, both could cause problems. &nbsp;
      <div>
        <div><br>
        </div>
        <div>Just to be sure, have you run shp2img on your map file to
          ensure that its not some subtle mapfile syntax change that is
          biting you? &nbsp;I'd say that in general Fusion should work with
          6.0 but I don't think anyone else has tried it yet. &nbsp;I'm not
          sure that there were any API changes in PHP mapscript, it is
          possible. &nbsp;&nbsp;</div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div><br>
        </div>
        <div>Paul<br>
          <div><br>
          </div>
          <div><br>
            <div>
              <div>On 2011-11-20, at 9:07 AM, jbogdani wrote:</div>
              <br class="Apple-interchange-newline">
              <blockquote type="cite">
                <div>Hello list,<br>
                  I've a working Fusion installation that gets geo-data
                  from a mysql database.<br>
                  1) My server configuration (working fine) is the
                  following:<br>
                  Ubuntu server 10.04.03<br>
                  Apache 2.2.14<br>
                  MySQL 5.1.41<br>
                  PHP 5.3.2-1ubuntu4.10<br>
                  MapServer 5.6.1 with Mapscript installed<br>
                  <br>
                  2) But I had serious problems setting on a second
                  server using the following<br>
                  configuration:<br>
                  Ubuntu 11.10<br>
                  Apache 2.2.20<br>
                  MySQL 5.1.58<br>
                  PHP 5.3.6-13<br>
                  MapServer 5.6.6<br>
                  <br>
                  Using the same geo data &amp; the same mapfiles I can
                  see the map but I can<br>
                  select no feature! Firebug reports the following
                  errors:<br>
                  "NetworkError: 500 Internal Server Error -<br>
                  <a moz-do-not-send="true" href="http://localhost/gis/fusion/layers/MapServer/php/Query.php">http://localhost/gis/fusion/layers/MapServer/php/Query.php</a>"<br>
                  Apache log reports:<br>
                  [Sun Nov 20 15:03:12 2011] [error] PHP Warning:
                  &nbsp;[MapServer Error]:<br>
                  msQueryByPoint(): No matching record(s) found.\n in<br>
                  /home/webgis/www/fusion/layers/MapServer/php/Query.php
                  on line 213<br>
                  [Sun Nov 20 15:03:12 2011] [error] PHP Warning:
                  &nbsp;[MapServer Error]:<br>
                  msLoadMap(): Parsing error near (ENDa):(line 367)\n in<br>
                  /home/webgis/www/fusion/layers/MapServer/php/Query.php
                  on line 213<br>
                  [Sun Nov 20 15:03:12 2011] [error] PHP Warning:
                  &nbsp;[MapServer Error]:<br>
                  msLoadMap(): Parsing error near (ENDa):(line 367)\n in<br>
                  /home/webgis/www/fusion/layers/MapServer/php/Query.php
                  on line 213<br>
                  [Sun Nov 20 15:03:12 2011] [error] PHP Fatal error:
                  &nbsp;[MapServer Error]:<br>
                  msQueryByPoint(): No matching record(s) found.\n in<br>
                  /home/webgis/www/fusion/layers/MapServer/php/Query.php
                  on line 270<br>
                  <br>
                  Working with shapefiles everything seems to work fine.
                  Is it a Fusion<br>
                  problem, a Mapserver / mapscript problem, or what?<br>
                  <br>
                  3) Finally no map is shown if Mapserver 6 is installed
                  in the same server<br>
                  (no. 2). Has Fusion been tested with Mapserver 6.x?<br>
                  <br>
                  <br>
                  --<br>
                  View this message in context: <a moz-do-not-send="true" href="http://osgeo-org.1803224.n2.nabble.com/Known-problems-with-mapserver-5-6-6-6-tp7013710p7013710.html">http://osgeo-org.1803224.n2.nabble.com/Known-problems-with-mapserver-5-6-6-6-tp7013710p7013710.html</a><br>
                  Sent from the Fusion Users mailing list archive at <a moz-do-not-send="true" href="http://Nabble.com/">Nabble.com</a>.<br>
                  _______________________________________________<br>
                  fusion-users mailing list<br>
                  <a moz-do-not-send="true" href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br>
                  <a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
                </div>
              </blockquote>
            </div>
            <br>
            <div apple-content-edited="true">
              <span class="Apple-style-span" style="border-collapse: separate; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
                  <div><font class="Apple-style-span" face="Monaco" size="2"><br class="Apple-interchange-newline">
                      __________________________________________</font></div>
                  <div><font class="Apple-style-span" face="Monaco" size="2"><br class="webkit-block-placeholder">
                    </font></div>
                  <div><font class="Apple-style-span" face="Monaco" size="2">&nbsp;&nbsp; Paul Spencer</font></div>
                  <div><font class="Apple-style-span" face="Monaco" size="2">&nbsp;&nbsp; Chief Technology Officer</font></div>
                  <div><font class="Apple-style-span" face="Monaco" size="2">&nbsp;&nbsp; DM Solutions Group Inc</font></div>
                  <div><font class="Apple-style-span" face="Monaco" size="2">&nbsp;&nbsp; <a moz-do-not-send="true" href="http://research.dmsolutions.ca/">http://research.dmsolutions.ca/</a></font></div>
                </span></span>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fusion-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>fusion-users mailing list<br><a href="mailto:fusion-users@lists.osgeo.org">fusion-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/fusion-users">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br></blockquote></div><br></div></div></body></html>