Re: Notes sync to device fails

Christian Bomhardt <[email protected]>
Newsgroups gmane.comp.horde.sync
Message-ID <[email protected]>
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"<[email protected]>
> To:<[email protected]>
> Sent: Tuesday, January 03, 2012 9:16 AM
> Subject: Re: [sync] Notes sync to device fails
>
>
>
> Zitat von Alex May<[email protected]>:
>
>> 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));
     }


-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.