<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Fatal error: Call to undefined function pg_escape_string()</title>
		<link>http://org.wikidot.com/forum/t-160587/fatal-error:call-to-undefined-function-pg-escape-string</link>
		<description>Posts in the discussion thread &quot;Fatal error: Call to undefined function pg_escape_string()&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 18 May 2026 08:47:54 +0000</lastBuildDate>
		
					<item>
				<guid>http://org.wikidot.com/forum/t-160587#post-499944</guid>
				<title>Re: Fatal error: Call to undefined function pg_escape_string()</title>
				<link>http://org.wikidot.com/forum/t-160587/fatal-error:call-to-undefined-function-pg-escape-string#post-499944</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 20:04:18 +0000</pubDate>
				<wikidot:authorName>Gabrys</wikidot:authorName>				<wikidot:authorUserId>2462</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Maybe you need to &quot;enable&quot; the pgsql extension. Post the result of:</p> <div class="code"> <pre><code>echo &quot;&lt;?php echo phpinfo(); ?&gt;&quot; | php</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://org.wikidot.com/forum/t-160587#post-499783</guid>
				<title>Fatal error: Call to undefined function pg_escape_string()</title>
				<link>http://org.wikidot.com/forum/t-160587/fatal-error:call-to-undefined-function-pg-escape-string#post-499783</link>
				<description></description>
				<pubDate>Thu, 04 Jun 2009 17:25:02 +0000</pubDate>
				<wikidot:authorName> Rui Campos</wikidot:authorName>				<wikidot:authorUserId>309853</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi,</p> <p>I'm trying to install wikidot in a Centos 5 server.</p> <p>I have installed PHP 5.2, Postgresql 8.3, got the wikidot clone from github.</p> <p>Whenever I try to run the 'make prepare_db' as postgres user I got the following error:</p> <div class="code"> <pre><code>Fatal error: Call to undefined function pg_escape_string()</code></pre></div> <p>If I try to execute 'make' I get:</p> <div class="code"> <pre><code>Call to undefined function pg_connect()</code></pre></div> <p>I have the following libraries installed:</p> <div class="code"> <pre><code># yum list | grep php php.i386 5.2.6-jason.1 installed php-cli.i386 5.2.6-jason.1 installed php-common.i386 5.2.6-jason.1 installed php-pdo.i386 5.2.6-jason.1 installed php-pgsql.i386 5.2.6-jason.1 installed php-bcmath.i386 5.2.6-jason.1 utterramblings php-dba.i386 5.2.6-jason.1 utterramblings php-dbase.i386 5.2.4-jason.1 utterramblings php-devel.i386 5.2.6-jason.1 utterramblings php-embedded.i386 5.2.6-jason.1 utterramblings php-gd.i386 5.2.6-jason.1 utterramblings php-imap.i386 5.2.6-jason.1 utterramblings php-ldap.i386 5.2.6-jason.1 utterramblings php-mbstring.i386 5.2.6-jason.1 utterramblings php-mcrypt.i386 5.2.6-jason.1 utterramblings php-mhash.i386 5.2.6-jason.1 utterramblings php-mssql.i386 5.2.6-jason.1 utterramblings php-mysql.i386 5.2.6-jason.1 utterramblings php-ncurses.i386 5.2.6-jason.1 utterramblings php-odbc.i386 5.2.6-jason.1 utterramblings php-pear.noarch 1:1.6.2-1.jason.1 utterramblings php-snmp.i386 5.2.6-jason.1 utterramblings php-soap.i386 5.2.6-jason.1 utterramblings php-tidy.i386 5.2.6-jason.1 utterramblings php-xcache.i386 5.2.6_1.2.2-jason.3 utterramblings php-xml.i386 5.2.6-jason.1 utterramblings php-xmlrpc.i386 5.2.6-jason.1 utterramblings phpPgAdmin.noarch 4.2.2-1.rhel5 pgdg83 uuid-php.i386 1.5.1-4.rhel5 pgdg83</code></pre></div> <div class="code"> <pre><code># yum list | grep postgres compat-postgresql-libs.i686 4-1PGDG.rhel5 installed postgresql.i386 8.3.7-1PGDG.rhel5 installed postgresql-libs.i386 8.3.7-1PGDG.rhel5 installed postgresql-server.i386 8.3.7-1PGDG.rhel5 installed check_postgres.noarch 2.8.1-1.rhel5 pgdg83 compat-postgresql-libs-debuginfo.i686 4-1PGDG.rhel5 pgdg83 postgresql-contrib.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-debuginfo.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-devel.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-docs.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-jdbc.i686 8.3.603-1PGDG.rhel5 pgdg83 postgresql-jdbc.i386 8.3.604-1PGDG.rhel5 pgdg83 postgresql-jdbc-debuginfo.i686 8.3.603-1PGDG.rhel5 pgdg83 postgresql-jdbc-debuginfo.i386 8.3.604-1PGDG.rhel5 pgdg83 postgresql-odbc.i686 08.03.0100-1PGDG.rhel5 pgdg83 postgresql-odbc.i386 08.03.0400-1PGDG.rhel5 pgdg83 postgresql-odbc-debuginfo.i386 08.03.0400-1PGDG.rhel5 pgdg83 postgresql-odbc-debuginfo.i686 08.03.0100-1PGDG.rhel5 pgdg83 postgresql-plperl.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-plpython.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-pltcl.i386 8.3.7-1PGDG.rhel5 pgdg83 postgresql-python.i686 3.8.1-7PGDG.rhel5 pgdg83 postgresql-python-debuginfo.i686 3.8.1-7PGDG.rhel5 pgdg83 postgresql-tcl.i686 1.6.2-1PGDG.rhel5 pgdg83 postgresql-tcl-debuginfo.i686 1.6.2-1PGDG.rhel5 pgdg83 postgresql-test.i386 8.3.7-1PGDG.rhel5 pgdg83</code></pre></div> <p>Is there anything else I need to install to be able to execute the Makefile on wikidot?</p> <p>Thanks,<br /> Rui</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>