<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>HORDE [imp] Call to a member function getFlags()</title> 
  <pubDate>Fri, 10 Apr 2026 09:50:04 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14257</link> 
  <atom:link rel="self" type="application/rss+xml" title="HORDE [imp] Call to a member function getFlags()" href="https://bugs.horde.org/ticket/14257/rss" /> 
  <description>HORDE [imp] Call to a member function getFlags()</description> 
 
   
   
  <item> 
   <title>Hello all,

This error  occured only in basic mode and onl</title> 
   <description>Hello all,

This error  occured only in basic mode and only when we open the message and clik ?delete&quot;.
EMERG: HORDE [imp] Call to a member function getFlags() on a non-object [pid 25637 on line 68 of &quot;/www/horde/imp/lib/Maillog/Storage/Mdnsent.php&quot;


Thanks in advance.

Best regards.

Gerard Breiner
</description> 
   <pubDate>Tue, 16 Feb 2016 10:42:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89961</link> 
  </item> 
   
  <item> 
   <title>Hello,

It was in IMP 6.2.11 that this error occured. With</title> 
   <description>Hello,

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

&gt; Hello all,
&gt;
&gt; This error  occured only in basic mode and only when we open the 
&gt; message and clik ?delete&quot;.
&gt; EMERG: HORDE [imp] Call to a member function getFlags() on a 
&gt; non-object [pid 25637 on line 68 of 
&gt; &quot;/www/horde/imp/lib/Maillog/Storage/Mdnsent.php&quot;
&gt;
&gt;
&gt; Thanks in advance.
&gt;
&gt; Best regards.
&gt;
&gt; Gerard Breiner
&gt;
</description> 
   <pubDate>Wed, 17 Feb 2016 09:20:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89979</link> 
  </item> 
   
  <item> 
   <title>Sorry, When I tried again I was in  dynamic mode. If we are </title> 
   <description>Sorry, When I tried again I was in  dynamic mode. If we are in basic mode this error really occured. The upgrade from imp 6.2.11 to 6.2.12 doesn&#039;t solved this issue.

Best regards.

Gérard

&gt; Hello,
&gt;
&gt; It was in IMP 6.2.11 that this error occured. With 6.2.12 there is no 
&gt; problem. I just forgot to clear the cache after the upgrade. I run  
&gt; ./pear/pear -c ./pear.conf clear-cache and all works very fine. Sorry 
&gt; for the inconvenience...
&gt;
&gt; Many thanks for having solved this issue.
&gt;
&gt; Gérard Breiner
&gt;
&gt;&gt; Hello all,
&gt;&gt;
&gt;&gt; This error  occured only in basic mode and only when we open the
&gt;&gt; message and clik ?delete&quot;.
&gt;&gt; EMERG: HORDE [imp] Call to a member function getFlags() on a
&gt;&gt; non-object [pid 25637 on line 68 of
&gt;&gt; &quot;/www/horde/imp/lib/Maillog/Storage/Mdnsent.php&quot;
&gt;&gt;
&gt;&gt;
&gt;&gt; Thanks in advance.
&gt;&gt;
&gt;&gt; Best regards.
&gt;&gt;
&gt;&gt; Gerard Breiner
&gt;&gt;
&gt;
</description> 
   <pubDate>Wed, 17 Feb 2016 10:32:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89981</link> 
  </item> 
   
  <item> 
   <title>Is this happening on every message?</title> 
   <description>Is this happening on every message?</description> 
   <pubDate>Wed, 17 Feb 2016 10:40:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89982</link> 
  </item> 
   
  <item> 
   <title>&gt; Is this happening on every message?

Yes this issue happ</title> 
   <description>&gt; Is this happening on every message?

Yes this issue happens for every message. Nevertheless the message is deleted but it is not in the trash.
</description> 
   <pubDate>Wed, 17 Feb 2016 10:48:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89983</link> 
  </item> 
   
  <item> 
   <title>Cannot reproduce.
I tried with maillog enabled and disabled</title> 
   <description>Cannot reproduce.
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.</description> 
   <pubDate>Wed, 17 Feb 2016 11:46:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89984</link> 
  </item> 
   
  <item> 
   <title>&gt; Cannot reproduce.
&gt; I tried with maillog enabled and disa</title> 
   <description>&gt; Cannot reproduce.
&gt; I tried with maillog enabled and disabled, with or without trash 
&gt; folder, from mailbox view and message view, with or without returning 
&gt; to mailbox after deletion.

I forgot to precise that this error happens only in basic mode when option ?Move deleted messages to your Trash mailbox instead of marking them as deleted in the current mailbox?&quot; But if I did understand you have checked this option too.

Thank you for having considered this problem.

Gerard








</description> 
   <pubDate>Wed, 17 Feb 2016 14:02:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t89985</link> 
  </item> 
   
  <item> 
   <title>I cannot reproduce either.</title> 
   <description>I cannot reproduce either.</description> 
   <pubDate>Wed, 02 Mar 2016 18:30:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90081</link> 
  </item> 
   
  <item> 
   <title>&gt; I cannot reproduce either.

In order to track this issue</title> 
   <description>&gt; I cannot reproduce either.

In order to track this issue, I created a new database and  made a new 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&amp;buid=122924&amp;page=message

Thanks.

Gerard</description> 
   <pubDate>Thu, 03 Mar 2016 11:21:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90095</link> 
  </item> 
   
  <item> 
   <title>Try placing:

Horde::debug(array($mbox, $uid));

before </title> 
   <description>Try placing:

Horde::debug(array($mbox, $uid));

before the &quot;try {&quot; line on line 64 of Mdnsent.php (the file mentioned in your error). It doesn&#039;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&#039;s temporary directory.</description> 
   <pubDate>Thu, 03 Mar 2016 14:06:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90096</link> 
  </item> 
   
  <item> 
   <title>&gt; Try placing:
&gt;
&gt; Horde::debug(array($mbox, $uid));
&gt;
&gt;</title> 
   <description>&gt; Try placing:
&gt;
&gt; Horde::debug(array($mbox, $uid));
&gt;
&gt; before the &quot;try {&quot; line on line 64 of Mdnsent.php (the file mentioned 
&gt; in your error). It doesn&#039;t make any sense to me why this would be 
&gt; called after deleting a message, this line will output a stack trace 
&gt; in a file named horde_debug.txt in your system&#039;s temporary directory.
 
Here is in attachment the file horde_debug.txt I get.

Thanks.

Gerard</description> 
   <pubDate>Thu, 03 Mar 2016 14:27:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90097</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Try placing:
&gt;&gt;
&gt;&gt; Horde::debug(array($mbox, $uid));
&gt;</title> 
   <description>&gt;&gt; Try placing:
&gt;&gt;
&gt;&gt; Horde::debug(array($mbox, $uid));
&gt;&gt;
&gt;&gt; before the &quot;try {&quot; line on line 64 of Mdnsent.php (the file mentioned
&gt;&gt; in your error). It doesn&#039;t make any sense to me why this would be
&gt;&gt; called after deleting a message, this line will output a stack trace
&gt;&gt; in a file named horde_debug.txt in your system&#039;s temporary directory.
&gt;
&gt; Here is in attachment the file horde_debug.txt I get.
&gt;
&gt; Thanks.
&gt;
&gt; Gerard


Here is the file this time....</description> 
   <pubDate>Thu, 03 Mar 2016 14:30:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90098</link> 
  </item> 
   
  <item> 
   <title>So, this error occurs *after* the email is deleted, while it</title> 
   <description>So, this error occurs *after* the email is deleted, while it attempting to load the next email?</description> 
   <pubDate>Thu, 03 Mar 2016 16:24:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90099</link> 
  </item> 
   
  <item> 
   <title>Try this next. You can remove the previously added debug sta</title> 
   <description>Try this next. You can remove the previously added debug statement:

Horde::debug($imp_imap-&gt;fetch(
  $mbox,
  $query,
  array(
    &#039;ids&#039; =&gt; $imp_imap-&gt;getIdsOb($uid)
  )
));

Put this in the same place as the previous debug statement.</description> 
   <pubDate>Thu, 03 Mar 2016 16:27:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90100</link> 
  </item> 
   
  <item> 
   <title>&gt; Try this next. You can remove the previously added debug s</title> 
   <description>&gt; Try this next. You can remove the previously added debug statement:
&gt;
&gt; Horde::debug($imp_imap-&gt;fetch(
&gt;   $mbox,
&gt;   $query,
&gt;   array(
&gt;     &#039;ids&#039; =&gt; $imp_imap-&gt;getIdsOb($uid)
&gt;   )
&gt; ));
&gt;
&gt; Put this in the same place as the previous debug statement.

I&#039;ve followed your advices... Here is the new file in attachment.

Thanks.

Gerard  
</description> 
   <pubDate>Thu, 03 Mar 2016 23:01:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90101</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Try this next. You can remove the previously added debug </title> 
   <description>&gt;&gt; Try this next. You can remove the previously added debug statement:
&gt;&gt;
&gt;&gt; Horde::debug($imp_imap-&gt;fetch(
&gt;&gt;   $mbox,
&gt;&gt;   $query,
&gt;&gt;   array(
&gt;&gt;     &#039;ids&#039; =&gt; $imp_imap-&gt;getIdsOb($uid)
&gt;&gt;   )
&gt;&gt; ));
&gt;&gt;
&gt;&gt; Put this in the same place as the previous debug statement.
&gt;
&gt; I&#039;ve followed your advices... Here is the new file in attachment.
&gt;
&gt; Thanks.
&gt;
&gt; Gerard
&gt;

After testing, I can say this issue has appeared with imp v6.2.0alpha1 whereas imp-6.1.8 works very fine.

Best regards.

Gerard</description> 
   <pubDate>Fri, 04 Mar 2016 22:36:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90109</link> 
  </item> 
   
  <item> 
   <title>&gt; So, this error occurs *after* the email is deleted, while </title> 
   <description>&gt; So, this error occurs *after* the email is deleted, while it 
&gt; attempting to load the next email?
Yes it is...

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 =&gt;
  array(1) {
    [123069] =&gt;
    class Horde_Imap_Client_Data_Fetch#611 (1) {
      protected $_data =&gt;
      array(3) {
        ...
      }
    }
  }
  protected $_keyType =&gt;
  int(2)
  protected $_obClass =&gt;
  string(28) &quot;Horde_Imap_Client_Data_Fetch&quot;
}
 
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 =&gt;
  array(0) {
  }
  protected $_keyType =&gt;
  int(2)
  protected $_obClass =&gt;
  string(28) &quot;Horde_Imap_Client_Data_Fetch&quot;
}

The backtrace is the same in each case:

Backtrace:
1. IMP_Basic_Base-&gt;__construct() /www/horde5/imp/basic.php:34
2. IMP_Basic_Message-&gt;_init() /www/horde5/imp/lib/Basic/Base.php:69
3. IMP_Maillog-&gt;getLog() /www/horde5/imp/lib/Basic/Message.php:913
4. IMP_Maillog_Storage_Composite-&gt;getLog() /www/horde5/imp/lib/Maillog.php:67
5. IMP_Maillog_Storage_Mdnsent-&gt;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</description> 
   <pubDate>Wed, 09 Mar 2016 13:42:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90150</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; So, this error occurs *after* the email is deleted, while</title> 
   <description>&gt;&gt; So, this error occurs *after* the email is deleted, while it
&gt;&gt; attempting to load the next email?
&gt; Yes it is...
&gt;
&gt; To summarize :
&gt;
&gt; I applied Horde::debug as you ask me, it I get a file horde_debug.txt:
&gt;
&gt; Just before I delete the mail, I get from horde_debug.txt this information :
&gt;
&gt; ----------------------------------------
&gt; class Horde_Imap_Client_Fetch_Results#629 (3) {
&gt;   protected $_data =&gt;
&gt;   array(1) {
&gt;     [123069] =&gt;
&gt;     class Horde_Imap_Client_Data_Fetch#611 (1) {
&gt;       protected $_data =&gt;
&gt;       array(3) {
&gt;         ...
&gt;       }
&gt;     }
&gt;   }
&gt;   protected $_keyType =&gt;
&gt;   int(2)
&gt;   protected $_obClass =&gt;
&gt;   string(28) &quot;Horde_Imap_Client_Data_Fetch&quot;
&gt; }
&gt;
&gt; After having deleted the message, I get from horde_debug.txt that 
&gt; $_data is empty:
&gt;
&gt;  class Horde_Imap_Client_Fetch_Results#1130 (3) {
&gt;   protected $_data =&gt;
&gt;   array(0) {
&gt;   }
&gt;   protected $_keyType =&gt;
&gt;   int(2)
&gt;   protected $_obClass =&gt;
&gt;   string(28) &quot;Horde_Imap_Client_Data_Fetch&quot;
&gt; }
&gt;
&gt; The backtrace is the same in each case:
&gt;
&gt; Backtrace:
&gt; 1. IMP_Basic_Base-&gt;__construct() /www/horde5/imp/basic.php:34
&gt; 2. IMP_Basic_Message-&gt;_init() /www/horde5/imp/lib/Basic/Base.php:69
&gt; 3. IMP_Maillog-&gt;getLog() /www/horde5/imp/lib/Basic/Message.php:913
&gt; 4. IMP_Maillog_Storage_Composite-&gt;getLog() /www/horde5/imp/lib/Maillog.php:67
&gt; 5. IMP_Maillog_Storage_Mdnsent-&gt;getLog() 
&gt; /www/horde5/imp/lib/Maillog/Storage/Composite.php:64
&gt; 6. Horde::debug() /www/horde5/imp/lib/Maillog/Storage/Mdnsent.php:70
&gt;
&gt; I guess that getLog()  should not be triggered again ?
&gt;
&gt; Best regards.
&gt;
&gt; Gerard Breiner

It seems that IMP_Maillog class is only used in basic mode ?
Therefore I replaced Maillog.php with Maillog.php from imp-6.1.8. I know it&#039;s not the better way but it works very fine like this. 

Best regards.

Gérard Breiner</description> 
   <pubDate>Wed, 16 Mar 2016 10:13:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90190</link> 
  </item> 
   
  <item> 
   <title>Can now reproduce. This can happen when QRESYNC/CONDSTORE is</title> 
   <description>Can now reproduce. This can happen when QRESYNC/CONDSTORE is unavailable on the server.</description> 
   <pubDate>Mon, 04 Apr 2016 14:51:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90282</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_2):

commit df97c</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_2):

commit df97cdb84d954d44abb47105340055c724449eaf
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Mon Apr 4 11:05:56 2016 -0400

    Bug: 14257 Protect 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</description> 
   <pubDate>Mon, 04 Apr 2016 15:08:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90283</link> 
  </item> 
   
  <item> 
   <title>IMP 6.2.14</title> 
   <description>IMP 6.2.14</description> 
   <pubDate>Mon, 04 Apr 2016 15:08:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90284</link> 
  </item> 
   
  <item> 
   <title>&gt; IMP 6.2.14

Many thanks Michael. It works very fine.

</title> 
   <description>&gt; IMP 6.2.14

Many thanks Michael. It works very fine.

Gérard</description> 
   <pubDate>Tue, 05 Apr 2016 10:01:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t90293</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_2):

commit 43cf1</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_2):

commit 43cf18a140b3294e3e31e2bf698506975ef59700
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Mon, 04 Apr 2016 11:05:56 -0400

Bug: 14257 Protect 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</description> 
   <pubDate>Fri, 20 Oct 2017 20:33:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14257#t92340</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
