Summary | HORDE [imp] Call to a member function getFlags() |
Queue | IMP |
Queue Version | 6.2.12 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | gerard.breiner (at) ias (dot) u-psud (dot) fr |
Created | 02/16/2016 (3428 days ago) |
Due | |
Updated | 10/20/2017 (2816 days ago) |
Assigned | 04/02/2016 (3382 days ago) |
Resolved | 04/04/2016 (3380 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
commit 43cf18a140b3294e3e31e2bf698506975ef59700
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon, 04 Apr 2016 11:05:56 -0400
Bug: 14257Protect against empty fetch results.This can happen when deleting a message in Basic view when
the IMAP server does not support CONDSTORE or QRESYNC.
M lib/Maillog/Storage/Mdnsent.php
https://github.com/horde/imp/commit/43cf18a140b3294e3e31e2bf698506975ef59700
Gérard
State ⇒ Resolved
commit df97cdb84d954d44abb47105340055c724449eaf
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon Apr 4 11:05:56 2016 -0400
Bug: 14257Protect against empty fetch results.This can happen when deleting a message in Basic view when
the IMAP server does not support CONDSTORE or QRESYNC.
imp/lib/Maillog/Storage/Mdnsent.php | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
http://github.com/horde/horde/commit/df97cdb84d954d44abb47105340055c724449eaf
unavailable on the server.
State ⇒ Assigned
Therefore I replaced Maillog.php with Maillog.php from imp-6.1.8. I
know it's not the better way but it works very fine like this.
Best regards.
Gérard Breiner
attempting to load the next email?
To summarize :
I applied Horde::debug as you ask me, it I get a file horde_debug.txt:
Just before I delete the mail, I get from horde_debug.txt this information :
----------------------------------------
class Horde_Imap_Client_Fetch_Results#629 (3) {
protected $_data =>
array(1) {
[123069] =>
class Horde_Imap_Client_Data_Fetch#611 (1) {
protected $_data =>
array(3) {
...
}
}
}
protected $_keyType =>
int(2)
protected $_obClass =>
string(28) "Horde_Imap_Client_Data_Fetch"
}
After having deleted the message, I get from horde_debug.txt that
$_data is empty:
class Horde_Imap_Client_Fetch_Results#1130 (3) {
protected $_data =>
array(0) {
}
protected $_keyType =>
int(2)
protected $_obClass =>
string(28) "Horde_Imap_Client_Data_Fetch"
}
The backtrace is the same in each case:
Backtrace:
1. IMP_Basic_Base->__construct() /www/horde5/imp/basic.php:34
2. IMP_Basic_Message->_init() /www/horde5/imp/lib/Basic/Base.php:69
3. IMP_Maillog->getLog() /www/horde5/imp/lib/Basic/Message.php:913
4. IMP_Maillog_Storage_Composite->getLog() /www/horde5/imp/lib/Maillog.php:67
5. IMP_Maillog_Storage_Mdnsent->getLog()
/www/horde5/imp/lib/Maillog/Storage/Composite.php:64
6. Horde::debug() /www/horde5/imp/lib/Maillog/Storage/Mdnsent.php:70
I guess that getLog() should not be triggered again ?
Best regards.
Gerard Breiner
whereas imp-6.1.8 works very fine.
Best regards.
Gerard
New Attachment: horde_debug[1].txt
Thanks.
Gerard
Horde::debug($imp_imap->fetch(
$mbox,
$query,
array(
'ids' => $imp_imap->getIdsOb($uid)
)
));
Put this in the same place as the previous debug statement.
attempting to load the next email?
New Attachment: horde_debug.txt
Thanks.
Gerard
State ⇒ Feedback
Horde::debug(array($mbox, $uid));
before the "try {" line on line 64 of Mdnsent.php (the file mentioned
in your error). It doesn't make any sense to me why this would be
called after deleting a message, this line will output a stack trace
in a file named horde_debug.txt in your system's temporary directory.
fresh install of horde by pear and I installed only imp. What i can
say is this issue happens again.
Not when I delete the message from the list :
https://myserver/imp/basic.php?page=mailbox
This error happens when I delete the message from :
https://myserver/imp/basic.php?mailbox=SU5CT1g&buid=122924&page=message
Thanks.
Gerard
State ⇒ Not Reproducible
I tried with maillog enabled and disabled, with or without trash
folder, from mailbox view and message view, with or without
returning to mailbox after deletion.
option ?Move deleted messages to your Trash mailbox instead of marking
them as deleted in the current mailbox?" But if I did understand you
have checked this option too.
Thank you for having considered this problem.
Gerard
Priority ⇒ 1. Low
I tried with maillog enabled and disabled, with or without trash
folder, from mailbox view and message view, with or without returning
to mailbox after deletion.
deleted but it is not in the trash.
State ⇒ Feedback
mode this error really occured. The upgrade from imp 6.2.11 to 6.2.12
doesn't solved this issue.
Best regards.
Gérard
It was in IMP 6.2.11 that this error occured. With 6.2.12 there is no
problem. I just forgot to clear the cache after the upgrade. I run
./pear/pear -c ./pear.conf clear-cache and all works very fine. Sorry
for the inconvenience...
Many thanks for having solved this issue.
Gérard Breiner
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ HORDE [imp] Call to a member function getFlags()
Due ⇒ 02/16/2016
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
This error occured only in basic mode and only when we open the
message and clik ?delete".
EMERG: HORDE [imp] Call to a member function getFlags() on a
non-object [pid 25637 on line 68 of
"/www/horde/imp/lib/Maillog/Storage/Mdnsent.php"
Thanks in advance.
Best regards.
Gerard Breiner