[turba] String::length in Turba
Frank Cafasso
fcafasso at wagner.edu
Wed Aug 6 15:25:23 PDT 2003
Try changing your Addressbook format from (first, last) to (last, first). I
experienced the same problem and that fixed it. When I had my Addressbook set
to (first, last) and entered an address entry with the (last, first) format, I
got that message. This is not a total fix, but it'll save you until you can
figure out the real problem.
Frank
Quoting Andrew Morgan <morgan at orst.edu>:
>
> I'm running Horde v2.2.3, IMP v3.2.1, Turba v1.2, and Kronolith v1.1. I'm
> getting the following error message in syslog when someone tries to browse
> their contacts in Turba:
>
> Aug 6 14:23:31 webmail1 [18278]: PHP Fatal error: Undefined class name
> 'string' in /var/www/horde/turba/lib/Turba.php on line 168
>
> This appears to be caused by this chunk of code from turba/lib/Turba.php:
>
> if ($format == 'first_last' &&
> is_int(strpos($name, ',')) &&
> String::length($name) > String::length($lastname)) {
> $name = preg_replace("|$lastname,\s*|", '', $name);
> $name = $name . ' ' . $lastname;
> }
>
> I can't figure out where the String class is supposed to be coming from,
> but apparently I don't have it. Is there a Pear package I don't have?
>
> Andy
>
>
> --
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>
More information about the turba
mailing list