WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Google calendar links too long when using JetPack sharing plugin (4 posts)

  1. tipichris
    Member
    Posted 1 month ago #

    The 'Add to Google Calendar' link that appears on single events pages is generating links that are way too long, resulting in a 414 error from Google.

    As far as I can make out this is down to interaction with other plugins, specifically for me with JetPack's sharing plugin. TEC checks the length of the event description and takes action to ensure it is not too long if necessary. But it then applies 'the_content' filter. At some point, and I guess this is the point, the sharing plugin adds around 3,500 characters to the description, taking, in my case, a 452 character description which passed the length check to a 3,960 character description which causes Google to throw a 414 error.

    https://wordpress.org/plugins/the-events-calendar/

  2. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 1 month ago #

    Hi tipichris,

    Thanks for getting in touch. Unfortunately, we're not able to help out with plugin conflicts here on the free forum. However, we do hope to improve compatibility with Jetpack, and I've reported this issue to our team so we can look into it further. I'm sorry there isn't more I can to assist you right now.

    Best,
    Leah

  3. tipichris
    Member
    Posted 1 month ago #

    thanks Leah. It was meant as bug report rather than a plea for help so that's fine.

    For the benefit of anyone who comes across this thread I've worked around it with this in my theme's functions.php to just put a further info URL in the event description when adding to google calendar

    /** Use only the URL for more info for the description for gcal **/
    function foow_tribe_gcal_hack($params) {
      $params['details'] = urlencode('Details at ' . get_permalink());
      return $params;
    }
    add_filter('tribe_google_calendar_parameters', 'foow_tribe_gcal_hack');
  4. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 1 month ago #

    Thanks for posting the solution tipichris! I really appreciate you sharing that for others.

    Best,
    Leah

Reply

You must log in to post.

About this Plugin

About this Topic