Home › Forums › Calendar Products › Events Calendar PRO › Trouble with Google Calendar Link
- This topic has 8 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
January 5, 2012 at 4:16 pm #12933
Melody
Participantwe 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/January 6, 2012 at 12:46 pm #12958Rob
MemberHi 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.
March 22, 2012 at 9:39 am #17069Jen
ParticipantMelody, 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.
March 23, 2012 at 4:40 pm #17112Rob
MemberThanks Jen!
Melody: any luck?
May 2, 2012 at 2:29 pm #18578Timothy
ParticipantJen, thanks (!) for posting this workaround – saved me a lot of work until 2.1 is released.
May 15, 2012 at 2:56 pm #19214Rob
MemberGlad 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!
May 16, 2012 at 7:35 am #19254Melody
ParticipantHi, 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.
May 16, 2012 at 11:57 am #19268Jonah
ParticipantGreat to hear Melody! Let us know if there’s anything else we can help out with. I’m closing this thread accordingly 🙂
July 7, 2015 at 6:20 am #976848Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Trouble with Google Calendar Link’ is closed to new replies.
