| Summary: | Error in MIME.php after upgrading to horde-3.0.5 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Gertjan Zwartjes <gertjan.zwartjes> |
| Component: | Current packages | Assignee: | SpanKY <vapier> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | minor | CC: | dopey |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** Bug 87362 has been marked as a duplicate of this bug. *** as Andy suggested in Bug 87362, if you guys `emerge PEAR-Mail`, does everything work again ? 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. eh, true ... the common 'mime.php' threw me off ;) Ok, cool ;-). I'll try to find out if I can grab a patch somewhere for php-5.0.3 that fixes this problem. 5.0.4 is out but not yet in portage ... any idea if that version resolves this ? get back to me please 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. |
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 ;-).