From: Date: October 12 2005 7:17pm Subject: Re: Error on Associate Emails screen List-Archive: http://lists.mysql.com/eventum-users/2356 Message-Id: <1150.64.81.112.183.1129137434.squirrel@mail.ringofsaturn.com> MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Bryan Alsdorf wrote: > Hi, > > > Rusty Nejdl wrote: > >> We are running the 1.6.1 version of eventum and today we started to >> receive the following error message when going to the Associate Emails >> screen (emails.php): >> >> Fatal error: Cannot use object of type PEAR_Error as array in >> /usr/local/www/data/eventum/include/class.mail.php on line 230 >> >> >> I tracked this down to this line 1077 in class.support.php: >> >> >> $res[$i]["sup_to"] = >> Mime_Helper::fixEncoding(Mail_API::getName($res[$i]["sup_to"]));^M >> >> >> When I comment this line out, the page displays correctly without any >> error message and from what I can tell, no lack of functionality. >> >> Has anyone else seen this error message and any ideas on how to proceed >> to fix this in a more correct fashion? > > This was reported before but I was unable to reproduce it, and my > request for more information was never followed up on so maybe you can get > me the information I need to properly fix this. > > In class.mail.php, in the getAddressInfo method add the follwing code: > > > > if (PEAR::isError($t)) { echo "
";print_r(debug_backtrace());echo
> "
"; > } > > > after "$t = Mail_RFC822::parseAddressList($address);" and revert your > previous change to the support class. This should print out a stack trace > that will let me figure out what is going on. > > Best Regards, > /bryan > > Bryan, I've added your 3 lines of code and the un-commented out the line in class.support.php. However, no error is currently showing up. I expect to see one, though, sometime in the next few days just based on the quantitiy and variety of emails that come through. I will let you know what that shows as soon as I see this. Thanks! Rusty Nejdl