ICal and ICS doesn’t work any longer
-
Hi Joe,
since the last updates my ICal and ICS functions doesn’t work any longer. For example: If the API is enabled and I try to get data like the following it works:
https://domain.com?to=2024-09-19&from=2024-08-20&mc-api=json
https://domain.com?to=2024-09-19&from=2024-08-20&mc-api=csv
But if I use ICal here, which should be possible base on the docu:
https://domain.com?to=2024-09-19&from=2024-08-20&mc-api=ical
It throws:Warning: Undefined array key "trigger" in /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php on line 98
Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php on line 98
Warning: Undefined array key "trigger" in /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php on line 99
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php on line 99
Fatal error: Uncaught TypeError: Spatie\IcalendarGenerator\Components\Event::alertMinutesAfter(): Argument #1 ($minutes) must be of type int, string given, called in /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php on line 104 and defined in /home/webpages/www/web/wp-content/plugins/my-calendar/vendor/spatie/icalendar-generator/src/Components/Event.php:250 Stack trace: #0 /home/webpages/www/web/wp-content/plugins/my-calendar/includes/ical.php(104): Spatie\IcalendarGenerator\Components\Event->alertMinutesAfter('', '') #1 /home/webpages/www/web/wp-content/plugins/my-calendar/my-calendar-api.php(343): mc_generate_ical(Array) #2 /home/webpages/www/web/wp-content/plugins/my-calendar/my-calendar-api.php(103): mc_api_format_ical(Array) #3 /home/webpages/www/web/wp-content/plugins/my-calendar/my-calendar-api.php(78): mc_format_api(Array, 'ical') #4 /home/webpages/www/web/wp-includes/class-wp-hook.php(324): my_calendar_api(Object(WP)) #5 /home/webpages/www/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/webpages/www/web/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #7 /home/webpages/www/web/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array) #8 /home/webpages/www/web/wp-includes/class-wp.php(813): WP->parse_request('') #9 /home/webpages/www/web/wp-includes/functions.php(1336): WP->main('') #10 /home/webpages/www/web/wp-blog-header.php(16): wp() #11 /home/webpages/www/web/index.php(17): require('/home/webpages/...') #12 {main} thrown in /home/webpages/www/web/wp-content/plugins/my-calendar/vendor/spatie/icalendar-generator/src/Components/Event.php on line 250Furthermore I installed on Android ICSx^5 to collect data from ICal calendars and feed them to my Android calendar, which also doesn’t work any longer. Even with Thunderbird it’s not possible to collect ICal data.
I’m using the url you’re presenting with the plugin: https://domain.com/feed/my-calendar-ical/As I started a year ago with the plugin the feed only worked via the Google URL: https://domain.com/feed/my-calendar-google/
Now this doesn’t work any longer, too.
I turned on all debug information WP has, but on a sync via Thunderbird or Android app, nothing gets written into the logs as warning or error.
Furthermore, if I download the ICS manually via the browser, there are not entries in it:
https://domain.com/feed/my-calendar-ics/I also tested all of these options with all plugins deactivated, so there was only my-calendar active and running.
Hopefully you have a fast solution for such a big problem.
Best regards
- You must be logged in to reply to this topic.