just add line with ... ->close(); under any //BUG, do not remove any lines!
Latest dev version is already containing this patch. Ivan On Thursday 14 February 2008 16:19, zucchiatti wrote: > Hi hrach > > Thanks for the help.. > > I have restart Apache but the problem repeats itself. While i have try to > added in any layer RESULT FIELDS and RESULT HEADER you suggest. I test for > some day and after warn you if it resolve. > > I cannot find the function setNumResults () in initgroups.php but find all > function in squery.php. > What pmapper version are you applied? > > I am using the first version 3.2 dev and the code is structured > differently. > > My code squery.php: > --------------------------------------------------------------------------- >---------------------- function setNumResults() > { > $this->qLayer->open(); > $this->numResults = $this->qLayer->getNumResults(); > > // Apply limit for query results > if ($this->numResults > $this->limitResult) $this->numResults = > $this->limitResult; > } > > /** > * DUMP QUERY RESULTS INTO QUERY STRING $qStr > *******************************************************/ > function dumpQueryResults() > { > if ($this->zoomFull) { > // Maximum extents > $this->mExtMinx = 999999999; > $this->mExtMiny = 999999999; > $this->mExtMaxx = -999999999; > $this->mExtMaxy = -999999999; > } > > $this->returnTableJoinProperties(); > > $this->setNumResults(); > //error_log($this->numResults); > for ($iRes=0; $iRes < $this->numResults; $iRes++) { > $qRes = $this->qLayer->getResult($iRes); > $qShape = > $this->qLayer->getShape($qRes->tileindex,$qRes->shapeindex); > > $this->qStr .= $this->printResultRow($qShape); > $this->qStr .= $iRes < ($this->numResults - 1) ? ", " : ""; > $this->resultindexes[] = $qRes->shapeindex; > $this->resulttileindexes[$qRes->shapeindex] = $qRes->tileindex; > } > //error_log($this->qStr); > } > > --------------------------------------------------------------------------- >---------------- Can you explain the Klement patch? I have to remove the > code between a //BUG and the other? > > Thank you > > hrach wrote: > > Is pmapper still working or You have to restart apache? In my case, at > > the past, after "too many open files error" I had to restart apache. > > > > Now after the Klement's patch and correct configuration of RESULT_HEADERS > > and > > RESULT_FIELDS in mapfile the problem has gone. > > Ivan > > > > On Thursday 14 February 2008 13:16, zucchiatti wrote: > >> Hi Armin and folks > >> > >> I have a problem similar to other threads found on this and mapserver > >> forum > >> but I think differently. > >> In my application, I loaded several layers by tileindex. Pmapper > >> occasionally generates this error: > >> > >> Warning: require_once (.. / globals.php) [ function.require-once > >> function.require-once > >> </ A>]: failed to open stream: bts / srv / www / htdocs / pmap / incphp > >> / xajax / x_load.php > >> > >> Followed by > >> > >> On line 49 > >> Fatal error: require_once () [ function.require function.require </ > >> a>]: Failed opening > >> Required '.. / globals.php' (include_path ='.:/ usr/share/php5: / > >> usr/share/php5/PEAR ') in / srv / www / htdocs > >> / Pmap / incphp / xajax / x_load.php on line 49 > >> > >> The problem may be caused by mapserver settings ? > >> > >> Thanks in advance > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > pmapper-users mailing list > > pmapper-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users