[sync] Sync fails with T610

Karsten Fourmont fourmont at gmx.de
Mon May 16 02:04:07 PDT 2005


Hi,

 > PHP Notice:  A session had already been started
 > - ignoring session_start() in
 > /usr/local/share/pear/Horde/SyncML.php on line 154

My guess is that you have an outdated version of horde/rpc.php

I modified it to work with wbxml 11 days ago.

If you don't want to upgrade your complete horde installation, just use
http://cvs.horde.org/co.php/horde/rpc.php?r=1.37&p=1
and put it in the horde base directory.

Cheers,
  Karsten

Emre Bastuz wrote:
> Hi,
> 
> thanks to Chuck and Deryk for pointing me in the right direction - 
> after having
> the xml2wbxml (and vice versa) tools installed I have made some progress.
> 
> The folder /tmp/sync now contains binary data and the converted ASCII XML
> representation of the binary data.
> 
> Something still goes wrong though: when synching with the cell phone the synch
> process fails after about 13-14 entries from my contacts or 3-4 entries 
>>from my
> calendar/tasks.
> 
> When I check /tmp/sync I see that those entries have been transmitted and
> converted into XML.
> 
> Beside the fact that I have more then 13-14 entries in my contacts, the
> transmitted entries are never being inserted into the mysql database.
> 
> My PHP Log says this during the transmission:
> PHP Notice:  A session had already been started - ignoring session_start() in
> /usr/local/share/pear/Horde/SyncML.php on line 154
> PHP Notice:  A session had already been started - ignoring session_start() in
> /usr/local/share/pear/Horde/SyncML.php on line 154
> PHP Fatal error:  Call to a member function on a non-object in
> /usr/local/share/pear/Horde/SyncML/Command/Sync.php on line 52
> 
> The horde log has this to say:
> SyncML: New session created: syncml1234567855 [on line 165 of
> "/usr/local/share/pear/Horde/SyncML.php"]
> SQL Query by Prefs_sql::retrieve(): SELECT pref_scope, pref_name, pref_value
>>FROM horde_prefs WHERE pref_uid = ? AND (pref_scope = ? OR pref_scope =
> 'horde') ORDER BY pref_scope [on line 132 of
> "/usr/local/share/pear/Horde/Prefs/sql.php"]
> SyncML: authorized=1 version=0 msgid=1 source=12345678
> target=http://path.to/horde/rpc.php user=myuser charset=ISO-8859-1 [on 
> line 219
> of "/usr/local/share/pear/Horde/SyncML.php"]
> SyncML: looking for sync for calendar [on line 260 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: Create new sync for calendar [on line 266 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SQL Query by DataTree_sql::_buildParentIds(): SELECT datatree_id,
> datatree_parents FROM horde_datatree WHERE datatree_name = 'calendar' AND
> group_uid = 'syncml' ORDER BY datatree_id [on line 257 of
> "/usr/local/share/pear/Horde/DataTree/sql.php"]
> SQL Query by DataTree_sql::_load(): SELECT c.datatree_id, c.datatree_name,
> c.datatree_parents, c.datatree_order FROM horde_datatree c WHERE c.group_uid =
> 'syncml'  [on line 118 of "/usr/local/share/pear/Horde/DataTree/sql.php"]
> SyncML: SyncML: No info about previous syncs found for id myuser:12345678and
> database calendar [on line 99 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: SyncML: Anchor mismatch, enforcing SlowSync [on line 121 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: looking for sync for tasks [on line 260 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: Create new sync for tasks [on line 266 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SQL Query by DataTree_sql::_buildParentIds(): SELECT datatree_id,
> datatree_parents FROM horde_datatree WHERE datatree_name = 'tasks' AND
> group_uid = 'syncml' ORDER BY datatree_id [on line 257 of
> "/usr/local/share/pear/Horde/DataTree/sql.php"]
> SQL Query by DataTree_sql::_load(): SELECT c.datatree_id, c.datatree_name,
> c.datatree_parents, c.datatree_order FROM horde_datatree c WHERE c.group_uid =
> 'syncml'  [on line 118 of "/usr/local/share/pear/Horde/DataTree/sql.php"]
> SyncML: SyncML: No info about previous syncs found for id myuser:12345678and
> database tasks [on line 99 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: SyncML: Anchor mismatch, enforcing SlowSync [on line 121 of
> "/usr/local/share/pear/Horde/SyncML/Command/Alert.php"]
> SyncML: SyncML: return message completed [on line 489 of
> "/usr/local/share/pear/Horde/SyncML.php"]
> 
> I have also logged the SQL queries via Mysql and re-issued them just to 
> see what
> entries are found. It seems the queries
> SELECT datatree_id, datatree_parents FROM horde_datatree WHERE datatree_name =
> 'calendar' AND group_uid = 'syncml' ORDER BY datatree_id;
> SELECT c.datatree_id, c.datatree_name, c.datatree_parents, 
> c.datatree_order FROM
> horde_datatree c WHERE c.group_uid = 'syncml'
> SELECT datatree_id, datatree_parents FROM horde_datatree WHERE datatree_name =
> 'tasks' AND group_uid = 'syncml' ORDER BY datatree_id
> and
> SELECT c.datatree_id, c.datatree_name, c.datatree_parents, 
> c.datatree_order FROM
> horde_datatree c WHERE c.group_uid = 'syncml'
> return no row/s.
> 
> Is this normal?
> 
> Any idea how I should proceed?
> 
> Emre
> 



More information about the sync mailing list