Support » Plugin: ICS Calendar » Using ICSCalendar with groups.io

  • ISO insight why ICSCalendar plug-in fails to render subscribed calendar originating from platform for groups.io

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author room34

    (@room34)

    Hi… it looks like the request is timing out. Does your calendar have a very large number of events, i.e. several events every day, a large number of recurring events, or a feed that spans several years?

    I’ve been running into some issues with the plugin (or really, the underlying parser library) dealing with very large calendars. The processing time and/or memory requirements to handle a large amount of data may cause the page to fail to load.

    A few things you can try:

    1. Adjust the parameters in the shortcode to limit the range of dates being displayed. You could try limitdays="90" to set it to only show the next 3 months, for example. (The default value is 365.)

    2. Increase your memory limit. There are plugins that allow you to change this, or you can try entering ini_set('memory_limit', '256M'); in your wp-config.php file.

    3. Likewise with the execution time. ini_set('max_execution_time', 90); for example. However, if the page takes that long to load, users are unlikely to wait for it anyway.

    4. See if you can configure the feed itself to include fewer events. Some feeds may go back several years, which is probably not needed for your website, but which can make parsing the calendar time out. (The ability to customize feed settings depends on the source.)

    One of my “day job” web development clients is a church that is intending to use this plugin, and we’re dealing with some of these same issues on their calendar. It goes back to 2016, has 10+ events almost every day, and a number of recurring weekly events over a span of multiple years. So, I’m actively looking at other things I can do with the plugin to improve efficiency. Recurring events are really the toughest nut to crack, because the parser needs to iterate through each occurrence, which can really cause the data set to explode in size.

    • This reply was modified 2 months, 3 weeks ago by room34.

    The calendar is not heavily active and can be found here (https://josephspeople.org/events-calendar/). This page uses Google API to publish a shared calendar from a Google Apps for Non-Profits account which uses a groups.io calendar subscribe link. If I subscribe using the same link on my iOS device (iPhone 8P), all events showing within groups.io calendar interface appear, while using same subscribe link via Google results in only a subset of events from groups.io, which is why I began looking at ICSCalendar plug-in. I am a novice WP webmaster. Te site is hosted on WPEngine, where I might find (but do not now how to find) logs with insight.

    I also do not (or at least did not) see ICSCalendar under settings in my wpadmin. Is that where the suggestions made would be implemented? is there a delay for the plug-in settings to become available?

    Reply being referenced ::

    Hi… it looks like the request is timing out. Does your calendar have a very large number of events, i.e. several events every day, a large number of recurring events, or a feed that spans several years?

    I’ve been running into some issues with the plugin (or really, the underlying parser library) dealing with very large calendars. The processing time and/or memory requirements to handle a large amount of data may cause the page to fail to load.

    A few things you can try:

    1. Adjust the parameters in the shortcode to limit the range of dates being displayed. You could try limitdays=”90″ to set it to only show the next 3 months, for example. (The default value is 365.)

    2. Increase your memory limit. There are plugins that allow you to change this, or you can try entering ini_set(‘memory_limit’, ‘256M’); in your wp-config.php file.

    3. Likewise with the execution time. ini_set(max_execution_time, 90); for example. However, if the page takes that long to load, users are unlikely to wait for it anyway.

    4. See if you can configure the feed itself to include fewer events. Some feeds may go back several years, which is probably not needed for your website, but which can make parsing the calendar time out. (The ability to customize feed settings depends on the source.)

    One of my “day job” web development clients is a church that is intending to use this plugin, and we’re dealing with some of these same issues on their calendar. It goes back to 2016, has 10+ events almost every day, and a number of recurring weekly events over a span of multiple years. So, I’m actively looking at other things I can do with the plugin to improve efficiency. Recurring events are really the toughest nut to crack, because the parser needs to iterate through each occurrence, which can really cause the data set to explode in size

    Plugin Author room34

    (@room34)

    OK, thanks. The number of events showing on this calendar should not be an issue at all, so the timeout must be due to something else.

    Can you share the direct ICS feed URL you’re using in your shortcode? If you’d prefer not to post it here, you can email it to support at room34 dot com.

    Plugin Author room34

    (@room34)

    Thanks for sending me the feed URL by email… I tried this out on my test site and the results were a bit alarming… it basically brought the entire site to a halt, and I ended up having to reboot the server and then manually edit the database to remove the shortcode from the page in order to resolve the issue.

    It appears that there’s an issue with one or more recurring events on your calendar that are tying up the parser. I turned on the recently added skiprecurrence="true" setting (added in version 5.6.0) in the shortcode, and the calendar comes right up.

    • This reply was modified 2 months, 3 weeks ago by room34.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.