Dear, sorry for my English.
I'm using Pmapper 4 final, php 5.2.11, php_mapscript 5.2.3, postgres 
8.2.0 with extension PostGIS.
I have configured the application with many, many layers and it works 
great.
I have configured several searches (all Postgres), are very successful 
by 85%.
I have a problem with 2 of the searches, which give me an error in php 
I could not solve, I repeat, the problem is only with 2 searches, the 
rest work great.
The layer corresponding to the search I see it correctly in the map 
window.

Attachments:

Apache error.log
PHP Fatal error: Object expected as argument. in / inetpub / wwwroot / 
mapas / incphp / map / map.php on line 813

Archivo.map
LAYER
        NAME "Ascendente" 
        STATUS on
        CONNECTIONTYPE postgis
        DATA "the_geom from (SELECT DISTINCT ON (desc_linea) gid, the_geom, 
desc_variante, desc_linea, cod_sublinea, desc_sublinea FROM 
v_uptu_variante) AS vista USING UNIQUE gid USING SRID=32721" 
        TYPE line
        CLASSITEM "desc_variante" 
        TOLERANCE 7
        TEMPLATE 
"/inetpub/wwwroot/sit/aplicaciones/montevimap/formularios/gis_uptu_variante.
html" 
        METADATA
        "DESCRIPTION" "Lineas de Trasnporte Ascendente"
                   "RESULT_FIELDS" "desc_variante, desc_linea, cod_sublinea, 
desc_sublinea "
                "RESULT_HEADERS" "Ascendente/Descendente, Linea, Codigo 
sublinea, Recorrido"
        END 
        CLASS
                EXPRESSION "A"
                NAME "Ascendente" 
                SYMBOL "circulo" 
                SIZE 5
                COLOR 0 0 255
        END
        CONNECTION "user=montevimap password=xxxxxx dbname=nucleo host=xx.xx.
xx.xx port=5432" 
END

File search.xml 
<! - SEARCH BY TOUR BUS LINES ->
    <searchitem name="Ascendente" description="Lineas de Transporte">
        <layer type="postgis" name="Ascendente">
            <field type="s" name="desc_linea" description="Numero de 
Linea" wildcard="1">
                <definition type="suggest" connectiontype="db" sort="
asc" minlength="0">
                    <dsn encoding="UTF-8">pgsql://montevimap:xxx...@xx.
xx.xx.xx/nucleo</dsn>
                <sql> SELECT DISTINCT ON (desc_linea)desc_linea FROM 
v_uptu_variante WHERE desc_linea ~* '^[search]' </sql> 
                </definition>
            </field>
         </layer>
    </searchitem>

Thank you very much for the help.

Richard
Montevideo, Uruguay 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to