# Nextcloud 19.0.2 Fehler Email Benachrichtigung /Event/Kalender

**URL:** <https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055>\
**Category:** 🏷️ General\
**Created:** [August 31, 2020, 12:42pm UTC](https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055 "2020-08-31T12:42:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mueller](https://help.nextcloud.com/letter_avatar/mueller/32/6_22734026db12803ebb3e059622ac3534.png) [@mueller](https://help.nextcloud.com/u/mueller)\
**Post date:** [August 31, 2020, 12:42pm UTC](https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055/1 "2020-08-31T12:42:17Z")

</div>

Die Benachrichtigung aus Nextclud/Kalender/Event funktioniert nicht und wirft einen Fehler:  
cron-job ist eingetragen:  
\*/5 \* \* \* \* php -f /var/www/html/nextcloud/occ dav:send-event-reminders  
occ-caomand ausgeführt (als apache):  
sudo -u apache php occ config:app:set dav sendEventRemindersMode --value occ

 ![grafik](https://help.nextcloud.com/uploads/default/original/3X/e/c/ec4221fff6e76532ab51e89fdb00e25881212afa.png)

**Fehler** :

From apache@tplkdesk.tplk.loc Mon Aug 31 14:25:02 2020  
Return-Path: [apache@tplkdesk.tplk.loc](mailto:apache@tplkdesk.tplk.loc)  
X-Original-To: apache  
Delivered-To: apache@tplkdesk.tplk.loc  
From: “(Cron Daemon)” [apache@tplkdesk.tplk.loc](mailto:apache@tplkdesk.tplk.loc)  
To: apache@tplkdesk.tplk.loc  
Subject: Cron [apache@tplkdesk](mailto:apache@tplkdesk) php -f /var/www/html/nextcloud/occ dav:send-event-reminders  
Content-Type: text/plain; charset=UTF-8  
Auto-Submitted: auto-generated  
Precedence: bulk  
X-Cron-Env: \<XDG\_SESSION\_ID=17212\>  
X-Cron-Env: \<XDG\_RUNTIME\_DIR=/run/user/48\>  
X-Cron-Env: \<LANG=de\_DE.UTF-8\>  
X-Cron-Env: \<SHELL=/bin/sh\>  
X-Cron-Env: \<HOME=/usr/share/httpd\>  
X-Cron-Env: \<PATH=/usr/bin:/bin\>  
X-Cron-Env: \<LOGNAME=apache\>  
X-Cron-Env: \<USER=apache\>  
Date: Mon, 31 Aug 2020 14:25:02 +0200 (CEST)  
Status: R

An unhandled exception has been thrown:  
TypeError: Argument 2 passed to OCA\Circles\Db\CirclesRequest::getCircle() must be of the type string, null given, called in /var/www/html/nextcloud/apps/circles/lib/Se  
rvice/CirclesService.php on line 271 and defined in /var/www/html/nextcloud/apps/circles/lib/Db/CirclesRequest.php:192  
Stack trace:  
#0 /var/www/html/nextcloud/apps/circles/lib/Service/CirclesService.php(271): OCA\Circles\Db\CirclesRequest-\>getCircle(‘36c9bf2e53b322’, NULL, 1, ‘’, true)  
#1 /var/www/html/nextcloud/apps/circles/lib/Api/v1/Circles.php(266): OCA\Circles\Service\CirclesService-\>detailsCircle(‘36c9bf2e53b322’, true)  
#2 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php(480): OCA\Circles\Api\v1\Circles::detailsCircle(‘36c9bf2e53b322’, true)  
#3 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php(178): OCA\DAV\Connector\Sabre\Principal-\>circleToPrincipal(‘36c9bf2e53b322’)  
#4 /var/www/html/nextcloud/apps/dav/lib/DAV/Sharing/Backend.php(200): OCA\DAV\Connector\Sabre\Principal-\>getPrincipalByPath(‘principals/circ…’)  
#5 /var/www/html/nextcloud/apps/dav/lib/CalDAV/CalDavBackend.php(2316): OCA\DAV\DAV\Sharing\Backend-\>getShares(171)  
#6 /var/www/html/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php(496): OCA\DAV\CalDAV\CalDavBackend-\>getShares(171)  
#7 /var/www/html/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php(142): OCA\DAV\CalDAV\Reminder\ReminderService-\>getAllUsersWithWriteAccessToCalendar(171)  
#8 /var/www/html/nextcloud/apps/dav/lib/Command/SendEventReminders.php(83): OCA\DAV\CalDAV\Reminder\ReminderService-\>processReminders()  
#9 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\DAV\Command\SendEventReminders-\>execute(Object(Symfony\Component\Console\Input\ArgvInp  
ut), Object(Symfony\Component\Console\Output\ConsoleOutput))  
#10 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(1012): Symfony\Component\Console\Command\Command-\>run(Object(Symfony\Component\Console\Input\ArgvIn  
put), Object(Symfony\Component\Console\Output\ConsoleOutput))  
#11 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application-\>doRunCommand(Object(OCA\DAV\Command\SendEventReminders  
), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))  
#12 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application-\>doRun(Object(Symfony\Component\Console\Input\ArgvInput  
), Object(Symfony\Component\Console\Output\ConsoleOutput))  
#13 /var/www/html/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application-\>run(Object(Symfony\Component\Console\Input\ArgvInput), Obje  
ct(Symfony\Component\Console\Output\ConsoleOutput))  
#14 /var/www/html/nextcloud/console.php(100): OC\Console\Application-\>run()  
#15 /var/www/html/nextcloud/occ(11): require\_once(’/var/www/html/n…’)  
#16 {main}

**Das seht in nextcloud.log:**

{“reqId”:“X0zt@obQZJyGmwPoTkiycwAAAAc”,“level”:4,“time”:“2020-08-31T12:32:58+00:00”,“remoteAddr”:“192.168.135.14”,“user”:“01E22247-90D0-41C6-BD5D-B8BBCE58A45A”,“app”:“webdav”,“method”:“PUT”,“url”:"/nextcloud/remote.php/dav/calendars/01E22247-90D0-41C6-BD5D-B8BBCE58A45A/covid/23BDF036-F113-4947-991D-C0929324D815.ics",“message”:{“Exception”:“Sabre\DAV\Exception\UnsupportedMediaType”,“Message”:“Validation error in iCalendar: The value type (DATE or DATE-TIME) must be identical for DUE and DTSTART”,“Code”:0,“Trace”:[{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php",“line”:750,“function”:“validateICalendar”,“class”:“Sabre\CalDAV\Plugin”,“type”:"-\>",“args”:["\*\*\* sensitive parameter replaced _ **","** _ sensitive parameter replaced _**",false,{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”},false]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“beforeWriteContent”,“class”:“Sabre\CalDAV\Plugin”,“type”:"-\>",“args”:["**_ sensitive parameter replaced _ **",{“class”:“OCA\DAV\CalDAV\CalendarObject”},"** _ sensitive parameter replaced _**",false]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:1139,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:[“beforeWriteContent”,["**_ sensitive parameter replaced _ **",{“class”:“OCA\DAV\CalDAV\CalendarObject”},"** _ sensitive parameter replaced _**",false]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:515,“function”:“updateFile”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:["**_ sensitive parameters replaced \*\*\*"]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:"-\>",“args”:[{“ **class** ”:“Sabre\HTTP\Request”},{“ **class** ”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:474,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:[“method:PUT”,[{“ **class** ”:“Sabre\HTTP\Request”},{“ **class** ”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:[{“ **class** ”:“Sabre\HTTP\Request”},{“ **class** ”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:[]},{“file”:"/var/www/html/nextcloud/apps/dav/lib/Server.php",“line”:320,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"-\>",“args”:[]},{“file”:"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"-\>",“args”:[]},{“file”:"/var/www/html/nextcloud/remote.php",“line”:167,“args”:["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require\_once”}],“File”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php",“Line”:885,“CustomMessage”:"–"},“userAgent”:“okhttp/4.6.0”,“version”:“19.0.2.2”,“id”:“5f4cf0b47c99c”}

**Ich habe jetzt den cron job und die ooc wieder zurückgestellt:**  
**sudo -u apache php occ config:app:delete dav sendEventRemindersMode**  
**Fehler bleibt, es werden keine reminder per Email verschickt!**

**SabreDav folgender Fehler sobald der trigger ansetzt um den Reminder per Email zu verschicken:**  
Sabre\DAV\Exception\UnsupportedMediaType: Validation error in iCalendar: The value type (DATE or DATE-TIME) must be identical for DUE and DTSTART

**Oder:**  
TypeError: Argument 2 passed to OCA\Circles\Db\CirclesRequest::getCircle() must be of the type string, null given,

---

<div class="post-metadata">

**Author:** ![mueller](https://help.nextcloud.com/letter_avatar/mueller/32/6_22734026db12803ebb3e059622ac3534.png) [@mueller](https://help.nextcloud.com/u/mueller)\
**Post date:** [September 2, 2020, 10:46am UTC](https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055/2 "2020-09-02T10:46:53Z")

</div>

Hat keiner eine Idee!?

---

<div class="post-metadata">

**Author:** ![mueller](https://help.nextcloud.com/letter_avatar/mueller/32/6_22734026db12803ebb3e059622ac3534.png) [@mueller](https://help.nextcloud.com/u/mueller)\
**Post date:** [September 2, 2020, 1:13pm UTC](https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055/3 "2020-09-02T13:13:49Z")

</div>

Auf meinem Testsystem mit der identischen Konfiguration funktioniert die Emailbenachrichtigung/Event problemlos. **Der einzige Unterschied zu dem System das den Fehler auswirft ist die php version,:7.3.12**.  
Das funktionierende System läuft mit php 7.4.5.

---

<div class="post-metadata">

**Author:** ![4\_t](https://help.nextcloud.com/user_avatar/help.nextcloud.com/4_t/32/28623_2.png) [@4\_t](https://help.nextcloud.com/u/4_t)\
**Post date:** [September 2, 2020, 8:28pm UTC](https://help.nextcloud.com/t/nextcloud-19-0-2-fehler-email-benachrichtigung-event-kalender/91055/4 "2020-09-02T20:28:47Z")

</div>

Wir haben seit ca 3 Wochen den selben Fehler auf unserem System. Allerdings werden EMailbenachrichtigungen ausgegeben. Begonnen hat die Fehlermeldung meiner Meinung nach, nachdem ein Termin der bereits verstrichen war in ein zukünftiges Datum geändert und eine Emailbenachrichtigung hinzugefügt wurde. Die Benachrichtigung funktionierte hier nicht. Neue Termine liefern eine Benachrichtigung. NC und PHP sind auf dem neuesten Stand. Es gibt sonst keinerlei Einschränkungen in den Funktionen. Nur alle 10 min folgende Fehlermeldung in der log:

```
TypeError: Argument 2 passed to OCA\Circles\Db\CirclesRequest::getCircle() must be of the type string, null given, called in /var/www/nextcloud/apps/circles/lib/Service/CirclesService.php on line 271

/var/www/nextcloud/apps/circles/lib/Service/CirclesService.php - line 271:

OCA\Circles\Db\CirclesRequest->getCircle()

/var/www/nextcloud/apps/circles/lib/Api/v1/Circles.php - line 266:

OCA\Circles\Service\CirclesService->detailsCircle()

/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php - line 480:

OCA\Circles\Api\v1\Circles::detailsCircle()

/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php - line 178:

OCA\DAV\Connector\Sabre\Principal->circleToPrincipal()

/var/www/nextcloud/apps/dav/lib/DAV/Sharing/Backend.php - line 200:

OCA\DAV\Connector\Sabre\Principal->getPrincipalByPath()

/var/www/nextcloud/apps/dav/lib/CalDAV/CalDavBackend.php - line 2316:

OCA\DAV\DAV\Sharing\Backend->getShares()

/var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php - line 496:

OCA\DAV\CalDAV\CalDavBackend->getShares()

/var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php - line 142:

OCA\DAV\CalDAV\Reminder\ReminderService->getAllUsersWithWriteAccessToCalendar()

/var/www/nextcloud/apps/dav/lib/BackgroundJob/EventReminderJob.php - line 68:

OCA\DAV\CalDAV\Reminder\ReminderService->processReminders()

/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 62:

OCA\DAV\BackgroundJob\EventReminderJob->run()

/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 57:

OC\BackgroundJob\Job->execute()

/var/www/nextcloud/cron.php - line 126:

OC\BackgroundJob\TimedJob->execute()
```
