• Resolved hmlr

    (@hmlr)


    Hi, i’ve setup the application with my shared calendar. I’ve verify with the command curl -k -S –basic https://172.18.18.150/webdav/public-calendars/domain/Banquet -u username. the server reply MDaemon’s WebDAV server is running and properly configured .I’ve test with thunderbird working fine as well.

    I’ve check in log setting nothing appear except Log created on 19:07:17 11:25:00
    CalendarURL:https://172.18.18.150/webdav/public-calendars/domain/Banquet
    Tag://cal:calendar-data

    But no files are created on uploads/calendar directory. And i cannot find any informations about the issue. Maybe it’s coming the server certificat ? As i’m using option -k.
    Thanks for ur help
    Vincent

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author hoernerfranz

    (@hoernerfranz)

    have you tried if it works with https:// instead of https:// ?
    additionally, you can use caldav2ics as a test/debugging tool.
    just set $LogEnabled to true in the config section, as well as your server URL and credentials.
    you can also fiddle with the curl options (see line 94 ff) in there.

    • This reply was modified 5 years, 4 months ago by hoernerfranz.
    Thread Starter hmlr

    (@hmlr)

    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

    Plugin Author hoernerfranz

    (@hoernerfranz)

    Ok, so your server actually does send calendar data ?? .
    this, however, cannot be parsed correctly, as it seems.
    can you send me the complete logfile by email to
    expires190731 [AT] hoernerfranzracing.de ?
    and the output of phpinfo() ?

    Plugin Author hoernerfranz

    (@hoernerfranz)

    As suggested in the answer above, it turned out to be an issue with the servers answer which could not be parsed using the plugin’s xml->xpath method.
    solution was an alternative parsing scheme in the already mentioned caldav2ics.
    this can be run automatically via cron job, thus resolving the problem for the OP of this thread.
    I’m closing this now as resolved, though I did not (yet) port the mentioned solution to wp-caldav2ics.
    maybe I’ll do this later on, but no guarantee ?? .
    (I have switched from WP to Grav recently and focus my development efforts there.
    I’ll keep wp-caldav2ics alive, however, at least until a major rewrite will be necessary due to WP API/Policy changes…)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No log, no calendar file’ is closed to new replies.