[turba] VFS Error When Viewing Contact in localsql Address Book
Rob Rosenfeld
turba.lists.horde.org at rosenfeld.to
Wed Jan 12 15:49:35 PST 2005
I'm running Turba CVS as of 1/12. I am configured to use a localsql
source. My sources.php content is below, but is pretty much straight
out of the default settings. When I try to view a contact by clicking
on their name in browse or search results, I get the following error.
Do I need to use VFS in conjunction with the localsql source? If so,
how? I see the imported addresses in horde's turba_objects table.
----- Begin Error Message -----
Notice: Undefined index: documents in
/var/www/localhost/htdocs/horde/turba/display.php on line 85
A fatal error has occurred
You must configure a VFS backend.
[line 322 of /var/www/localhost/htdocs/horde/turba/lib/AbstractObject.php]
Details (also in Horde's logfile):
object(pear_error)(8) {
["error_message_prefix"]=>
string(0) ""
["mode"]=>
int(1)
["level"]=>
int(1024)
["code"]=>
NULL
["message"]=>
string(33) "You must configure a VFS backend."
["userinfo"]=>
NULL
["backtrace"]=>
array(5) {
[0]=>
array(6) {
["file"]=>
string(21) "/usr/lib/php/PEAR.php"
["line"]=>
int(538)
["function"]=>
string(10) "pear_error"
["class"]=>
string(10) "pear_error"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(33) "You must configure a VFS backend."
[1]=>
NULL
[2]=>
int(1)
[3]=>
int(1024)
[4]=>
NULL
}
}
[1]=>
array(6) {
["file"]=>
string(22) "/usr/lib/php/Horde.php"
["line"]=>
int(447)
["function"]=>
string(10) "raiseerror"
["class"]=>
string(4) "pear"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
string(33) "You must configure a VFS backend."
}
}
[2]=>
array(6) {
["file"]=>
string(60)
"/var/www/localhost/htdocs/horde/turba/lib/AbstractObject.php"
["line"]=>
int(320)
["function"]=>
string(12) "getvfsconfig"
["class"]=>
string(5) "horde"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
string(9) "documents"
}
}
[3]=>
array(6) {
["file"]=>
string(60)
"/var/www/localhost/htdocs/horde/turba/lib/AbstractObject.php"
["line"]=>
int(230)
["function"]=>
string(8) "_vfsinit"
["class"]=>
string(12) "turba_object"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[4]=>
array(6) {
["file"]=>
string(49) "/var/www/localhost/htdocs/horde/turba/display.php"
["line"]=>
int(86)
["function"]=>
string(9) "listfiles"
["class"]=>
string(12) "turba_object"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
["callback"]=>
NULL
}
----- End Error Message -----
----- Begin sources.php -----
$cfgSources['localsql'] = array(
'title' => _("My Addressbook"),
'type' => 'sql',
// The default connection details are pulled from the Horde-wide
// SQL connection configuration.
//
// The old example illustrates how to use an alternate database
// configuration.
//
// New Example:
'params' => array_merge($conf['sql'], array('table' =>
'turba_objects')),
// Old Example:
// 'params' => array(
// 'phptype' => 'mysql',
// 'hostspec' => 'localhost',
// 'username' => 'horde',
// 'password' => '*****',
// 'database' => 'horde',
// 'table' => 'turba_objects',
// 'charset' => 'iso-8859-1'
// ),
'map' => array(
'__key' => 'object_id',
'__owner' => 'owner_id',
'__type' => 'object_type',
'__members' => 'object_members',
'__uid' => 'object_uid',
'name' => 'object_name',
'email' => 'object_email',
'alias' => 'object_alias',
'homeAddress' => 'object_homeaddress',
'workAddress' => 'object_workaddress',
'homePhone' => 'object_homephone',
'workPhone' => 'object_workphone',
'cellPhone' => 'object_cellphone',
'fax' => 'object_fax',
'title' => 'object_title',
'company' => 'object_company',
'notes' => 'object_notes',
'pgpPublicKey' => 'object_pgppublickey',
'smimePublicKey' => 'object_smimepublickey',
'freebusyUrl' => 'object_freebusyurl'
),
'search' => array(
'name',
'email'
),
'strict' => array(
'object_id',
'owner_id',
'object_type',
),
'public' => false,
'readonly' => false,
'admin' => array(),
'export' => true
);
----- End sources.php -----
More information about the turba
mailing list