[Mapbender-users] Call to undefined function: pg_prepare()

bonzai at gmx.li bonzai at gmx.li
Tue Jun 13 01:22:17 EDT 2006


Hi Rich, 

The function pg_prepare() comes with PHP >= 5.1.0RC1 and above. If you have
a PHP version below, there is´nt any pg_prepare() and the script throw the
fatal error.

In mapbender.conf, try to change this 

	define("PREPAREDSTATEMENTS",true);

To this

	define("PREPAREDSTATEMENTS",false);

Greetz++

Basti  

-----Original Message-----
From: Richard Greenwood [mailto:richard.greenwood at gmail.com] 
Sent: Tuesday, June 13, 2006 4:55 AM
To: users at mapbender.osgeo.org
Subject: Re: [Mapbender-users] Call to undefined function: pg_prepare()

I do not speak German and I can not quite understand Marko's reply below. I
have just upgraded from Mapbender 2.2.3 to 2.2.4 rc1 and am now getting
error:

Fatal error: Call to undefined function: pg_prepare() in
C:\ms4w\apps\mapbender2.2.4.rc1\http\php\database-pgsql.php on line
163

My PHP version is unchanged. I did upgrade from PostgreSQL 8.0 to 8.1.

Any insight (in english)?

Thanks,
Rich


On 6/12/06, Samson, Marko <Marko.Samson at wald-und-holz.nrw.de> wrote:
> Hallo,
>
> Das liegt wohl daran, das du php < 5.1 installiet hast.
> Die pg_prepare function ist erst ab >=5.1 vorhanden.
>
> Gurß,
> Marko
>
>
>
>
> Marko Samson
> Landesbetrieb Wald und Holz
> GIS-Anwendungsentwicklung
> Referat I-5
> Albrecht-Thaer-Straße 34
> 48147 Münster
>
> Tel.: 0251/2376-930
> Mail: marko.samson at wald-und-holz.nrw.de
>
>
> -----Ursprüngliche Nachricht-----
> Von: ax.steinhardt at web.de [mailto:ax.steinhardt at web.de]
> Gesendet: Montag, 12. Juni 2006 13:50
> An: dev at mapbender.osgeo.org; users at mapbender.osgeo.org
> Betreff: [Mapbender-users] Call to undefined function: pg_prepare()
>
> Hallo Liste,
>
> ich habe heute die neue MB-Version 2.4.rc1 zum Testen installiert und auch
eine neue PostgreSQL-DB angelegt. Das Skript mapbender_setup.php meldet
allles 'ON'. Will ich unter 'http://localhost/mapbender/frames/login.php'
einen Nutzer anlegen oder mit root / root den Mapbender starten erhalte ich
folgende Meldung:
>
>
> Fatal error: Call to undefined function: pg_prepare() in 
> C:\ms4w\mapbender\http\php\database-pgsql.php on line 163
>
> ???
>
> Dank für Hilfe
> Axel
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapbender.osgeo.org
> For additional commands, e-mail: users-help at mapbender.osgeo.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapbender.osgeo.org
> For additional commands, e-mail: users-help at mapbender.osgeo.org
>
>


--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapbender.osgeo.org
For additional commands, e-mail: users-help at mapbender.osgeo.org





More information about the Mapbender_users mailing list