[sync] Fatal error in Horde/SyncML/Command/Sync.php

Deryk Piper deryk-lists at mod-soft.com
Thu Apr 28 10:50:06 PDT 2005


First off, thanks Karsten for the work and getting SyncML
development/testing moving again.

I'm testing with the Sync4j Outlook client, running Horde in a Win32
environment.  Updated from CVS this morning at 9AM EDT.  During sync I
get the following error in error_log:

[28-Apr-2005 12:31:11] PHP Fatal error:  Call to a member function on a
non-object in C:\PHP\pear\Horde\SyncML
\Command\Sync.php on line 52

This occurs after the Outlook client sends its (large) list of changes
back to the server.  So there's the initial client request, server
response, then client sends its complete database to the server.

However this appears to be a session problem:

Apr 28 12:31:09 HORDE [debug] [horde] SyncML: New session created:
syncmlscpimoutlook1 [on line 162 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:31:10 HORDE [debug] [horde] SyncML: authorized= version=1
msgid=2 source=sc-pim-outlook target=http://test.pipenet.org user=
charset=ISO-8859-1 [on line 216 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:31:11 HORDE [debug] [horde] SyncML: using device class
syncml_device_sync4j [on line 74 of
"C:\PHP\pear\Horde\SyncML\Device.php"]

I can confirm that session files sess_syncml* are being created, so I'm
not sure what the problem is.

Anyhow all the relevant log entries are below.  Yes, the Sync4j client
took 7 minutes to enumerate my calendar entries - I neglected to trim
this before testing :)

DP


--- horde.log ---
Apr 28 12:24:33 HORDE [debug] [horde] SyncML: New session created:
syncmlscpimoutlook1 [on line 162 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:24:34 HORDE [debug] [imp] 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 "C:\PHP\pear\Horde\Prefs\sql.php"]
Apr 28 12:24:34 HORDE [notice] [imp] Login success for test at pipenet.org
[209.183.155.199] to {localhost:143} [on line 95 of
"D:\inetpub\wwwroot\myportal\horde_cvs\horde\imp\lib\api.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: authorized=1 version=1
msgid=1 source=sc-pim-outlook target=http://test.pipenet.org
user=test at pipenet.org charset=ISO-8859-1 [on line 216 of
"C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: looking for sync for
calendar [on line 260 of "C:\PHP\pear\Horde\SyncML\Command\Alert.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: Create new sync for
calendar [on line 266 of "C:\PHP\pear\Horde\SyncML\Command\Alert.php"]
Apr 28 12:24:34 HORDE [debug] [horde] 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
"C:\PHP\pear\Horde\DataTree\sql.php"]
Apr 28 12:24:34 HORDE [debug] [horde] 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
"C:\PHP\pear\Horde\DataTree\sql.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: SyncML: No info about
previous syncs found for id test at pipenet.org:sc-pim-outlookand database
calendar [on line 99 of "C:\PHP\pear\Horde\SyncML\Command\Alert.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: SyncML: Anchor mismatch,
enforcing SlowSync [on line 121 of
"C:\PHP\pear\Horde\SyncML\Command\Alert.php"]
Apr 28 12:24:34 HORDE [debug] [horde] SyncML: SyncML: return message
completed [on line 486 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:31:09 HORDE [debug] [horde] SyncML: New session created:
syncmlscpimoutlook1 [on line 162 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:31:10 HORDE [debug] [horde] SyncML: authorized= version=1
msgid=2 source=sc-pim-outlook target=http://test.pipenet.org user=
charset=ISO-8859-1 [on line 216 of "C:\PHP\pear\Horde\SyncML.php"]
Apr 28 12:31:11 HORDE [debug] [horde] SyncML: using device class
syncml_device_sync4j [on line 74 of
"C:\PHP\pear\Horde\SyncML\Device.php"]

--- error.log ---
[28-Apr-2005 12:31:11] PHP Fatal error:  Call to a member function on a
non-object in C:\PHP\pear\Horde\SyncML\Command\Sync.php on line 52





More information about the sync mailing list