Did you try the new version 1.9.4? There were some bugs for attribute
searches on Postgis layers until then. I was hoping that they had been
solved with the new version. I can remember that I got that problem, but
do not know any more what was the reason for it.
The problem comes from that it cannot find the shape based on the
supplied feature ID. It uses this feature ID to identify the feature
used for the highlighting. And it does not find the feature in the
postgis layer with that id.
Write out the feature to the PHP error log, using something like
error_log("OID: $resShpIdx");
after the line
$resShape = $qLayer->getShape($resTileShpIdx, $resShpIdx);
in map.php
Then look in the postgis DB if you can find the feature using
select * from your_table where oid = [the_id_from_$resShpIdx]
Armin
Walter Lorenzetti wrote:
> Hi Armin,
> i didn't yet solve the problem:
> when i try to search with form search on the bottom of pmapper a postgis
> layer
> pmapper blocked!
>
> I look at that req.responseText in xmlhttp.js is incorrect on search
>
> i do a simple debug : i put a window.alert(req.responseText) in the function
> processReqChange() and the error that i obtain is:
>
> <br />
> <b>Fatal error:</b>: Object expected as argument. in
> <b>/home/documenti/pub/pmapper/pmapper-1.9.3/incphp/map.php</b>on line
> <b>580</b><br />
>
> if you want to try it you can at address:
> http://www.faunalia.com/pmapper/
>
> Best regards
> Walter
>