Rodrigo Abantes Antunes | 5 Apr 2012 13:25
Picon

(no subject)

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  <at> ):

Name Nickname E-mail
Ana 	 	  <at> 

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"]

--

-- 
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-unsubscribe <at> lists.horde.org

Jan Schneider | 5 Apr 2012 15:19
Favicon
Gravatar

Re: (no subject)


Zitat von Rodrigo Abantes Antunes <rodrigoantunes <at> pelotas.ifsul.edu.br>:

> 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  <at> ):
>
> Name Nickname E-mail
> Ana 	 	  <at> 
>
> 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"]

There is no property access in that line in any recent Turba version.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/

--

-- 
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-unsubscribe <at> lists.horde.org

KHB | 19 Jul 2012 23:55
Picon
Favicon
Gravatar

Re: (no subject)

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  <at> ):
> 
> Name Nickname E-mail
> Ana 	 	  <at> 
> 
> 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
(Continue reading)


Gmane