[sync] Notes sync to device fails

Christian Bomhardt horde at bomhardt.de
Mon Jan 23 17:30:16 UTC 2012


On 22.01.2012 22:57, Alex May wrote:
> Sorry for the poorly documented question earlier.
> I have just updated Horde to the latest version again before running the test as required.
> There is nothing in the php error log.
> The attached zip is the content of /tmp/sync
> The problem remains as described below.
> I'm guessing the problem is here:
> "ERR:     notes getChanges() failed during _fastSync: The method "getChanges" is not defined in the API for mnemo."
> Can anyone tell me how to fix it?
> Thanks in advance,
> Alex
>
> ----- Original Message -----
> From: "Jan Schneider"<jan at horde.org>
> To:<sync at lists.horde.org>
> Sent: Tuesday, January 03, 2012 9:16 AM
> Subject: Re: [sync] Notes sync to device fails
>
>
>
> Zitat von Alex May<alex at maymay.de>:
>
>> I am syncing to a Blackberry running Funambol.
>> Before upgrading to the latest version, I am fairly certain all of
>> the sync was working.
>> I now find that sync of notes from Horde to the device is failing.
>> Neither creation of new notes or updates of existing notes are
>> being synced in that direction. The reverse direction and all of the
>> other syncing (address book, calendar and tasks) is working
>> fine.
>> Is this a known problem? I did search, but didn't find anything.
>> Can anyone help as to where I should look for error messages in
>> order to debug?
> http://wiki.horde.org/SyncMLProblemReport
>
> Jan.
>
>
>
Hi Alex,

I fixed this by adding the following to horde/mnemo/lib/Api.php

  /**
      * Method for obtaining all server changes between two timestamps. 
Basicall
      * a wrapper around listBy(), but returns an array containing all adds,
      * edits and deletions.
      *
      * @param integer $start             The starting timestamp
      * @param integer $end               The ending timestamp.
      *
      * @return array  An hash with 'add', 'modify' and 'delete' arrays.
      */
     public function getChanges($start, $end)
     {
         return array('add' => $this->listBy('add', $start, null, $end),
                      'modify' => $this->listBy('modify', $start, null, 
$end),
                      'delete' => $this->listBy('delete', $start, null, 
$end));
     }




More information about the sync mailing list