csoc-de / Shifts

MIT License
28 stars 7 forks source link

Failed to synchronize calendar #68

Open juergenp-at opened 6 months ago

juergenp-at commented 6 months ago

Hallo!

I can't get the calendar to be synced. This is the error message I get:

{"reqId":"Zdi1ksYl4d4AMi3He@ptOAAPhQ0","level":3,"time":"2024-02-23T15:11:14+00:00","remoteAddr":"88.116.171.250","user":"ShiftsAdmin","app":"index","method":"PATCH","url":"/cloud/index.php/apps/shifts/shiftsCalendar","message":"syntax error, unexpected ':', expecting ')'","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36","version":"25.0.13.2","exception":{"Exception":"ParseError","Message":"syntax error, unexpected ':', expecting ')'","Code":0,"Trace":[{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/composer/composer/ClassLoader.php","line":428,"function":"Composer\Autoload\includeFile","args":["/home/.sites/48/site8162307/web/support/cloud/apps/shifts/lib//Service/ShiftsCalendarService.php"]},{"function":"loadClass","class":"Composer\Autoload\ClassLoader","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"function":"spl_autoload_call","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":134,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"queryNoFallback","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":89,"function":"query","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Shifts\Service\ShiftsCalendarService",true]},{"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map","args":[["Closure"],[["ReflectionParameter","logger"],["ReflectionParameter","request"]," sensitive parameters replaced ",["ReflectionParameter","changeService"],["ReflectionParameter","permService"]]]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\Shifts\Controller\ShiftsCalendarController"]]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":134,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Shifts\Controller\ShiftsCalendarController"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Shifts\Controller\ShiftsCalendarController"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"queryNoFallback","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Shifts\Controller\ShiftsCalendarController"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/AppFramework/App.php","line":159,"function":"query","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Shifts\Controller\ShiftsCalendarController"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Shifts\Controller\ShiftsCalendarController","synchronize",["OC\AppFramework\DependencyInjection\DIContainer"],["shifts.shiftsCalendar.synchronize"]]},{"file":"/home/.sites/48/site8162307/web/support/cloud/lib/base.php","line":1053,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/shifts/shiftsCalendar"]},{"file":"/home/.sites/48/site8162307/web/support/cloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/.sites/48/site8162307/web/support/cloud/apps/shifts/lib/Service/ShiftsCalendarService.php","Line":355,"CustomMessage":"--"},"id":"65d8b5932b860"}

This are my settings:

Calendarname: Schichtplan (created by user "ShiftsAdmin" and shared to group "ShiftsAdmin" with write permission) AnalystGroup: ShiftsUser ShiftadminGroup: ShiftsAdmin

ShiftsOrganizer: ShiftsAdmin image image image

Any idea what I'm doing wrong, or is wrong with my setup? Thanks in advance!

csoc-kevink commented 5 months ago

Hey,

sorry for the late reply. The line mentioned in the stack trace is the following:

$this->calDav->deleteCalendarObject($calendarId, $calObject['uri'], forceDeletePermanently: true);

I'm not sure what the error is exaclty about but it seams PHP has a problem with the ':' in "forceDeletePermanently: true". Is it correct that you have version 25 of nextcloud installed? Maybe the PHP version is too old. Is it possible for you to upgrade the PHP version or nextcloud?