From: Rusty N. <rn...@ri...> - 2004-12-30 18:18:32
|
>> >> I read through a bit of the source and so I turned off HTML display by >> default. That had no effect. What's odd is that the first time I go to >> that message, I can view the message, but not the attachment. >> However, if >> I then reload that frame or try to view that message a second time, I >> cannot do so. I get this error: >> >> Fatal error: Call to a member function on a non-object in >> /usr/home/rnejdl/www/squirrelmail/class/mime/Message.class.php on line >> 684 >> >> >> That seems to be the root of the problem. The other error I get >> appears to be caused by this problem, which is that somehow squirrelmail >> is not able to properly understand this message. >> >> I don't understand what this function does, though: >> >> >> >> function findDisplayEntity($entity = array(), $alt_order = >> array('text/plain ', 'text/html'), $strict=false) { >> >> >> >> What is the $entity array? Is that the message ID's coming from IMAP? >> >> > > function tries to find part of message that should be displayed. message > object is created with other functions that should be called before > '$message->findDisplayEntity(array());' call. > > > http://sourceforge.net/mailarchive/message.php?msg_id=8847155 > > > Help us to reproduce the problem, please. You and other people are saying > that you get error, but we can't reproduce that error with information > that you have provided. It is possible that error is triggered by very > specific message structure and the way imap server reports about it. If > you have corrupted message, send it the way, that it is not modified by > content filtering software or different smtp servers. > > You can also try inserting sm_print_r(message); call in src/read_body.php > and check message class structure > > RCS file: /cvsroot/squirrelmail/squirrelmail/src/read_body.php,v > retrieving revision 1.355 diff -u -r1.355 read_body.php --- read_body.php > 27 Dec 2004 15:02:27 -0000 1.355 > +++ read_body.php 29 Dec 2004 13:26:35 -0000 > @@ -875,6 +875,7 @@ > > > $messagebody = ''; > do_hook('read_body_top'); +sm_print_r($message); > if ($show_html_default == 1) { $ent_ar = > $message->findDisplayEntity(array()); > } else { > > > -- > Tomas > > > Tomas, Sorry for the delay in responding, but here's a gz'd version of that email message. I bet it works just fine for you, though. I will play around with the print mentioned above and perhaps that will help me debug this further. Rusty |