Skip to content

Uncaught Error: Call to a member function getName() on null #19

Description

@stefanomonteiro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions