User receiving getEntity error in view_text.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Got a report from one user who says he occasionally receives the 
following error when viewing email as text:

"Fatal
error: Call to a member function getEntity() on a non-object in
SM_BASE/src/view_text.php"

The only piece of information I have is that the user makes "heavy" use 
of tabs with Squirrelmail.  I've been unable to reproduce the error 
other than by visiting view_text.php of a given message without first 
viewing the full message (which seems like an unlikely thing for a user 
to do)  My best guess as to what's causing this is some sort of session 
corruption/truncation, or the user having a "stale" tab he revisits 
after the session expires.

Has anyone else run into this? Any ideas on what behavior could be 
causing this?

I've patched a work around like so:

if (!is_object($message)) {
   $message = sqimap_get_message($imapConnection, $passed_id, $mailbox);
}

Which will fetch the message if it isn't available in what appears to be 
a cache of messages in the session.

But I'm not sure how appropriate it is to do so (it seems to work well 
enough, and at the very least stops the user from seeing the error).

Any thoughts?

Matt






------------------------------------------------------------------------------

-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux