Hi, I am getting the following error when trying to read an ical.
Fatal error: Uncaught Error: Call to a member function getName() on null in ..../icalendar-master/includes/ical.php on line 581
Simply copied the code from the documentation.
require_once(WP_PLUGIN_DIR . '/stemon-calendar/icalendar-master/zapcallib.php');
$icalstring = 'https://www.lodgify.com/da268dd0-4648-49dd-8250-ac67a8d5929d.ics';
$icalobj = new ZCiCal($icalstring);
If any help on figuring out why of the error, please.
It works in the validator: https://icalendar.org/validator.html?url=https://www.lodgify.com/da268dd0-4648-49dd-8250-ac67a8d5929d.ics