Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stefanomonteiro opened this issue Sep 29, 2020 · 0 comments
Open

Comments

@stefanomonteiro
Copy link

stefanomonteiro commented Sep 29, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant