• Resolved sandrachi

    (@sandrachi)


    I’ve added the ICS-Calendar Plugin to our soon-to-be school’s website and at first it worked (during the summer holidays). Months later I went back to the page and saw that it was not loading properly. I tried to edit the page, but I couldn’t even do that due to an error message.

    The ICS-File is correct according to the information I got from Iserv (which is the platform the calendar is on). However, they also said that some letters or special characters might be a problem for the plugin. The whole site is in German and so is the calender so that might be true. Also one of my colleagues is using the description field to put veeery long texts there so that might also be an issue. However, upon testing I could not solve my problem. Could a memory limit cause the problem?

    Can you please look into this?
    I’m using the code as follows:
    [ics_calendar url=”https://obslado.de/iserv/public/calendar?key=5fcb0a3c99922b7482e72372f217cf86″ title=”DISPLAY_TITLE” description=”DISPLAY_DESCRIPTION”]

    Unfortunately, I can’t check any errors that the server might be getting as I am only a user on this server. Also, I still have to check with the hoster if allow_url_fopen is enabled. But since it worked before I assume it is.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    According to website https://icalendar.org/validator.html there are some problems with your file “public.ics”. But I don’t know if this is the real problem…

    I want to try your ics-url in my website (in a test-page), but it’s is not complete. Do you use month, week or list view?

    • This reply was modified 5 years, 1 month ago by pckrullenbol.
    Plugin Author room34

    (@room34)

    Thanks for your message. I tried the feed on my test site and am running into the same problem.

    The error message I’m seeing suggests an issue in the iCal Parser library in a function that handles recurring events. It’s possible that there’s a recurrence-related issue, or it could be that special characters are causing the parser to fail.

    I opened your feed file directly in a text editor and I noticed some strange characters in a few of the event descriptions. I ran a tool that scrubs all non-ASCII characters, and it’s still not working, so it doesn’t appear to be related to these characters.

    Here’s the stack trace of the error message, just FYI:

    [15-Oct-2019 13:26:48 UTC] PHP Notice:  Undefined variable: recurringDatetime in /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php on line 1839
    [15-Oct-2019 13:26:48 UTC] PHP Fatal error:  Uncaught Error: Call to a member function getTimestamp() on null in /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php:1839
    Stack trace:
    #0 /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php(753): ICal\ICal->processRecurrences()
    #1 /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php(585): ICal\ICal->initLines(Array)
    #2 /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/class-r34ics.php(227): ICal\ICal->initString('BEGIN:VCALENDAR...')
    #3 /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/class-r34ics.php(723): R34ICS->display_calendar(Array)
    #4 /var/www/html/34blocks.com/html/wp-includes/shortcodes.php(325): R34ICS->shortcode(Array, '', 'ics_calendar')
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /var/www/html/34blocks.com/html/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(ics_ca...', 'do_shortcode_ta...', '[ic in /var/www/html/34blocks.com/html/wp-content/plugins/ics-calendar/vendors/ics-parser/src/ICal/ICal.php on line 1839

    More testing to do on my end. This does appear to be a problem in the iCal Parser library, which my plugin uses but I didn’t build. It’s possible I may be able to do something to prep the data before feeding it to the parser though that will resolve this.

    Plugin Author room34

    (@room34)

    Thanks @pckrullenbol for reminding me about the iCal Validator! (Also, the shortcode is fine as shown; if no view is set, it defaults to month view.)

    @sandrachi If you plug your feed’s URL into the validator, you can see there are some errors in the feed. They do not pertain to the special characters. The problem that seems to be causing the iCal Parser to fail is most likely related to the RECURRENCE-ID errors.

    Since your feed has errors, those will need to be resolved before I can really do anything else within the plugin to help.

    Thread Starter sandrachi

    (@sandrachi)

    Tanks a lot for your quick response. I have now turned back to Iserv and asked them how the errors in the feed can be resolved (since I only have access to the link I can not do anything to alter the feed itself).
    I hope they can help me. I will report back to you as soon as I know more about the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page crashes and can’t be edited any more’ is closed to new replies.