For the first error:
I guess you just need to insert a tag at the top level of the map file 
that is

SHAPEPATH "something"

since you're using only Postgis I guess it is not necessary that it is 
an actually existing directory. I probably never used a map file without 
any shapes or images, so always included this tag and never got any 
error... I will once add a check if this tag exists.


For the second:
likely related to this issue:
http://svn.pmapper.net/trac/wiki/UpgradeInfo#MapServer5.6.x

You could try substituting the line 95 in plugins/export/export.shp.php

$srcShp = $srcLayer->getShape(-1, $shpIdx);

with

$srcShp = = PMCommon::resultGetShape($srcLayer, $shpIdx, -1);

if it works please report back and I will add this patch to the SVN.

armin



On 04/10/2010 18:55, Nahum Castro wrote:
> Hello all
>
> I have found an error on the search tool, when i select an item for search,
> there are no fields to search.
>
> Also the shp export extension don't work anymore,
>
> Here are the php error log:
> [04-Oct-2010 10:15:58] PHP Notice:  Uninitialized string offset: 0 in
> /var/www/html/pmapper/incphp/init/initmap.php on line 545
> [04-Oct-2010 10:15:58] PHP Notice:  Uninitialized string offset: 1 in
> /var/www/html/pmapper/incphp/init/initmap.php on line 545
> [04-Oct-2010 10:16:05] PHP Notice:  Uninitialized string offset: 0 in
> /var/www/html/pmapper/incphp/init/initmap.php on line 545
> [04-Oct-2010 10:16:05] PHP Notice:  Uninitialized string offset: 1 in
> /var/www/html/pmapper/incphp/init/initmap.php on line 545
> [04-Oct-2010 10:16:18] type: 2
> [04-Oct-2010 10:16:18] PHP Fatal error:  Object expected as argument. in
> /var/www/html/pmapper/plugins/export/export.shp.php on line 96
>
> Here are the pm_debug.log
> [04-Oct-2010 10:35:25] P.MAPPER debug info
> XML->//definition
>   SimpleXMLElement Object
> (
>      [...@attributes] =>  Array
>          (
>              [type] =>  suggest
>              [connectiontype] =>  db
>              [sort] =>  asc
>              [minlength] =>  1
>              [dependfld] =>  cmcncd
>          )
>
>      [dsn] =>  pgsql://postgres:postg...@localhost/geografia
>      [sql] =>  SELECT nombre FROM municipios WHERE nombre ~* '^[search]' ORDER
> BY nombre
> )
>
> [04-Oct-2010 10:35:28] P.MAPPER debug info
> XML->//definition
>   SimpleXMLElement Object
> (
>      [...@attributes] =>  Array
>          (
>              [type] =>  suggest
>              [connectiontype] =>  db
>              [sort] =>  asc
>              [minlength] =>  1
>              [dependfld] =>  cmcncd
>          )
>
>      [dsn] =>  pgsql://postgres:postg...@localhost/geografia
>      [sql] =>  SELECT DISTINCT nombre FROM localidades WHERE nombre ~*
> '^[search]' ORDER BY nombre
> )
>
> There are no errors on firebug.
>
> My versions:
>
> pmapper 4 stable from svn downloaded octuber 1, 2010
> php 5.2.14
> postgresql 9.0.0
> postgis 1.5.2
> MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS
> SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS
> INPUT=SHAPEFILE
> OS: CentOS Linux 5.5 x86_64
>
> All vector layers came from Postgis
>
> Thanks.
>


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to