List:Eventum General Discussion« Previous MessageNext Message »
From:Bryan Alsdorf Date:October 13 2005 5:57pm
Subject:Re: Error on Associate Emails screen
View as plain text  
Rusty,

Rusty Nejdl wrote:
<snip>>
> The error just occurred again:
> 
> Fatal error: Cannot use object of type PEAR_Error as array in
> /usr/local/www/data/eventum/include/class.mail.php on line 233
> 
> I commented out line 1077 again and the error went away.  For some reason,
> your debug code never printed anything to the website.  Ideas on other
> places we can add some debug code?

Use this code instead:


     function getAddressInfo($address)
     {
         $address = Mail_API::fixAddressQuoting($address);
         $address = Mime_Helper::encodeValue($address);
         include_once(APP_PEAR_PATH . "Mail/RFC822.php");
         $t = Mail_RFC822::parseAddressList($address);
         if (is_object($t)) {
             echo "<pre>";print_r(debug_backtrace());echo "</pre>";
         }
         return array(
             'sender_name' => $t[0]->personal,
             'email'       => $t[0]->mailbox . '@' . $t[0]->host,
             'username'    => $t[0]->mailbox,
             'host'        => $t[0]->host
         );
     }

Regards,
-- 
Bryan Alsdorf, Software Engineer
MySQL AB, www.mysql.com

Are you MySQL certified?  www.mysql.com/certification
Thread
Error on Associate Emails screenRusty Nejdl30 Sep
  • Re: Error on Associate Emails screenBryan Alsdorf5 Oct
    • Re: Error on Associate Emails screenRusty Nejdl12 Oct
      • Re: Error on Associate Emails screenRusty Nejdl13 Oct
        • Re: Error on Associate Emails screenBryan Alsdorf13 Oct
          • Re: Error on Associate Emails screenRusty Nejdl17 Oct
            • Re: Error on Associate Emails screenBryan Alsdorf17 Oct