Summary | IMP fails showing MIME Mails if some MIME type is unknown |
Queue | Horde Framework Packages |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | thomas (at) gelf (dot) net |
Created | 06/02/2005 (7361 days ago) |
Due | |
Updated | 07/11/2005 (7322 days ago) |
Assigned | 06/02/2005 (7361 days ago) |
Resolved | 07/11/2005 (7322 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
default driver if no specific driver is available that matches the
MIME type. If the default driver is failing to load, there is either
an issue with your local copy of the horde files or you have an error
in your config/mime_drivers.php file. Are you sure you do not have a
parse error somewhere that is causing this issue?
Fatal error: Call to a member function on a non-object in
/usr/share/php/Horde/MIME/Contents.php on line 438
This error is from canDisplayInline(), the problem is that
$viewer = &$this->getMIMEViewer($mime_part);
probably returns just "false" and not a MIME_Viewer Object if mimetype
is unknown.
Example attachment causing this error:
mime_part Object:
[_type] => audio
[_subtype] => x-wav
[_description] => Voicemail sound attachment.
...
My patch adds a check for this and also fixes partSummary() - the same
problem occurs there when
$viewer->getIcon()
is called.
Cheers,
Thomas Gelf
State ⇒ Feedback
conditions can cause it to occur? I've never seen this, and the way
you describe it that makes no sense.
New Attachment: missing_MIME_Viewer_check[1].diff
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ IMP fails showing MIME Mails if some MIME type is unknown
Queue ⇒ Horde Framework Packages
New Attachment: missing_MIME_Viewer_check.diff
with "unknown" MIME types) - I tracked the error down to
MIME/Contents.php & MIME/Viewer.php:
if getMIMEViewer() doesn't return a valid "MIME_Viewer" the functions
canDisplayInline() and partSummary() don't care and going on they
produce an error (as a boolean of course doesn't "contain" functions
as getIcon() and forceInlineView())
Yours sincerly,
Thomas Gelf