fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
134 stars 61 forks source link

CalDAV errors #139

Open mjonstone opened 9 years ago

mjonstone commented 9 years ago

Hello,

We have configured z-push with our caldav server and have followed the example configuration although we're getting this error:

16/02/2015 17:42:34 [ 5456] [ WARN] [EMAIL] [APPLE] include/z_caldav.php:655 Undefined index: DAV::href (8) 16/02/2015 17:42:34 [ 5456] [ WARN] [EMAIL] [APPLE] include/z_caldav.php:656 Undefined index: (8) 16/02/2015 17:42:34 [ 5456] [ WARN] [EMAIL] [APPLE] include/z_caldav.php:514 Undefined index: (8) 16/02/2015 17:42:34 [ 5456] [ WARN] [EMAIL] [APPLE] include/z_caldav.php:516 Undefined offset: 4 (8) 16/02/2015 17:42:34 [ 5456] [ WARN] [EMAIL] [APPLE] include/z_caldav.php:517 Undefined offset: 4 (8)

It's the only error I can see that might be causing the problem, as we are authenticating without a problem:

16/02/2015 18:00:26 [ 5861] [DEBUG] [EMAIL] [APPLE] BackendCalDAV->Logon(): User 'EMAIL' is authenticated on CalDAV

Any ideas on what those errors might be?

fmbiete commented 9 years ago

Hi @mjonstone What version of PHP are you using? Can you run the testing/testing_caldav.php (filling your data) without errors?

gmta commented 9 years ago

I saw these too on my CalDAV backend. Will try to investigate.

mjonstone commented 9 years ago

I ended up solving the issue with CalDAV (was an issue on my side) although these errors still appear. It's doesn't appear to be a critical error. I was using PHP 5.3.3

gmta commented 9 years ago

@mjonstone

Could it be that you had set CALDAV_SUPPORTS_SYNC to true while the caldav interface did not support it? I've submitted a PR that would "fix" this by informing the user of the configuration error.

chittaranjan870 commented 1 year ago

Unable to nextcloud sync with z-push. below errors are showing, please help. Thanks

My configuration is: cat /etc/z-push/caldav.conf.php define('CALDAV_PROTOCOL', 'http'); define('CALDAV_SERVER', 'nextcloud.abc.com'); define('CALDAV_PORT', '80'); define('CALDAV_PATH', '/remote.php/dav/calendars/%u/'); define('CALDAV_PERSONAL', 'personal'); define('CALDAV_SUPPORTS_SYNC', false); define('CALDAV_MAX_SYNC_PERIOD', 2147483647);

Errors: 21/07/2023 16:44:20 [213348] [ INFO] [user2@abc.com] BackendLDAP->Logon(): User 'user2@abc.com' is authenticated on LDAP 21/07/2023 16:44:20 [213348] [ INFO] [user2@abc.com] ExportChangesDiff->InitializeExporter(): Found '6' changes for 'hierarchy' 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::current-user-principal (8) 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::principal-URL (8) 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::owner (8) 21/07/2023 16:44:22 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::current-user-principal (8) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::principal-URL (8) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Undefined index: DAV::owner (8) 21/07/2023 16:44:23 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:459 Invalid argument supplied for foreach() (2) 21/07/2023 16:44:24 [213348] [WARN] [user2@abc.com] /usr/share/z-push/include/z_caldav.php:614 Undefined offset: 0 (8) 21/07/2023 16:44:26 [213348] [ INFO] [user2@abc.com] ExportChangesDiff->InitializeExporter(): Found '0' changes for 'hierarchy' 21/07/2023 16:44:26 [213348] [ INFO] [user2@abc.com] ExportChangesDiff->InitializeExporter(): Found '0' changes for 'hierarchy' 21/07/2023 16:44:26 [213348] [ INFO] [user2@abc.com] BackendLDAP->Logoff(): Disconnection successfull. 21/07/2023 16:44:26 [213348] [ INFO] [user2@abc.com] cmd='FolderSync' memory='1.90 MiB/4.00 MiB' time='7.24s' devType='Android' devId='androidc1310712648' getUser='user2@abc.com' from='192.168.1.116' idle='0s' version='2.5.1-1' method='POST' httpcode='200'