[imp] Issue with imp 4.0.4

tom burkart imp at aussec.com
Thu Jun 1 20:23:24 PDT 2006


Hi,
Every now and then IMP 4.0.4 fails to load a message that contains images 
with the following PHP error message:

[02-Jun-2006 11:02:23] PHP Fatal error:  Call to a member function on a 
non-object in <path to horde>/horde/imp/lib/MIME/Viewer/images.php on line 
228

The line in question is:
   $ret = $img->loadString(1, $this->mime_part->getContents());
Where $this->mime_part->getContents() correctly returns the image data but 
$img->loadString(...) is the one that causes the error.

The sequence of events is as follows:
First time:
   The compound "if" on line 220 takes the "gd" option,
   then successfully processes the image

Second time:
   The compound "if" on line 220 takes the "gd" option,
   then bombs out at line 228

As far as I can tell all the 5 JPEG images are properly formatted images.

Please don't tell me to upgrade to 4.1.x as that one has problems talking 
to the uw-imap server (both an old one and the latest one).  Have to do 
more work on that...

tom.


More information about the imp mailing list