WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Google calendar links too long when using JetPack sharing plugin

[Resolved] Google calendar links too long when using JetPack sharing plugin

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author leahkoerper

    @leahkoerper

    Modern Tribe Support Rep

    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

    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');
    Plugin Author leahkoerper

    @leahkoerper

    Modern Tribe Support Rep

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

    Best,
    Leah

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Google calendar links too long when using JetPack sharing plugin’ is closed to new replies.