Trouble with Google Calendar Link

Home Forums Calendar Products Events Calendar PRO Trouble with Google Calendar Link

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #12933
    Melody
    Participant

    we get a 414 error when trying to use the Google Calendar Link. Message reads: “The requested URL is too large to process.”
    here’s the URL: http://makersfactory.com/events/

    #12958
    Rob
    Member

    Hi Melody. Thanks for posting this. Over the past day or so we’ve identified this as a true bug in the plugin, caused when someone has event entry body/descriptions that are particularly long. We are working to fix this for the 2.1 release – in the interim, my best suggestion for keeping your Google Calendar link functional would be to try and keep those event descriptions as brief as possible. Not ideal, but unfortunately the best solution we’ve got until the true fix is deployed. Let me know if you have any other questions on this and I can elaborate as needed.

    #17069
    Jen
    Participant

    Melody, I ran into this same problem. If you’re handy with PHP, you can work around it by hacking the function googleCalendarLink(), which is located in the file events-calendar-pro.php. You can either modify the function within the plugin itself (not recommended, but easier and faster) or by creating a copy of the function in your theme, renaming it, editing it, and then calling the custom function in your views.

    Anyway, what I’m doing is using the WordPress function wp_trim_words() to shorten the description to 55 words within the Google Calendar link. This helps keep the URL from becoming too large.

    I’m fixing some other stuff at the same time, so my new function now has a line that reads:

    ‘details’ => str_replace( ‘ ‘ , ‘+’, urlencode( html_entity_decode( wp_trim_words( strip_tags( do_shortcode ( get_the_content() ))), ENT_QUOTES, ‘UTF-8’))),

    Someone out there who knows PHP better than I do can probably come up with a more elegant solution.

    #17112
    Rob
    Member

    Thanks Jen!

    Melody: any luck?

    #18578
    Timothy
    Participant

    Jen, thanks (!) for posting this workaround – saved me a lot of work until 2.1 is released.

    #19214
    Rob
    Member

    Glad to hear it, Timothy. Haven’t heard back from Melody so I assume she’s all set too. I’m going to mark Jen’s response as the answer accordingly.

    Thanks again Jen!

    #19254
    Melody
    Participant

    Hi, We ended up just using the calendar a little smaller (http://makersfactory.com/events/) so that was our workaround. Just updated WordPress and the plugin and everything is running fine with Thesis 1.8.

    #19268
    Jonah
    Participant

    Great to hear Melody! Let us know if there’s anything else we can help out with. I’m closing this thread accordingly 🙂

    #976848
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Trouble with Google Calendar Link’ is closed to new replies.