[turba] Re: While trying to make a list I get: Call to undefined
function: isgroup()
Edwin L. Culp
eculp at encontacto.net
Wed Mar 9 11:01:06 PST 2005
Quoting Jan Schneider <jan at horde.org>:
> Zitat von "Edwin L. Culp" <eculp at encontacto.net>:
>
>> I am trying to create a list in Turba and after selecting a couple
>> of entries
>> and choosing "add to" I get a blank screen and the following error in my
>> httpd-error.log.
>>
>> [error] PHP Fatal error: Call to undefined function: isgroup() in
>> /usr/local/www/data/horde/turba/browse.php on
>> line 203
>
> Works fine here. Check what $target actually is on that line.
Thanks, Jan,
At least I know it's me, now, thanks. I put a var_dump($target);
between lines 203 and 203 in browse.php as shown here as you suggested:
202 $target = $driver->getObject($targetKey);
203 var_dump($target);
204 if (!empty($target) && is_object($target) && $target->isGroup()) {
I get a world of practically incomprehensible, by me anyway, errors
very similar to the following that would make me think that I have
missed something in my turba/sources.php file even though they work for
everything else. "Naming violation" (attributes:
[a:4:{s:9:"turbatype";s:5:"Group";s:2:"cn";s:4:"test";s:3:"uid";s:46:"20050309124052.3d4wgrvqpj6s at mail.unixmania.com";s:11:"objectclass";a:8:{i:0;s:3:"top";i:1;s:6:"person";i:2;s:13:"inetOrgPerson";i:3;s:15:"evolutionPerson";i:4;s:11:"hordePerson";i:5;s:12:"turbaContact";i:6;s:8:"calEntry";i:7;s:16:"worldinternetkey";}}]).Charset:UTF-8" ["userinfo"]=> NULL ["backtrace"]=> array(5) { [0]=> array(6) { ["file"]=> string(30) "/usr/local/share/pear/PEAR.php" ["line"]=> int(542) ["function"]=> string(10) "pear_error" ["class"]=> string(10) "pear_error" ["type"]=> string(2) "->" ["args"]=> array(5) { [0]=> string(399) "Failed to add an object:
[64]
The major difference between my dn and the examples is that I use email
rather than cn. I also have the following declared in my sources.php
that I think are necessary for turba lists:
'map' => array(
'__key' => 'dn',
'__type' => 'turbatype',
'__members' => 'turbamembers',
'__uid' => 'uid',
Is any other special value needed?
Again, any and all suggestions appreciated, ed
More information about the turba
mailing list