6.0.0-beta1
7/8/25

[#13557] Invalid argument supplied for foreach()
Summary Invalid argument supplied for foreach()
Queue IMP
Queue Version 6.2.2
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester azurit (at) pobox (dot) sk
Created 09/09/2014 (3955 days ago)
Due
Updated 09/09/2014 (3955 days ago)
Assigned 09/09/2014 (3955 days ago)
Resolved 09/09/2014 (3955 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/09/2014 02:22:39 PM Michael Slusarz Comment #4
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
09/09/2014 01:17:39 PM Michael Rubinsky Comment #3 Reply to this comment
Backtrace?
Probably not triggered via the exact same code path, but this 
backtrace was provided to me via the mailing list for another issue. 
Looks like some issue with the object disappearing during shutdown?

2014-09-07T12:27:40+02:00 WARN: HORDE [imp] PHP ERROR: Invalid argument
supplied for foreach() [pid 5648 on line 96 of
"/home/mydomain/public_html/hmail/imp/lib/Factory/MailboxList.php"]
2014-09-07T12:27:40+02:00 DEBUG: HORDE  1.
Horde_Rpc_ActiveSync->getResponse()
/home/mydomain/public_html/hmail/rpc.php:159
  2. Horde_ActiveSync->handleRequest()
/usr/share/pear/Horde/Rpc/ActiveSync.php:122
  3. Horde_Core_ActiveSync_Driver->clearAuthentication()
/usr/share/pear/Horde/ActiveSync.php:729
  4. Horde_Core_ActiveSync_Connector->clearAuth()
/usr/share/pear/Horde/Core/ActiveSync/Driver.php:243
  5. Horde_Registry->clearAuth()
/usr/share/pear/Horde/Core/ActiveSync/Connector.php:1310
  6. Horde_Registry->callAppMethod() /usr/share/pear/Horde/Registry.php:2048
  7. call_user_func_array() /usr/share/pear/Horde/Registry.php:1201
  8. IMP_Application->logout()
  9. IMP_Factory_MailboxList->expireAll()
/home/mydomain/public_html/hmail/imp/lib/Application.php:166
10. Horde_ErrorHandler::errorHandler()
/home/mydomain/public_html/hmail/imp/lib/Factory/MailboxList.php:96
09/09/2014 12:54:06 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Backtrace?
09/09/2014 12:45:18 PM azurit (at) pobox (dot) sk Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Invalid argument supplied for foreach()
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
My log file is FULL of these:

2014-09-09T14:41:57+02:00 WARN: HORDE [imp] PHP ERROR: Invalid 
argument supplied for foreach() [pid 9075 on line 96 of 
"/usr/share/horde/imp/lib/Factory/MailboxList.php"]

it's logged everytime someone logs out of IMP.

Saved Queries