6.0.0-beta1
7/6/25

[#12593] PHP ERROR when deleting an e-mail.
Summary PHP ERROR when deleting an e-mail.
Queue IMP
Queue Version 6.1.3
Type Bug
State No Feedback
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester mrose (at) hs-harz (dot) de
Created 08/21/2013 (4337 days ago)
Due
Updated 09/09/2013 (4318 days ago)
Assigned
Resolved 09/09/2013 (4318 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/09/2013 05:36:43 PM Michael Slusarz State ⇒ No Feedback
 
08/26/2013 09:34:24 PM Michael Slusarz Comment #4 Reply to this comment
There is no way I can see that slicemap['s'] can be anything but an 
array.  Unless someone can debug this, I'm going to close this ticket.

Clear your cache as a possible workaround.
08/22/2013 05:41:09 AM mrose (at) hs-harz (dot) de Comment #3 Reply to this comment
I do't know. I was hoping that someone can tell me.
I delete only a e-mail in IMP and always get this error message in the 
horde.log. This issue affects all users. Even if you delete multiple 
email at once, you get the log entry for each.
08/21/2013 05:18:23 PM Michael Slusarz Comment #2
Assigned to Michael Slusarz
Reply to this comment
So what is argument #1 to array_intersect_keys()?
08/21/2013 11:59:23 AM mrose (at) hs-harz (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ PHP ERROR when deleting an e-mail.
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
When deleting an e-mail in the horde.log is the following error:

2013-08-21T13:43:15+02:00 WARN: HORDE [imp] PHP ERROR: 
array_intersect_key(): Argument #1 is not an array [pid 3765 on line 
276 of "/usr/share/pear/Horde/Imap/Client/Cache/Backend/Cache.php"]
2013-08-21T13:43:15+02:00 DEBUG: HORDE  1. 
Horde_Core_Ajax_Application->doAction() 
/var/www/webmail/services/ajax.php:58
  2. call_user_func() /usr/share/pear/Horde/Core/Ajax/Application.php:162
  3. IMP_Ajax_Application_Handler_Common->deleteMessages()
  4. IMP_Message->delete() 
/var/www/webmail/imp/lib/Ajax/Application/Handler/Common.php:221
  5. IMP_Imap->copy() /var/www/webmail/imp/lib/Message.php:229
  6. IMP_Imap->__call() /var/www/webmail/imp/lib/Message.php:229
  7. call_user_func_array() /var/www/webmail/imp/lib/Imap.php:571
  8. Horde_Imap_Client_Base->copy()
  9. Horde_Imap_Client_Socket->_copy() 
/usr/share/pear/Horde/Imap/Client/Base.php:3042
10. Horde_Imap_Client_Base->expunge() 
/usr/share/pear/Horde/Imap/Client/Socket.php:3290
11. Horde_Imap_Client_Socket->_expunge() 
/usr/share/pear/Horde/Imap/Client/Base.php:2056
12. Horde_Imap_Client_Socket->_sendCmd() 
/usr/share/pear/Horde/Imap/Client/Socket.php:1876
13. Horde_Imap_Client_Socket->_sendCmdChunk() 
/usr/share/pear/Horde/Imap/Client/Socket.php:3791
14. Horde_Imap_Client_Socket->_getLine() 
/usr/share/pear/Horde/Imap/Client/Socket.php:3861
15. Horde_Imap_Client_Socket->_serverResponse() 
/usr/share/pear/Horde/Imap/Client/Socket.php:4073
16. Horde_Imap_Client_Socket->_deleteMsgs() 
/usr/share/pear/Horde/Imap/Client/Socket.php:4268
17. Horde_Imap_Client_Base->_deleteMsgs() 
/usr/share/pear/Horde/Imap/Client/Socket.php:3738
18. Horde_Imap_Client_Cache->deleteMsgs() 
/usr/share/pear/Horde/Imap/Client/Base.php:3886
19. Horde_Imap_Client_Cache_Backend_Cache->deleteMsgs() 
/usr/share/pear/Horde/Imap/Client/Cache.php:218
20. array_intersect_key() 
/usr/share/pear/Horde/Imap/Client/Cache/Backend/Cache.php:276
21. Horde_ErrorHandler::errorHandler()

2013-08-21T13:43:15+02:00 DEBUG: HORDE [imp] SQL  (0,0006s)
     SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods,
       alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal
       FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL
       AND alarm_start <= '2013-08-21T11:43:15') OR alarm_snooze <=
       '2013-08-21T11:43:15') AND (alarm_end IS NULL OR alarm_end >=
       '2013-08-21T11:43:15') AND (alarm_uid IS NULL OR alarm_uid = '' OR
       alarm_uid = 'xxxxxxx') ORDER BY alarm_start, alarm_end [pid 
3765 on line 319 of "/usr/share/pear/Horde/Db/Adapter/Mysqli.php"]

Saved Queries