+ Google Calendar Link in the pages of events does not work

Home Forums Calendar Products Events Calendar PRO + Google Calendar Link in the pages of events does not work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #967865
    Lauren Harris
    Participant

    I am also experiencing the “Invalid Request” error in some cases when clicking on the + Google Calendar button on a single event page. I have done some testing to try to narrow the issue, but it seems oddly variable. I found some consistency with it breaking when I added images to the body of the event. I found more consistency when adding lightboxes, and still more consistency when adding 5 or more lightboxes. However, there were exceptions in each of those cases (for example, after some time, it was still broken even after deleting all but 4 lightboxes).

    I troubleshooted this somewhat extensively with the developers of my Theme. They concluded the following:
    “It seems to me that they should strip the HTML of the event content (line 2673 in lib/the-events-calendar.class.php) as Google Calendar complains when you pass HTML code in the calendar event’s details. It might also have something to do with the length of the details, but in any case this should not contain any HTML, in my opinion.”

    I have tried this in multiple browsers, with multiple users, with cache and history clearing, and have experienced the issue across the board.

    I am in the process of testing this on a 2014 default WP theme with no extras in a subdomain of my account, but it is taking time to set up. However, it appears this has already been tested elsewhere (https://theeventscalendar.com/support/forums/topic/google-calendar-link-in-the-pages-of-events-does-not-work/) and the problem has persisted.

    #967922
    Brian
    Member

    Hi,

    Sorry for the issues you are having. I can help out here.

    We are working on a better filter for the core plugin for the Google Calendar Export to strip out html and preserve line breaks. It is not ready to be included in the 3.10 release this week.

    For now does this filter help out:

    http://pastebin.com/Cxq1svXz

    Can you add that coding to your theme’s function.php and let me know if it works for you.

    Cheers

    #967927
    Lauren Harris
    Participant

    It looks like that did the trick! At least for now. In the past I’ve had the problem disappear temporarily, and then come back. However, knowing you guys are working on improving the filter is great news, so I think I’m in good shape until you roll that out.

    Thanks!

    #968111
    Brian
    Member

    Great glad it helps.

    Look for a new filter to be apart of the plugin in the version after 3.10.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘+ Google Calendar Link in the pages of events does not work’ is closed to new replies.