[turba] (no subject)
KHB
khburres at yahoo.com
Thu Jul 19 21:55:04 UTC 2012
Rodrigo Abantes Antunes <rodrigoantunes <at> pelotas.ifsul.edu.br> writes:
>
> Hi, when I try to import a lot of contacts it says that it was
> sucessfull but when i list the contacts they appear like this (with
> only the @):
>
> Name Nickname E-mail
> Ana @
>
> In the logs i see this:
>
> 2012-04-05T08:19:54-03:00 NOTICE: HORDE [turba] PHP ERROR: Trying to
> get property of non-object [pid 16446 on line 70 of
> "/var/www/horde4/turba/data.php"]
>
I ran into this issue as well. I solved the problem by changing
lines 70-72 from:
if ($rfc822->validateMailbox($addr)) {
$result[] = Horde_Mime_Address::writeAddress($addr->mailbox, $addr->host);
}
TO:
if ($rfc822->validateMailbox($addr) && is_object($addr)) {
$result[] = Horde_Mime_Address::writeAddress($addr->mailbox, $addr->host);
}
else
$result[] = $addr;
Essentially the issue is that if you are not allowing multiple addresses, then
the address gets added to an array instead of being turned into objects. I
don't know if this will cause a problem for the future.
More information about the turba
mailing list