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 "<pre>";print_r(debug_backtrace());echo "</pre>";
}
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