Support » Plugin: The Events Calendar » Fatal PHP Error in version 5.14.0 (comma after last attribute in apply_filters)

  • Resolved KZeni

    (@kzeni)


    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 ) in the-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)
  • Thread Starter KZeni

    (@kzeni)

    Please release a patched version of this ASAP as there are likely a lot of sites set to auto-update that will potentially break site-wide after updating to this bugged 5.14.0 release.

    Plugin Support Guga Alves

    (@gugaalves)

    Hi KZeni,

    Apologies for the issues you are issue you are facing, and also thank you for sharing the issue here!

    We have detected that issue and we’re working on a new release to fix that issue.

    Please be sure to update your site to version 5.14.0.1 as soon as we launch it, should be available soon (really soon, we’re working on it right now).

    Thread Starter KZeni

    (@kzeni)

    Thanks for the update & fixed release that followed! Running 5.14.0.1 without issue now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.