• dtripp

    (@dtripp)


    I am using SmarterMail Enterprise 15.7 and am looking to leverage the WP-CalDav2ICS plugin to create an .ics file – I’m receiving the “Server Response Invalid and cannot be parsed” error message and here are the contents of the mopst recent log file:

    Log created on 19:11:08 06:05:15
    CalendarURL:https://mail.cloudaccess.net:443/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/
    <?xml version=”1.0″ encoding=”utf-8″?>
    <D:multistatus xmlns:D=”DAV:”>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/7441360131d84cf3a077bfbe394da772.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637079568094308195</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:REQUEST
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:jeremy
    [email protected]
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20200127
    DTSTAMP:20191029T144009Z
    DTSTART:20200124
    LAST-MODIFIED:20191029T144009Z
    LOCATION:Four Points by Sheraton, Wakefield, MA
    ORGANIZER;CN=”Drew Tripp”:MAILTO:[email protected]
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:MBCA Annual clinic
    TRANSP:OPAQUE
    UID:7441360131d84cf3a077bfbe394da772
    X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/edcd73a6005f46839f6faf66977118f8.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637088233416814437</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:PUBLISH
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20200105
    DTSTAMP:20191108T152221Z
    DTSTART:20200102
    LAST-MODIFIED:20191108T152221Z
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:ABCA Conference
    TRANSP:OPAQUE
    UID:edcd73a6005f46839f6faf66977118f8
    X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
    BEGIN:VALARM
    ACTION:DISPLAY
    SUMMARY:ABCA Conference
    TRIGGER:-P1D
    END:VALARM
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/8a20b72e35104d69bbf7f98cceaabd2b.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637088239269607149</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:PUBLISH
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20191108T224500Z
    DTSTAMP:20191108T153206Z
    DTSTART:20191108T174500Z
    LAST-MODIFIED:20191108T153206Z
    LOCATION:83 Postgate Road, South Hamilton, MA 01982
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:TEst web event
    TRANSP:OPAQUE
    UID:8a20b72e35104d69bbf7f98cceaabd2b
    BEGIN:VALARM
    ACTION:DISPLAY
    SUMMARY:TEst web event
    TRIGGER:-PT5M
    END:VALARM
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    </D:multistatus>Tag://C:calendar-data
    <?xml version=”1.0″ encoding=”utf-8″?>
    <D:multistatus xmlns:D=”DAV:”>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/7441360131d84cf3a077bfbe394da772.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637079568094308195</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:REQUEST
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:jeremy
    [email protected]
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20200127
    DTSTAMP:20191029T144009Z
    DTSTART:20200124
    LAST-MODIFIED:20191029T144009Z
    LOCATION:Four Points by Sheraton, Wakefield, MA
    ORGANIZER;CN=”Drew Tripp”:MAILTO:[email protected]
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:MBCA Annual clinic
    TRANSP:OPAQUE
    UID:7441360131d84cf3a077bfbe394da772
    X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/edcd73a6005f46839f6faf66977118f8.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637088233416814437</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:PUBLISH
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20200105
    DTSTAMP:20191108T152221Z
    DTSTART:20200102
    LAST-MODIFIED:20191108T152221Z
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:ABCA Conference
    TRANSP:OPAQUE
    UID:edcd73a6005f46839f6faf66977118f8
    X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
    BEGIN:VALARM
    ACTION:DISPLAY
    SUMMARY:ABCA Conference
    TRIGGER:-P1D
    END:VALARM
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    <D:response>
    <D:href>/WebDAV/cal/D0F7A50F-4285-4EB8-8294-F16EAC07FB78/8a20b72e35104d69bbf7f98cceaabd2b.ics</D:href>
    <D:propstat>
    <D:status>HTTP/1.1 200 OK</D:status>
    <D:prop>
    <D:getetag>637088239269607149</D:getetag>
    <C:calendar-data xmlns:C=”urn:ietf:params:xml:ns:caldav”>BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    VERSION:2.0
    PRODID:-//SmarterTools//SmarterMail//EN
    METHOD:PUBLISH
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    BUSYSTATUS:BUSY
    CLASS:PUBLIC
    DTEND:20191108T224500Z
    DTSTAMP:20191108T153206Z
    DTSTART:20191108T174500Z
    LAST-MODIFIED:20191108T153206Z
    LOCATION:83 Postgate Road, South Hamilton, MA 01982
    PRIORITY:5
    SEQUENCE:0
    SUMMARY:TEst web event
    TRANSP:OPAQUE
    UID:8a20b72e35104d69bbf7f98cceaabd2b
    BEGIN:VALARM
    ACTION:DISPLAY
    SUMMARY:TEst web event
    TRIGGER:-PT5M
    END:VALARM
    END:VEVENT
    END:VCALENDAR</C:calendar-data>
    </D:prop>
    </D:propstat>
    </D:response>
    </D:multistatus>

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

    (@hoernerfranz)

    well, that does not look too bad ?? – at least, it contains valid calendar data.
    in fact, I made a test and parsed it with debug.php from caldav2ics and it produced an ics file you can find here.
    this is not entirely valid, you can see errors when parsing it on ical validator.
    anyways, my icalendar test Plugin accepts it and shows the events…
    The Problem with wp-caldav2ics is, that I’m using PHP’s built in xml parser there,
    which does not accept your server’s answer due to some misformatting.
    caldav2ics from github, as opposed, uses a much simpler approach, just parsing text input line by line and putting together what seems to be valid into the ics file.
    this is also what I’m using currently, as I have switched from wordpress to Grav.
    in case you find you can work with the ics file produced by caldav2ics, I might consider porting the simpler approach to wp-caldav2cs.
    no guarantee, though ?? .

    Plugin Author hoernerfranz

    (@hoernerfranz)

    porting the new parser to wp-caldav2ics is now done ?? .
    you can check it out at GitHub.
    let me know if it works for you.

    Thread Starter dtripp

    (@dtripp)

    Thank you. Admittedly I have no idea what to do to ensure the solution you have put into place works though.

    Plugin Author hoernerfranz

    (@hoernerfranz)

    just download the zip file from the github repository (button download or clone) somewhere to you local computer.
    Unpack all files, folder wp-caldav2ics-master will be created.
    then upload all files from wp-caldav2ics-master folder to your plugins/wp-caldav2ics directory on your server, with ftp or rsync.

    Plugin Author hoernerfranz

    (@hoernerfranz)

    ..just an additional note:
    if you don’t have ftp access to your server, you can also:

    1. rename unpacked folder from zip file to wp-caldav2ics (omit the -master)
    2. create a new zip file wp-caldav2ics.zip from the renamed folder
    3. be sure the zip file contains the new folder (name), not just the files
    4. in your WP Dashboard, select plugins-install
    5. then choose upload and select the new zip file you just created
    Plugin Author hoernerfranz

    (@hoernerfranz)

    ok, I forgot to note that if you choose 2nd method (zip file from dashboard),
    you will first have to uninstall the old version, as WP does not allow updates for plugins from zip file.
    however, there is a plugin which enables to do just that: this one
    – not sure if this works, though (didn’t check it out, so far).
    HTH

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Server Response Invalid and cannot be parsed’ is closed to new replies.