Summary | Forward of DSN message fails: Call to a member function on a non-object in imp/lib/MIME/Contents.php line 399 |
Queue | IMP |
Queue Version | 4.0.2 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | |
Requester | roel (at) bouwman (dot) net |
Created | 02/21/2005 (7475 days ago) |
Due | |
Updated | 02/21/2005 (7475 days ago) |
Assigned | |
Resolved | 02/21/2005 (7475 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Forward of DSN message fails: Call to a member function on a non-object in imp/lib/MIME/Contents.php line 399
Queue ⇒ IMP
Notification) the following error is returned:
Fatal error: Call to a member function on a non-object in
/data/www/webmail-new.townqsp.nl/www/horde/imp/lib/MIME/Contents.php
on line 399.
The relevant code:
398 $mime_part = &$this->getMIMEPart($id);
399 $mime_part->setContents($this->getBodyPart($id));
400 $this->_message->alterPart($id, $mime_part);
It seems that getMIMEPart does not return an object in this instance.
Unfortunately,
the function is undocumented. Adding "if (is_object($mime_part))"
before the second
line does resolve this issue. However, I can not assess the entire
impact of this change.
Regards,
Roel Bouwman.