<?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>AcitveSync is not longer working properly after PHP upgrade to 7.3 -&gt; mailbox subfolders are show as empty via EAS &amp; Outlook 365</title> 
  <pubDate>Wed, 08 Apr 2026 17:39:11 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14972</link> 
  <atom:link rel="self" type="application/rss+xml" title="AcitveSync is not longer working properly after PHP upgrade to 7.3 -&gt; mailbox subfolders are show as empty via EAS &amp; Outlook 365" href="https://bugs.horde.org/ticket/14972/rss" /> 
  <description>AcitveSync is not longer working properly after PHP upgrade to 7.3 -&gt; mailbox subfolders are show as empty via EAS &amp; Outlook 365</description> 
 
   
   
  <item> 
   <title>Hi,

I upgraded my PHP to 7.3.

Now ActiveSync is not lo</title> 
   <description>Hi,

I upgraded my PHP to 7.3.

Now ActiveSync is not longer workling corrctly with Outlook 365, It seems to be related.

I looked in the Horde log and lots of this errors:

---snip---
2019-12-22T18:33:12+01:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 28532 on line 371 of &quot;/usr/share/php/Horde/ActiveSync/State/Sql.php&quot;]
2019-12-22T18:33:13+01:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 28532 on line 371 of &quot;/usr/share/php/Horde/ActiveSync/State/Sql.php&quot;]
2019-12-22T18:33:13+01:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 28532 on line 371 of &quot;/usr/share/php/Horde/ActiveSync/State/Sql.php&quot;]
2019-12-22T18:43:40+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 30661 on line 76 of &quot;/usr/share/php/Horde/Support/CaseInsensitiveArray.php&quot;]
2019-12-22T20:28:23+01:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 1226 on line 3500 of &quot;/usr/share/php/Horde/Core/ActiveSync/Driver.php&quot;]
2019-12-22T20:28:25+01:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 2128 on line 3500 of &quot;/usr/share/php/Horde/Core/ActiveSync/Driver.php&quot;]
2019-12-22T22:36:06+03:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 4239 on line 3500 of &quot;/usr/share/php/Horde/Core/ActiveSync/Driver.php&quot;]
2019-12-22T22:36:08+03:00 WARN: HORDE PHP ERROR: count(): Parameter must be an array or an object that implements Countable [pid 24965 on line 3500 of &quot;/usr/share/php/Horde/Core/ActiveSync/Driver.php&quot;]
2019-12-22T21:16:35+01:00 ERR: HORDE SQL QUERY FAILED: SQLSTATE[23505]: Unique violation: 7 FEHLER:  doppelter Schlüsselwert verletzt Unique-Constraint »horde_activesync_state_pkey«
DETAIL:  Schlüssel »(sync_key)=({59e8ac5e-5828-467f-980e-042788f3a8e7}15728)« existiert bereits.
        INSERT INTO &quot;horde_activesync_state&quot; (&quot;sync_key&quot;, &quot;sync_data&quot;,
          &quot;sync_devid&quot;, &quot;sync_mod&quot;, &quot;sync_folderid&quot;, &quot;sync_user&quot;,
          &quot;sync_pending&quot;, &quot;sync_timestamp&quot;) VALUES (?, :binary0, ?, ?, ?, ?, ?,
          ?) [pid 17580 on line 282 of &quot;/usr/share/php/Horde/Db/Adapter/Pdo/Base.php&quot;]
2019-12-22T21:16:35+01:00 ERR: HORDE SQL QUERY FAILED: SQLSTATE[23505]: Unique violation: 7 FEHLER:  doppelter Schlüsselwert verletzt Unique-Constraint »horde_activesync_state_pkey«
DETAIL:  Schlüssel »(sync_key)=({59e8ac5e-79b8-4f6a-a6b0-042788f3a8e7}7598)« existiert bereits.
        INSERT INTO &quot;horde_activesync_state&quot; (&quot;sync_key&quot;, &quot;sync_data&quot;,
          &quot;sync_devid&quot;, &quot;sync_mod&quot;, &quot;sync_folderid&quot;, &quot;sync_user&quot;,
          &quot;sync_pending&quot;, &quot;sync_timestamp&quot;) VALUES (?, :binary0, ?, ?, ?, ?, ?,
          ?) [pid 17580 on line 282 of &quot;/usr/share/php/Horde/Db/Adapter/Pdo/Base.php&quot;]
2019-12-22T21:16:50+01:00 ERR: HORDE SQL QUERY FAILED: SQLSTATE[23505]: Unique violation: 7 FEHLER:  doppelter Schlüsselwert verletzt Unique-Constraint »horde_activesync_state_pkey«
DETAIL:  Schlüssel »(sync_key)=({59e8ac60-1a64-4d55-8079-042788f3a8e7}1761)« existiert bereits.
        INSERT INTO &quot;horde_activesync_state&quot; (&quot;sync_key&quot;, &quot;sync_data&quot;,
          &quot;sync_devid&quot;, &quot;sync_mod&quot;, &quot;sync_folderid&quot;, &quot;sync_user&quot;,
          &quot;sync_pending&quot;, &quot;sync_timestamp&quot;) VALUES (?, :binary0, ?, ?, ?, ?, ?,
          ?) [pid 18345 on line 282 of &quot;/usr/share/php/Horde/Db/Adapter/Pdo/Base.php&quot;]
2019-12-22T22:04:15+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 28422 on line 182 of &quot;/usr/share/php/Horde/String.php&quot;]
2019-12-22T23:04:59+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 12229 on line 327 of &quot;/usr/share/php/Horde/Db/Adapter/Base/Column.php&quot;]
2019-12-23T01:03:25+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 4559 on line 211 of &quot;/usr/share/php/Horde/Core/Log/Object.php&quot;]
2019-12-23T02:05:23+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 9844 on line 1724 of &quot;/usr/share/php/Horde/Imap/Client/Base.php&quot;]
2019-12-23T03:05:13+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 26199 on line 216 of &quot;/usr/share/php/Horde/String.php&quot;]
2019-12-23T04:05:14+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 11327 on line 53 of &quot;/usr/share/php/Horde/Imap/Client/Socket/Connection/Socket.php&quot;]
2019-12-23T05:05:06+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 30133 on line 651 of &quot;/usr/share/php/Horde/Imap/Client/Base.php&quot;]
2019-12-23T06:39:46+01:00 EMERG: HORDE Maximum execution time of 0 seconds exceeded [pid 30104 on line 218 of &quot;/usr/share/php/Horde/String.php&quot;]

---snip---

</description> 
   <pubDate>Mon, 23 Dec 2019 12:24:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93587</link> 
  </item> 
   
  <item> 
   <title>This has nothing to do with the upgrade to PHP 7.3. It is th</title> 
   <description>This has nothing to do with the upgrade to PHP 7.3. It is the below error that causes the problem:

HORDE SQL QUERY FAILED: SQLSTATE[23505]: Unique violation: 7 FEHLER:  doppelter Schlüsselwert verletzt Unique-Constraint »horde_activesync_state_pkey«

You need to resync the account to fix this.</description> 
   <pubDate>Mon, 23 Dec 2019 16:27:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93589</link> 
  </item> 
   
  <item> 
   <title>
&gt; ---snip---
&gt; 2019-12-22T18:33:12+01:00 WARN: HORDE PHP </title> 
   <description>
&gt; ---snip---
&gt; 2019-12-22T18:33:12+01:00 WARN: HORDE PHP ERROR: count(): Parameter 
&gt; must be an array or an object that implements Countable [pid 28532 on 
&gt; line 371 of &quot;/usr/share/php/Horde/ActiveSync/State/Sql.php&quot;]

This is harmless, though should be fixed. It&#039;s a logging statement that assumes an array is set when it&#039;s possible it might not be.

&gt; 2019-12-22T18:43:40+01:00 EMERG: HORDE Maximum execution time of 0 
&gt; seconds exceeded [pid 30661 on line 76 of 
&gt; &quot;/usr/share/php/Horde/Support/CaseInsensitiveArray.php&quot;]

Your logs have multiple entries like this. This seems fishy to me. I remember there was some isssue a while back where this was being reported but really referred to another setting, like max_input_time instead. No clue if this is relevant to what you are seeing though, it&#039;s possible seeing how some of these are thrown on IMAP related commands in your log.

&gt; 2019-12-22T20:28:23+01:00 WARN: HORDE PHP ERROR: count(): Parameter 
&gt; must be an array or an object that implements Countable [pid 1226 on 
&gt; line 3500 of &quot;/usr/share/php/Horde/Core/ActiveSync/Driver.php&quot;]

This one confuses me, as the code path that leads to this line should ensure that the variable is always an array. I&#039;ll have to look at this a bit more. However, this part of the code is related to searching for contacts, and has nothing to do with mailboxes.


&gt; 2019-12-22T21:16:35+01:00 ERR: HORDE SQL QUERY FAILED: 
&gt; SQLSTATE[23505]: Unique violation: 7 FEHLER:  doppelter Schlüsselwert 
&gt; verletzt Unique-Constraint »horde_activesync_state_pkey«
&gt; DETAIL:  Schlüssel 
&gt; »(sync_key)=({59e8ac5e-5828-467f-980e-042788f3a8e7}15728)« existiert 
&gt; bereits.
&gt;         INSERT INTO &quot;horde_activesync_state&quot; (&quot;sync_key&quot;, &quot;sync_data&quot;,
&gt;           &quot;sync_devid&quot;, &quot;sync_mod&quot;, &quot;sync_folderid&quot;, &quot;sync_user&quot;,
&gt;           &quot;sync_pending&quot;, &quot;sync_timestamp&quot;) VALUES (?, :binary0, ?, 
&gt; ?, ?, ?, ?,
&gt;           ?) [pid 17580 on line 282 of 
&gt; &quot;/usr/share/php/Horde/Db/Adapter/Pdo/Base.php&quot;]

These are expected from time to time. This occurs when ActiveSync thinks it successfully processes a request and sends the request to the client with a new synckey, but the client, for whatever reason does not receive or accept the response. It then uses the same synckey in the next request, and when then server processes the request and saves the state, it collides with the synckey from the last try.  If you look at your activesync log you &#039;ll see a message after this that says something like &quot;trying again&quot;.

When this happens frequently, it usually means there is some uncaught error in the sync process that leads to unexpected data being sent to the client.  Looking at your synclog should shed more light on this.

For what it&#039;s worth, I&#039;ve been running PHP 7.3 for quite a while with no issues.

</description> 
   <pubDate>Mon, 23 Dec 2019 17:41:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93590</link> 
  </item> 
   
  <item> 
   <title>&gt; For what it&#039;s worth, I&#039;ve been running PHP 7.3 for quite a</title> 
   <description>&gt; For what it&#039;s worth, I&#039;ve been running PHP 7.3 for quite a while with 
&gt; no issues.

I&#039;ve been running Horde with PHP 7.4 for a little over a month now, with no issues either.</description> 
   <pubDate>Mon, 23 Dec 2019 18:45:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93593</link> 
  </item> 
   
  <item> 
   <title>The PHP 7.3 related WARNING entries in the log have been fix</title> 
   <description>The PHP 7.3 related WARNING entries in the log have been fixed.

Feel free to post relevant portions of your activesync log for further help.</description> 
   <pubDate>Mon, 23 Dec 2019 19:50:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93594</link> 
  </item> 
   
  <item> 
   <title>Fast reaction times, great performance!

Thanks for the co</title> 
   <description>Fast reaction times, great performance!

Thanks for the code cleanup, makes it asier to hunt.

The issue could be a PEBKAC : I was not aware of the max_input_time configuration. It seems my PHP upgrade also introduced a new default value which is no longer -1, but a (too short) time period.

Currently I try to reproduce the error on a differnet machine, there it looks good now.
I&#039;ll verify it on 25th Dec as soon as a have access again to the problematic machine. I&#039;ll be back :)

So far: Merry Christmas! </description> 
   <pubDate>Mon, 23 Dec 2019 20:42:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93600</link> 
  </item> 
   
  <item> 
   <title>Indeed, fixing max_input_time fixed the issue.

Is max_exe</title> 
   <description>Indeed, fixing max_input_time fixed the issue.

Is max_execution_time and max_input_time tested/mentioned/proposed in test.php? Maybe a chance to reduce uneccessary bugreports like this :)

Sorry for the noise again.

Regards,
Torben</description> 
   <pubDate>Wed, 25 Dec 2019 14:03:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14972#t93601</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
