Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87221 - Error in MIME.php after upgrading to horde-3.0.5
Summary: Error in MIME.php after upgrading to horde-3.0.5
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 23:18 UTC by Gertjan Zwartjes
Modified: 2005-07-26 23:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gertjan Zwartjes 2005-03-29 23:18:47 UTC
After I've upgraded to horde-3.0.5, I get the following errors in IMP's message list display:

Notice: Trying to get property of non-object in /var/www/localhost/htdocs/horde/lib/Horde/MIME.php on line 662

Notice: Trying to get property of non-object in /var/www/localhost/htdocs/horde/lib/Horde/MIME.php on line 664

Notice: Trying to get property of non-object in /var/www/localhost/htdocs/horde/lib/Horde/MIME.php on line 664

I've inspected the code and it seems that in these lines (662 to 664)

        foreach ($from as $entry) {
            if (isset($entry->mailbox) &&
                ($entry->mailbox != 'undisclosed-recipients')) {

the $entry object sometimes does not have a mailbox property. Commenting out lines 661-669 is a quick hack to remove the errors. I'm not into horde's php sources, so I leave the real solution up to someone else ;-).
Comment 1 SpanKY gentoo-dev 2005-03-31 04:46:39 UTC
*** Bug 87362 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-03-31 04:47:50 UTC
as Andy suggested in Bug 87362, if you guys `emerge PEAR-Mail`, does everything work again ?
Comment 3 Gertjan Zwartjes 2005-03-31 05:15:12 UTC
Nope. Remerging (I already had PEAR-Mail) PEAR-Mail does not fix the problem. I noticed something about this being a php-5.0.3 problem which should be solved in php-5.0.4. I'm waiting for that release so I can test if the problem will go away.

I however do not see why bug #87362 is a duplicate of this one. I see no relation at all. 
Comment 4 SpanKY gentoo-dev 2005-03-31 05:25:21 UTC
eh, true ... the common 'mime.php' threw me off ;)
Comment 5 Gertjan Zwartjes 2005-03-31 05:47:32 UTC
Ok, cool ;-). I'll try to find out if I can grab a patch somewhere for php-5.0.3 that fixes this problem.
Comment 6 SpanKY gentoo-dev 2005-04-23 22:59:55 UTC
5.0.4 is out but not yet in portage ... any idea if that version resolves this ?
Comment 7 SpanKY gentoo-dev 2005-07-26 22:47:54 UTC
get back to me please
Comment 8 Gertjan Zwartjes 2005-07-26 23:39:06 UTC
Upgrading to PHP-5.0.4 worked. However due to some problems with the PHP-5
ebuilds, I had to switch back to 4.4.x, which also doesn't have this problem.