[dev] PHP ERROR: Method Horde_Imap_Client_Mailbox::__toString() must return a string value
Michael J Rubinsky
mrubinsk at horde.org
Thu Apr 4 21:26:53 UTC 2013
I've been getting the following errors in my log during ActiveSync requests:
2013-04-04T17:15:41-04:00 DEBUG: HORDE [horde] PHP ERROR: Method
Horde_Imap_Client_Mailbox::__toString() must return a string value
[pid 84972 on line 3730 of
"/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Base.php"]
Backtrace:
1. Horde_Rpc_ActiveSync->getResponse()
/usr/local/horde/horde/horde/rpc.php:156
2. Horde_ActiveSync->handleRequest()
/usr/local/horde/horde/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:141
3. Horde_ActiveSync_Request_Base->handle()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync.php:709
4. Horde_ActiveSync_Request_Ping->_handle()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/Request/Base.php:236
5. Horde_ActiveSync_Sync->init()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php:248
6. Horde_ActiveSync_State_Sql->getChanges()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/Sync.php:149
7. Horde_Core_ActiveSync_Driver->getServerChanges()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php:807
8. Horde_ActiveSync_Imap_Adapter->ping()
/usr/local/horde/horde/framework/Core/lib/Horde/Core/ActiveSync/Driver.php:603
9. Horde_ActiveSync_Imap_Adapter->_getImapOb()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php:161
10. Horde_Core_ActiveSync_Imap_Factory->getImapOb()
/usr/local/horde/horde/framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php:1266
11. Horde_Registry_Caller->imapOb()
/usr/local/horde/horde/framework/Core/lib/Horde/Core/ActiveSync/Imap/Factory.php:43
12. Horde_Registry_Caller->__call()
/usr/local/horde/horde/framework/Core/lib/Horde/Core/ActiveSync/Imap/Factory.php:43
13. Horde_Registry->call()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry/Caller.php:41
14. Horde_Registry->callByPackage()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry.php:1043
15. Horde_Registry->pushApp()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry.php:1083
16. Horde_Registry->callAppMethod()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry.php:1540
17. call_user_func_array()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry.php:1151
18. Horde_Registry_Application->authenticated()
19. IMP_Application->_authenticated()
/usr/local/horde/horde/framework/Core/lib/Horde/Registry/Application.php:96
20. IMP_Auth::authenticateCallback()
/usr/local/horde/horde/imp/lib/Application.php:121
21. IMP_Imap->updateFetchIgnore() /usr/local/horde/horde/imp/lib/Auth.php:300
22. IMP_Mailbox::getSpecialMailboxes()
/usr/local/horde/horde/imp/lib/Imap.php:284
23. IMP_Mailbox::getPref() /usr/local/horde/horde/imp/lib/Mailbox.php:1364
24. IMP_Mailbox::prefFrom() /usr/local/horde/horde/imp/lib/Mailbox.php:260
25. IMP_Imap->defaultNamespace()
/usr/local/horde/horde/imp/lib/Mailbox.php:1420
26. IMP_Imap->getNamespaceList() /usr/local/horde/horde/imp/lib/Imap.php:425
27. IMP_Imap->getNamespaces() /usr/local/horde/horde/imp/lib/Imap.php:370
28. IMP_Imap->__call() /usr/local/horde/horde/imp/lib/Imap.php:370
29. call_user_func_array() /usr/local/horde/horde/imp/lib/Imap.php:546
30. Horde_Imap_Client_Base->getNamespaces()
31. Horde_Imap_Client_Socket->_getNamespaces()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Base.php:647
32. Horde_Imap_Client_Socket->_sendLine()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:276
33. Horde_Imap_Client_Socket->_getLine()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:3680
34. Horde_Imap_Client_Socket->_serverResponse()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:3885
35. Horde_Imap_Client_Socket->_parseNamespace()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:4098
36. strval()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php:312
37. Horde_Imap_Client_Mailbox->__toString()
38. Horde::debug()
/usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Mailbox.php:113
It seems to be coming from parsing the namespace response? If so,
here is the IMAP log of such a request/response:
>> Sun, 31 Mar 2013 13:31:56 -0400
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.
C: 1 STARTTLS
S: 1 OK Begin TLS negotiation now.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE AUTH=PLAIN
S: 2 OK Pre-login capabilities listed, post-login capabilities have more.
C: [LOGIN Command - username: mike]
S: 3 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN
CONTEXT=SEARCH LIST-STATUS] Logged in
C: 4 ENABLE QRESYNC
S: * ENABLED QRESYNC
S: 4 OK Enabled.
C: 5 NAMESPACE
S: * NAMESPACE (("" "/")) NIL NIL
S: 5 OK Namespace completed.
Please let me know if you need anything else, or where else I should
be looking.
Thanks.
--
mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2200 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/dev/attachments/20130404/dc075f17/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6062 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.horde.org/archives/dev/attachments/20130404/dc075f17/attachment-0001.bin>
More information about the dev
mailing list