[sync] Error in Cmd=GetAttachment
Michael J Rubinsky
mrubinsk at horde.org
Fri Jan 18 15:35:01 UTC 2013
Quoting "Jens-U. Mozdzen" <jmozdzen at nde.ag>:
> Hi Mike,
>
> Zitat von mrubinsk at horde.org:
>> Quoting "Jens-U. Mozdzen" <jmozdzen at nde.ag>> 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)
mrubinsk at horde.org
-------------- 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/sync/attachments/20130118/3ce3de07/attachment.bin>
More information about the sync
mailing list