Fatal PHP Error in version 5.14.0 (comma after last attribute in apply_filters)
-
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
)
inthe-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.php
on line 53.Turns out there is:
$use_single_url = apply_filters( 'tec_views_v2_subscribe_links_gcal_single_url', true, );
in that
the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Google_Calendar.php
file 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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.