[imp] PHP/PEAR errors
Sam Rowe
sam@samrowe.com
Wed, 16 May 2001 10:05:30 -0400
On Mon, May 14, 2001 at 09:45:02PM +0000, Chuck Hagenbuch wrote:
# Quoting Sam Rowe <sam@samrowe.com>:
#
# > Fatal error: Call to undefined function: quotestring() in
# > /www/htdocs/horde/turba/lib/Driver/sql.php on line 143
#
# The db connection might not be getting established correctly... put in a
# var_dump() to see what that var is on that line - it's probably a DB_Error
# object.
I was able to get PHP to stop segfaulting, but I'm still getting this error.
I have no idea how to use var_dump and I don't wanna mess up the code.
Here's the relevant bits of my sources.php:
$cfgSources['localsql'] = array(
'title' => 'Personal Addressbook',
'type' => 'sql',
'params' => array(
'phptype' => 'mysql',
'hostspec' => 'localhost',
'username' => 'hordemgr',
'password' => '[omitted]',
'database' => 'horde',
'options' => '',
'tty' => '',
'port' => '3306',
'table' => 'Turba_Objects'
),
'map' => array(
'__key' => 'object_ID',
'__owner' => 'owner_ID',
'name' => 'name',
'email' => 'email',
'homeAddress' => 'homeAddress',
'workAddress' => 'workAddress',
'homePhone' => 'homePhone',
'workPhone' => 'workPhone',
'cellPhone' => 'cellPhone',
'fax' => 'fax',
'title' => 'title',
'company' => 'company',
'notes' => 'notes'
),
'public' => false,
'readonly' => false
);
IMP is able to use other tables in that database just fine, so I've no idea
why turba would not be able to connect.
help! :)
-Sam