I had my site update to The Events Calendar 5.14.0 and my site started giving a fatal PHP error.
The error was:
Parse error of an unexpected
the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.phpon line 53.
Turns out there is:
$use_single_url = apply_filters( 'tec_views_v2_subscribe_links_gcal_single_url', true, );
the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.phpfile which should instead be:
$use_single_url = apply_filters( 'tec_views_v2_subscribe_links_gcal_single_url', true );
(Simply remove the unnecessary comma at the very end of the apply_filters function.)
This might be PHP version specific (this is happening with PHP 7.2 at the very least), but this plugin says it supports PHP 7.1 and newer. Also, this seems like a very needless issue where it’s already an unnecessary bit of code that just breaks things.
- You must be logged in to reply to this topic.