Re: Error in Cmd=GetAttachment
Michael J Rubinsky <[email protected]>
| Newsgroups | gmane.comp.horde.sync |
|---|---|
| Message-ID | <20130118103501.Horde.fQzGQPEpZddvmWxVcyVUyg5@h4.theupstairsroom.com> |
Quoting "Jens-U. Mozdzen" <[email protected]>: > Hi Mike, > > Zitat von [email protected]: >> Quoting "Jens-U. Mozdzen" <[email protected]>> Hello Mike, >>> >>> I just upgraded to the latest PEAR version of Horde_ActiveSync >>> (2.1.2), but that problem may have been present before: >>> >>> On my remote device, I selected to open an email attachment, which >>> started a "POST /Microsoft-Server-ActiveSync?Cmd=GetAttachment" >>> request. In Apache's error log, I receive an error message "PHP >>> Fatal error: Call to a member function getType() on a non-object >>> in /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php" and of >>> course the attachment isn't available on the remote device. >>> >>> When I switch on ActiveSync trace, not much more is shown: >>> --- cut here --- >>> 2013-01-15T18:39:10+00:00 INFO: [19997] >>> Horde_Core_ActiveSync_Driver::authenticate() attempt for myuser >>> 2013-01-15T18:39:11+00:00 DEBUG: >>> [PALM71e4c550ad065147ed4336******] GETATTACHMENT request received >>> for user myuser >>> 2013-01-15T18:39:11+00:00 DEBUG: >>> [PALM71e4c550ad065147ed4336******] loadDeviceInfo: myuser >>> 2013-01-15T18:39:11+00:00 INFO: Request being handled for device: >>> PALM71e4c550ad065147ed4336****** Supporting protocol version: 12.1 >>> 2013-01-15T18:39:11+00:00 INFO: [PALM71e4c550ad065147ed4336******] >>> Handling GETATTACHMENT command. >>> 2013-01-15T18:39:11+00:00 DEBUG: >>> [PALM71e4c550ad065147ed4336******] Fetching attachement: >>> INBOX:25799:1.3 >>> --- cut here --- >>> >>> If you need more detailed diagnostics, please let me know. >>> Back-end is Kolab. >>> >>> With regards >>> Jens >> >> Does the error give a line number? > > Can't I even trust cut & paste nowadays? :[ > > Of course it does. > > "Call to a member function getType() on a non-object in > /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php on line 790" I don't see any code path that would lead to $atc not being a Horde_Mime_Part object. Can you place a: Horde::debug($atc); right before the return statement on line 789? It will output the results to a file named horde_debug.txt on your system's temporary directory. -- mike The Horde Project (www.horde.org) [email protected] -- sync mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
smime.p7s
(application/pkcs7-signature, 5.9 KB) - not displayed