6.0.0-beta1
7/4/25

[#13391] ActiveSync: invalid argument for foreach
Summary ActiveSync: invalid argument for foreach
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester michael (at) bigmichi1 (dot) de
Created 07/23/2014 (3999 days ago)
Due
Updated 07/23/2014 (3999 days ago)
Assigned 07/23/2014 (3999 days ago)
Resolved 07/23/2014 (3999 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/23/2014 07:08:17 PM Michael Rubinsky Comment #6
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
Fixed in Git, thanks!
07/23/2014 07:07:49 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 967e7982ec74ce004d3a8417ff00f0a4c7e5ff64
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Jul 23 15:03:22 2014 -0400

     Bug: 13391 Fix PHP Error due to non-array being passed.

  .../Core/lib/Horde/Core/ActiveSync/Driver.php      |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/967e7982ec74ce004d3a8417ff00f0a4c7e5ff64
07/23/2014 07:05:58 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 81953bb55640866c4067ce8bcaecdb573cd02d5a
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Jul 23 15:03:22 2014 -0400

     Bug: 13391 Fix PHP Error due to non-array being passed.

  .../Core/lib/Horde/Core/ActiveSync/Driver.php      |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/81953bb55640866c4067ce8bcaecdb573cd02d5a
07/23/2014 06:23:08 PM michael (at) bigmichi1 (dot) de Comment #3
New Attachment: backtrace.txt Download
Reply to this comment
i added the line

Horde::debug($filter, "/tmp/backtrace.txt");

right after the function entry point, bactrace file is attached
07/23/2014 05:58:50 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Any chance I can get a backtrace?

The only place this method is called is from the admin pages (or the 
API from a custom external admin tool), and I don't see anywhere this 
value couldn't be an array.
07/23/2014 05:45:18 PM michael (at) bigmichi1 (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ ActiveSync: invalid argument for foreach
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
when i reset states of all devices in admin panel as a user, and a 
device then syncs these messages appear in horde.log

HORDE PHP ERROR: Invalid argument supplied for foreach() [pid 9368 on 
line 738 of 
"/srv/www/horde.bigmichi1.de/pear/share/pear/Horde/ActiveSync/State/Mongo.php"]

Saved Queries