<?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>PHP ERROR: array_flip(): Can only flip STRING and INTEGER values!  on line 182 of framework/Imap_Client/lib/Horde/Imap/Client/Ids.php</title> 
  <pubDate>Sun, 05 Apr 2026 15:59:05 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12232</link> 
  <atom:link rel="self" type="application/rss+xml" title="PHP ERROR: array_flip(): Can only flip STRING and INTEGER values!  on line 182 of framework/Imap_Client/lib/Horde/Imap/Client/Ids.php" href="https://bugs.horde.org/ticket/12232/rss" /> 
  <description>PHP ERROR: array_flip(): Can only flip STRING and INTEGER values!  on line 182 of framework/Imap_Client/lib/Horde/Imap/Client/Ids.php</description> 
 
   
   
  <item> 
   <title>It seems android devices (nexus 7 and galaxy s3) are working</title> 
   <description>It seems android devices (nexus 7 and galaxy s3) are working just fine with the latest activesync (v14.1), while my wifes nokia lumia 820 generates the following error while trying to synchronize mails:
Used git revision: a9450a21b521361da536f15efcd4d96cd519bc9f

PHP ERROR: array_flip(): Can only flip STRING and INTEGER values! [ on line 182 of &quot;/framework/Imap_Client/lib/Horde/Imap/Client/Ids.php&quot;

Related or unrelated, the windows phone is able to list/show emails, but the email body is always completely blank.</description> 
   <pubDate>Wed, 01 May 2013 21:45:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t77956</link> 
  </item> 
   
  <item> 
   <title>Can you provide a stack trace and/or the value of $this-&gt;_id</title> 
   <description>Can you provide a stack trace and/or the value of $this-&gt;_ids when you get this error?</description> 
   <pubDate>Wed, 01 May 2013 21:54:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t77958</link> 
  </item> 
   
  <item> 
   <title>&gt; Related or unrelated, the windows phone is able to list/sh</title> 
   <description>&gt; Related or unrelated, the windows phone is able to list/show emails, 
&gt; but the email body is always completely blank.

There was another report, Bug: 12203 from a Windows 8 device. The provided synclog didn&#039;t show anything wrong though. If you can provide a synclog please attach it, and reopen, Bug: 12203.

Thanks.</description> 
   <pubDate>Wed, 01 May 2013 21:58:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t77959</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you provide a stack trace and/or the value of $this-&gt;_</title> 
   <description>&gt; Can you provide a stack trace and/or the value of $this-&gt;_ids when 
&gt; you get this error?

Ok, this seems to describe why the flip doesn&#039;t work ---&gt; on windows client device
the _ids is an array as show below:

windows phone 8:

[03-May-2013 05:57:36 UTC] ERROR: _ids=[Array]
[03-May-2013 05:57:36 UTC] ERROR: array=[1]
[03-May-2013 05:57:36 UTC] ERROR: array=[2]
[03-May-2013 05:57:36 UTC] ERROR: array=[3]
[03-May-2013 05:57:36 UTC] ERROR: array=[4]
[03-May-2013 05:57:36 UTC] ERROR: array=[5]
[03-May-2013 05:57:36 UTC] ERROR: array=[6]
[03-May-2013 05:57:36 UTC] ERROR: array=[7]
[03-May-2013 05:57:36 UTC] ERROR: array=[8]
[03-May-2013 05:57:36 UTC] ERROR: array=[9]
[03-May-2013 05:57:36 UTC] ERROR: array=[10]
[03-May-2013 05:57:36 UTC] ERROR: array=[11]
[03-May-2013 05:57:36 UTC] ERROR: array=[12]
[03-May-2013 05:57:36 UTC] ERROR: array=[13]
[03-May-2013 05:57:36 UTC] ERROR: array=[14]
[03-May-2013 05:57:36 UTC] ERROR: array=[15]
[03-May-2013 05:57:36 UTC] ERROR: array=[16]
[03-May-2013 05:57:36 UTC] ERROR: array=[17]
[03-May-2013 05:57:36 UTC] ERROR: array=[18]
[03-May-2013 05:57:36 UTC] ERROR: array=[19]
[03-May-2013 05:57:36 UTC] ERROR: array=[20]

An android device:

[03-May-2013 05:57:36 UTC] ERROR: _ids=[Array]
[03-May-2013 05:57:36 UTC] ERROR: array=[386]

The output is retrieved using the following lines:

                    $errmsg=$this-&gt;_ids;
                    error_log(&quot;ERROR: _ids=[&quot; . $errmsg . &quot;]&quot;, 0);
                    foreach($this-&gt;_ids as $foobar) {
                        error_log(&quot;ERROR: array=[&quot; . $foobar . &quot;]&quot;, 0);
                    }
</description> 
   <pubDate>Fri, 03 May 2013 06:05:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t77981</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Related or unrelated, the windows phone is able to list/s</title> 
   <description>&gt;&gt; Related or unrelated, the windows phone is able to list/show emails,
&gt;&gt; but the email body is always completely blank.
&gt;
&gt; There was another report, Bug: 12203 from a Windows 8 device. The 
&gt; provided synclog didn&#039;t show anything wrong though. If you can 
&gt; provide a synclog please attach it, and reopen, Bug: 12203.

Ok, no wonder the log didn&#039;t show anything. There&#039;s something fishy going on as after I changed the activesync version to v14.1 and _rebooted_ the windows phone, it suddenly started to work just fine.
Now all the message bodies are being shown just fine (new &amp; all, doesn&#039;t matter).
</description> 
   <pubDate>Fri, 03 May 2013 06:08:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t77982</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Can you provide a stack trace and/or the value of $this-&gt;</title> 
   <description>&gt;&gt; Can you provide a stack trace and/or the value of $this-&gt;_ids when
&gt;&gt; you get this error?
&gt;
&gt; Ok, this seems to describe why the flip doesn&#039;t work ---&gt; on windows 
&gt; client device

BTW, you can simply use print_r($this-&gt;_ids, true) to get a printable copy of the array values - or better yet, use Horde::debug($this-&gt;_ids); and this will output to a file named horde_debut.txt in your server&#039;s tmp directory.

This doesn&#039;t explain why the flip doesn&#039;t work. They are both arrays. The error complains that the value is NOT an array. We need both the value of the ids array as well as the backtrace when it doesn&#039;t equal an array. You can get a backtrace via either debug_bactrace() or just use Horde::debug which automatically generates it. 

</description> 
   <pubDate>Fri, 03 May 2013 13:27:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78003</link> 
  </item> 
   
  <item> 
   <title>&gt; Ok, no wonder the log didn&#039;t show anything. There&#039;s someth</title> 
   <description>&gt; Ok, no wonder the log didn&#039;t show anything. There&#039;s something fishy 
&gt; going on as after I changed the activesync version to v14.1 and 
&gt; _rebooted_ the windows phone, it suddenly started to work just fine.
&gt; Now all the message bodies are being shown just fine (new &amp; all, 
&gt; doesn&#039;t matter).

Yeah, EAS version changes do not seem to be picked up fully by clients automatically. They sometimes require a reboot, or in some cases, re-creating the account.</description> 
   <pubDate>Fri, 03 May 2013 13:29:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78004</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Can you provide a stack trace and/or the value of $this-</title> 
   <description>&gt;&gt;&gt; Can you provide a stack trace and/or the value of $this-&gt;_ids when
&gt;&gt;&gt; you get this error?
&gt;&gt;
&gt;&gt; Ok, this seems to describe why the flip doesn&#039;t work ---&gt; on windows
&gt;&gt; client device
&gt;
&gt; BTW, you can simply use print_r($this-&gt;_ids, true) to get a printable 
&gt; copy of the array values - or better yet, use 
&gt; Horde::debug($this-&gt;_ids); and this will output to a file named 
&gt; horde_debut.txt in your server&#039;s tmp directory.
&gt;
&gt; This doesn&#039;t explain why the flip doesn&#039;t work. They are both arrays. 
&gt; The error complains that the value is NOT an array. We need both the 
&gt; value of the ids array as well as the backtrace when it doesn&#039;t equal 
&gt; an array. You can get a backtrace via either debug_bactrace() or just 
&gt; use Horde::debug which automatically generates it.

Ok, thanks for the pointers. Here is some more info &amp; backtrace:

2013-05-05T11:39:18+03:00 DEBUG: Variable information:
array(19) {
  [0]=&gt;
  array(2) {
    [&quot;read&quot;]=&gt;
    int(0)
    [&quot;flagged&quot;]=&gt;
    int(0)
  }
  [1]=&gt;
  int(43400)
  [2]=&gt;
  int(43405)
  [3]=&gt;
  int(43421)
  [4]=&gt;
  int(43422)
  [5]=&gt;
  int(43423)
  [6]=&gt;
  int(43424)
  [7]=&gt;
  int(43425)
  [8]=&gt;
  int(43426)
  [9]=&gt;
  int(43427)
  [10]=&gt;
  int(43429)
  [11]=&gt;
  int(43431)
  [12]=&gt;
  int(43432)
  [13]=&gt;
  int(43433)
  [14]=&gt;
  int(43440)
  [15]=&gt;
  int(43441)
  [16]=&gt;
  int(43442)
  [17]=&gt;
  int(43443)
  [18]=&gt;
  int(43444)
}

Backtrace:
 1. Horde_Rpc_ActiveSync-&gt;getResponse() horde/rpc.php:156
 2. Horde_ActiveSync-&gt;handleRequest() framework/Rpc/lib/Horde/Rpc/ActiveSync.php:141
 3. Horde_ActiveSync_Request_Base-&gt;handle() framework/ActiveSync/lib/Horde/ActiveSync.php:848
 4. Horde_ActiveSync_Request_Sync-&gt;_handle() framework/ActiveSync/lib/Horde/ActiveSync/Request/Base.php:236
 5. Horde_ActiveSync_Sync-&gt;init() framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php:375
 6. Horde_ActiveSync_State_Sql-&gt;getChanges() framework/ActiveSync/lib/Horde/ActiveSync/Sync.php:149
 7. Horde_Core_ActiveSync_Driver-&gt;getServerChanges() framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php:825
 8. Horde_ActiveSync_Imap_Adapter-&gt;getMessageChanges() framework/Core/lib/Horde/Core/ActiveSync/Driver.php:648
 9. Horde_Imap_Client_Ids-&gt;__construct() framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php:328
10. Horde_Imap_Client_Ids-&gt;add() framework/Imap_Client/lib/Horde/Imap/Client/Ids.php:82
11. Horde::debug() framework/Imap_Client/lib/Horde/Imap/Client/Ids.php:180
</description> 
   <pubDate>Sun, 05 May 2013 09:01:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78012</link> 
  </item> 
   
  <item> 
   <title>Probably duplicate of Bug: 12239</title> 
   <description>Probably duplicate of Bug: 12239</description> 
   <pubDate>Mon, 06 May 2013 16:00:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78021</link> 
  </item> 
   
  <item> 
   <title>&gt; Probably duplicate of Bug: 12239

Might be. Didn&#039;t get f</title> 
   <description>&gt; Probably duplicate of Bug: 12239

Might be. Didn&#039;t get fixed though with the latest commits. I&#039;ve now updated to 75511fd7e5a80b85efaf19bef67d992b004df4a1 and the bug still persists.
</description> 
   <pubDate>Mon, 06 May 2013 20:17:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78031</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Probably duplicate of Bug: 12239
&gt;
&gt; Might be. Didn&#039;t g</title> 
   <description>&gt;&gt; Probably duplicate of Bug: 12239
&gt;
&gt; Might be. Didn&#039;t get fixed though with the latest commits. I&#039;ve now 
&gt; updated to 75511fd7e5a80b85efaf19bef67d992b004df4a1 and the bug still 
&gt; persists.

Did you recreate the account on the phone?</description> 
   <pubDate>Mon, 06 May 2013 20:21:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78032</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Probably duplicate of Bug: 12239
&gt;&gt;
&gt;&gt; Might be. Didn&#039;</title> 
   <description>&gt;&gt;&gt; Probably duplicate of Bug: 12239
&gt;&gt;
&gt;&gt; Might be. Didn&#039;t get fixed though with the latest commits. I&#039;ve now
&gt;&gt; updated to 75511fd7e5a80b85efaf19bef67d992b004df4a1 and the bug still
&gt;&gt; persists.
&gt;
&gt; Did you recreate the account on the phone?

No, I didn&#039;t figure out that it was necessary. However, I&#039;ve now re-tested and the error message is really gone.

Thanks!

</description> 
   <pubDate>Sat, 11 May 2013 13:52:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12232#t78060</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
