6.0.0-alpha12
6/12/25

[#11884] PHP ERROR: Argument 1 passed to IMP_Factory_MimeViewer::create() must be an instance of Horde_Mime_Part, null given
Summary PHP ERROR: Argument 1 passed to IMP_Factory_MimeViewer::create() must be an instance of Horde_Mime_Part, null given
Queue IMP
Queue Version 6.0.2
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester adi (at) ddns (dot) com (dot) au
Created 12/14/2012 (4563 days ago)
Due
Updated 01/07/2013 (4539 days ago)
Assigned 12/17/2012 (4560 days ago)
Resolved 01/07/2013 (4539 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/07/2013 04:35:15 AM Michael Slusarz Comment #9
State ⇒ Resolved
Version ⇒ 6.0.2
Reply to this comment
Fixed in IMP 6.0.3.
01/07/2013 04:34:30 AM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit c719f9c8c68c10e5c787e965f7e301f76b6842be
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Jan 6 21:34:00 2013 -0700

     Bug #11884: Don't attempt to parse empty multipart/related parts

  imp/lib/Mime/Viewer/Related.php |    6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/c719f9c8c68c10e5c787e965f7e301f76b6842be
12/30/2012 09:24:35 AM adi (at) ddns (dot) com (dot) au Comment #7 Reply to this comment
I'll try to get you the IMAP debug log after 7th of January, till then 
Happy New Year :)
12/26/2012 10:48:26 PM Michael Slusarz Comment #6 Reply to this comment
Ping?
12/20/2012 04:45:16 AM Michael Slusarz Comment #5
Priority ⇒ 1. Low
Reply to this comment
Update: Cannot reproduce.  Believe it might be an issue with bad 
BODYSTRUCTURE information returned from IMAP server.  Waiting for OP 
to provide IMAP log with this information.
12/18/2012 12:37:35 AM adi (at) ddns (dot) com (dot) au Comment #4 Reply to this comment
Michael, just emailed you the download link.

12/17/2012 08:44:53 PM Michael Slusarz Comment #3
State ⇒ Feedback
Assigned to Michael Slusarz
Reply to this comment
Please send the problem email to slusarz@horde.org
12/14/2012 06:26:16 AM adi (at) ddns (dot) com (dot) au Comment #2 Reply to this comment
Forgot to add some versions:
- Imp H5 (6.0.2)
- CentOS release 6.3 (Final)
- php packages:
php-cli-5.3.3-14.el6_3.x86_64
php-xml-5.3.3-14.el6_3.x86_64
php-ldap-5.3.3-14.el6_3.x86_64
php-pgsql-5.3.3-14.el6_3.x86_64
php-common-5.3.3-14.el6_3.x86_64
php-5.3.3-14.el6_3.x86_64
php-gd-5.3.3-14.el6_3.x86_64
php-php-gettext-1.0.11-3.el6.noarch
php-pecl-imagick-2.2.2-4.el6.x86_64
php-intl-5.3.3-14.el6_3.x86_64
php-pecl-memcached-1.0.0-1.el6.x86_64
php-pdo-5.3.3-14.el6_3.x86_64
php-pspell-5.3.3-14.el6_3.x86_64
php-mysql-5.3.3-14.el6_3.x86_64
php-pecl-geoip-1.0.8-3.el6.x86_64
php-pear-1.9.4-4.el6.noarch
php-mbstring-5.3.3-14.el6_3.x86_64
php-devel-5.3.3-14.el6_3.x86_64
php-pecl-memcache-3.0.5-4.el6.x86_64
php-tidy-5.3.3-14.el6_3.x86_64
php-pecl-lzf-1.6.2-2.el6.x86_64
12/14/2012 06:15:33 AM adi (at) ddns (dot) com (dot) au Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ PHP ERROR: Argument 1 passed to IMP_Factory_MimeViewer::create() must be an instance of Horde_Mime_Part, null given
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I have a possibly malformed email which causes IMP to display "Error 
when communicating with the server" red alert when trying to select a 
particular message. It's some banking scam with a zipfile attached. I 
can send the raw message off-list, if needed.
The same message doesn't cause any errors in other clients tested so 
far - Claws Mail, Thunderbird, like Horde IMP 4.3.9, Atmail

Here are relevant log entries from Horde debug log and Apache error_log:

2012-12-14T17:05:41+11:00 DEBUG: HORDE Horde_Registry: retrieved app 
with cache ID 
horde_registry|app|1354578899|e9ac65fcc9e2dd22811abec38e965d3b [pid 
1974 on line 1969 of "/usr/share/pear/Horde/Registry.php"]
2012-12-14T17:05:41+11:00 DEBUG: HORDE [imp] Load config file 
(conf.php; app: imp) [pid 1974 on line 477 of 
"/usr/share/pear/Horde.php"]
2012-12-14T17:05:43+11:00 DEBUG: HORDE [imp] Load config file 
(mime_drivers.php; app: horde) [pid 1974 on line 477 of 
"/usr/share/pear/Horde.php"]
2012-12-14T17:05:43+11:00 DEBUG: HORDE [imp] Load config file 
(mime_drivers.php; app: imp) [pid 1974 on line 477 of 
"/usr/share/pear/Horde.php"]
2012-12-14T17:05:43+11:00 DEBUG: HORDE [imp] PHP ERROR: Argument 1 
passed to IMP_Factory_MimeViewer::create() must be an instance of 
Horde_Mime_Part, null given, called in 
/var/www/horde/imp/lib/Contents.php on line 1052 and defined [pid 1974 
on line 44 of "/var/www/horde/imp/lib/Factory/MimeViewer.php"]
2012-12-14T17:05:43+11:00 DEBUG: HORDE  1. 
Horde_Core_Ajax_Application->doAction() 
/var/www/horde/services/ajax.php:56
  2. call_user_func() /usr/share/pear/Horde/Core/Ajax/Application.php:155
  3. IMP_Ajax_Application_Handler_Common->showMessage()
  4. IMP_Ajax_Queue->message() 
/var/www/horde/imp/lib/Ajax/Application/Handler/Common.php:670
  5. IMP_Ajax_Application_ShowMessage->showMessage() 
/var/www/horde/imp/lib/Ajax/Queue.php:223
  6. IMP_Contents->getInlineOutput() 
/var/www/horde/imp/lib/Ajax/Application/ShowMessage.php:270
  7. IMP_Contents->canDisplay() /var/www/horde/imp/lib/Contents.php:1345
  8. IMP_Mime_Viewer_Related->canRender() 
/var/www/horde/imp/lib/Contents.php:1067
  9. IMP_Mime_Viewer_Related->_init() 
/var/www/horde/imp/lib/Mime/Viewer/Related.php:182
10. IMP_Contents->canDisplay() 
/var/www/horde/imp/lib/Mime/Viewer/Related.php:173
11. IMP_Factory_MimeViewer->create() /var/www/horde/imp/lib/Contents.php:1052
12. Horde_ErrorHandler::errorHandler() 
/var/www/horde/imp/lib/Factory/MimeViewer.php:44

2012-12-14T17:05:43+11:00 WARN: HORDE [imp] PHP ERROR: 
spl_object_hash() expects parameter 1 to be object, null given [pid 
1974 on line 48 of "/var/www/horde/imp/lib/Factory/MimeViewer.php"]
2012-12-14T17:05:43+11:00 DEBUG: HORDE  1. 
Horde_Core_Ajax_Application->doAction() 
/var/www/horde/services/ajax.php:56
  2. call_user_func() /usr/share/pear/Horde/Core/Ajax/Application.php:155
  3. IMP_Ajax_Application_Handler_Common->showMessage()
  4. IMP_Ajax_Queue->message() 
/var/www/horde/imp/lib/Ajax/Application/Handler/Common.php:670
  5. IMP_Ajax_Application_ShowMessage->showMessage() 
/var/www/horde/imp/lib/Ajax/Queue.php:223
  6. IMP_Contents->getInlineOutput() 
/var/www/horde/imp/lib/Ajax/Application/ShowMessage.php:270
  7. IMP_Contents->canDisplay() /var/www/horde/imp/lib/Contents.php:1345
  8. IMP_Mime_Viewer_Related->canRender() 
/var/www/horde/imp/lib/Contents.php:1067
  9. IMP_Mime_Viewer_Related->_init() 
/var/www/horde/imp/lib/Mime/Viewer/Related.php:182
10. IMP_Contents->canDisplay() 
/var/www/horde/imp/lib/Mime/Viewer/Related.php:173
11. IMP_Factory_MimeViewer->create() /var/www/horde/imp/lib/Contents.php:1052
12. spl_object_hash() /var/www/horde/imp/lib/Factory/MimeViewer.php:48
13. Horde_ErrorHandler::errorHandler()

2012-12-14T17:05:43+11:00 DEBUG: HORDE [imp] Max memory usage: 
17301504 bytes [pid 1974 on line 542 of 
"/usr/share/pear/Horde/Registry.php"]

Apache:
[Fri Dec 14 17:03:53 2012] [error] [client 192.168.1.200] PHP Fatal 
error:  Call to a member function getType() on a non-object in 
/var/www/horde/imp/lib/Factory/MimeViewer.php on line 54, referer: 
http://horde5test.local/imp/dynamic.php?page=mailbox

Saved Queries