• Resolved KeanuTang

    (@tedtang)


    Looking at the code in /the-events-calendar/src/Tribe/iCal.php I see:

    ? ? /**
    ? ? ?* Get the start of the .ics File
    ? ? ?*
    ? ? ?* @since 5.16.0 - Add a check for iCAL type to prevent Outlook ics from including X-WR-CALNAME.
    ? ? ?*/
    ? ? protected function get_start() {
    ? ? ? ? ...
    ? ? ? ? if ( ! empty( $x_wr_calname ) && 'ical' === $this->type ) {
    ? ? ? ? ? ? $content .= 'X-WR-CALNAME:' . $x_wr_calname . "\r\n";
    ? ? ? ? }

    I have enabled my calendar to have the “Export Outlook .ics file” option with this:

    add_filter( 'tec_views_v2_subscribe_link_outlook-ics_visibility', '__return_true' );

    The core problem is, the generated .ics file still has X-WR-CALNAME: in it. This causes extra prompts/clicks when the user tries to open the .ics with Outlook.

    It appears as though this code assumes that the “Export Outlook .ics file” link is formatted as https://website.com/events/event-link?outlook-ical=1, but the link that is generated is https://website.com/events/event-link?ical=1

    The bug appears to be in /the-events-calendar/src/Tribe/Views/V2/iCalendar/Links/Outlook_Export.php:

    ? ? public function get_uri( View $view = null ) {
    ? ? ? ? if ( null === $view || is_single( Tribe__Events__Main::POSTTYPE ) ) {
    ? ? ? ? ? ? // Try to construct it for the event single.
    ? ? ? ? ? ? return add_query_arg( [ 'ical' => 1 ], get_the_permalink() );
    ? ? ? ? }

    Instead of ‘ical’, it seems like we need this to be ‘outlook-ical’ to get it to function correctly.

    ? ? ? ? ? ? return add_query_arg( [ 'outlook-ical' => 1 ], get_the_permalink() );

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter KeanuTang

    (@tedtang)

    For reference, I ran into this as I was investigating this post: Adding a download .ics link | www.remarpro.com

    Plugin Support Darian

    (@d0153)

    Hi @tedtang

    Thanks for reaching out and for sharing this information.

    At this time, we have been able to reproduce the problem and have identified a potential fix.

    I have added your case to our internal ticket. While we don’t have an ETA, you’ll get notified once there is an update and fix.

    If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.remarpro.com support guidelines.


    Internal Bug Ticket Reference: BTRIA-1795

    Plugin Support Guga Alves

    (@gugaalves)

    Hi @tedtang,

    Good news, I can see that the internal bug ticket BTRIA-1795 is done and that fix is included on the most recent plugin version we’ve launched today.

    As always, we recommend testing updates on a staging site first and keeping a recent backup, but the update should work smoothly.

    Please upgrade your Events Calendar plugin to apply this fix to your site.

    Best regards

    Plugin Support Darian

    (@d0153)

    Hi @tedtang

    It appears that there hasn’t been any recent activity on this thread, so we’ll consider it resolved. However, if you have any additional questions or concerns, feel free to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug in “Export Outlook .ics file”’ is closed to new replies.