Hi, thanks for ur reply !
I’ve tried, it’s look better, but its still doesn’t work i get the following warning :
PHP Warning: SimpleXMLElement::xpath(): Undefined namespace prefix in /var/www/wordpress/wp-content/plugins/wp-caldav2ics/caldav2ics.php on line 114
PHP Warning: SimpleXMLElement::xpath(): xmlXPathEval: evaluation failed in /var/www/wordpress/wp-content/plugins/wp-caldav2ics/caldav2ics.php on line 114
PHP Warning: Invalid argument supplied for foreach() in /var/www/wordpress/wp-content/plugins/wp-caldav2ics/caldav2ics.php on line 148
root@rss …/plugins/wp-caldav2ics# vi /var/www/wordpress/wp-content/plugins/wp-caldav2ics/caldav2ics.php
I don’t post all the log but the end of the log file look like :
SEQUENCE:0
DTSTAMP:20190709T224712Z
SUMMARY:Revenue Meeting
LOCATION:Salle Banquet
PRIORITY:5
DTSTART;TZID=Hawaiian Standard Time:20190723T100000
DTEND;TZID=Hawaiian Standard Time:20190723T110000
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:PT0S
END:VALARM
END:VEVENT
END:VCALENDAR
</C:calendar-data>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webdav/public-calendars/domain/Banquet/040000008200E00074C5B7101A82E00800000000D097D6362228D50100000000000000001000000008972C9FB0E35A438744B4C9123E5922.ics</D:href>
<D:propstat>
<D:prop>
<D:getetag>2019-06-21T11:12:23.000Z</D:getetag>
<C:calendar-data>BEGIN:VCALENDAR
PRODID:-//MDaemon Technologies Ltd//MDaemon 18.5.3
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
UID:
040000008200E00074C5B7101A82E00800000000D097D6362228D501000000000000000010
00000008972C9FB0E35A438744B4C9123E5922
SEQUENCE:0
DTSTAMP:20190621T211223Z
SUMMARY:Mariage NZ
LOCATION:PLAGE
PRIORITY:5
DTSTART;VALUE=DATE:20210418
DTEND;VALUE=DATE:20210419
TRANSP:TRANSPARENT
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:-PT18H
END:VALARM
END:VEVENT
END:VCALENDAR
</C:calendar-data>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
The calendar.ics file contain only those information :
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hoernerfranzracing/caldav2ics.php
END:VCALENDAR
It’s look like there is an issue when reading the xml data the response from CURL
$xml = simplexml_load_string($response)
$data = $xml->xpath(‘//cal:calendar-data’);
I hope it’s help.
VIncent