Home › Forums › Calendar Products › Events Calendar PRO › Embed conflict with videos on GravityForm and GravityView
- This topic has 13 replies, 5 voices, and was last updated 9 years, 9 months ago by
Robyn.
-
AuthorPosts
-
June 30, 2016 at 12:46 pm #1134162
Robyn
ParticipantHello,
When I embed a video URL in a custom content field with GravityView it displays our calendar events widget instead of the video. See an example here http://www.burlingamechamber.org/membership-directory/entry/san-mateo-public-library/I think this is limited to the PRO version of The Events Calendar as it does not have this problem when I tried it on our test site which doesn’t have the PRO version.
Do you have any insights on how to fix this?
Should I revert to the older version? If I do will my events still be there or would I need to re-enter them?
Thanks!
June 30, 2016 at 1:57 pm #1134208Hunter
ModeratorHey Robyn!
We’re aware of the issue you’re experiencing. Try adding the following snippet to your theme’s functions.php file and let me know if the issue still occurs. I’ve linked this thread to the logged bug report, so keep your eye on theeventscalendar.com/blog and your wp-admin for maintenance release info.
/**
* Avoid a problem with Events Calendar PRO 4.2 which can inadvertently
* break oembeds.
*/
function undo_recurrence_oembed_logic() {
if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) return;$pro_object = Tribe__Events__Pro__Main::instance();
$pro_callback = array( $pro_object, 'oembed_request_post_id_for_recurring_events' );remove_filter( 'oembed_request_post_id', $pro_callback );
}add_action( 'init', 'undo_recurrence_oembed_logic' );
July 1, 2016 at 9:51 am #1134561Robyn
ParticipantHi Hunter, Thank you for offering that snippet. I added it and it did not make a change.
Should I try the older version? Or is there way to keep reoccurring events feature from PRO and shut down the part that is causing the video conflict?
Thanks,
July 1, 2016 at 11:15 am #1134595Hunter
ModeratorJuly 1, 2016 at 11:26 am #1134602Robyn
ParticipantOkay, do you know if I have to re-enter my events after I revert to the previous version? Will I lose any tickets or reoccurring events that I’ve set up?
Thanks!
July 4, 2016 at 11:56 am #1135182Hunter
ModeratorWelcome back!
You shouldn’t lose any events you’ve already created, however I always do a backup in these instances just to be sure. Let me know how it goes and have an enjoyable week.
Cheers!
July 6, 2016 at 1:11 pm #1136219Robyn
ParticipantHi Hunter,
I am still having embed issues. When I delete TEC and PRO plugins it still shows a embed of the calendar reoccuring event title and a image of the 404 page where the calendar used to be, see attached screenshot. I’m guessing it is pulling this info from the MySQL database. Do you have any insights to this?
I downgraded to v. 4.1.3 and then to v. 4.0.7 and both showed incorrect embeds. I chose v. 4.0.7 because that version of TEC worked with embeds on my test site. The only difference I can think is I have not installed the PRO version on my test site.
Thank you for your time on this.
July 7, 2016 at 11:27 am #1136746Hunter
ModeratorHey Robyn,
Downgrading both versions should do the trick. It shouldn’t have to do with any data in your database, so try reverting both TEC and PRO back and let me know if the embed works properly.
Lastly, make sure you’re testing on the default WP theme and with only our plugins active. Thanks for keeping me updated and I look forward to resolving this with you once and for all. Take care!
July 7, 2016 at 12:09 pm #1136772Hunter
ModeratorRobyn,
We actually just released maintenance release which had a remedy for this issue, so before downgrading, try replicating the issue on the latest versions and let me know how it goes. If it doesn’t work, try adding the following snippet to your theme’s functions.php file and see if it works:
/**
* Avoid a problem with Events Calendar PRO 4.2 which can inadvertently
* break oembeds.
*/
function undo_recurrence_oembed_logic() {
if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) return;$pro_object = Tribe__Events__Pro__Main::instance();
$pro_callback = array( $pro_object, 'oembed_request_post_id_for_recurring_events' );remove_filter( 'oembed_request_post_id', $pro_callback );
}add_action( 'init', 'undo_recurrence_oembed_logic' );
July 8, 2016 at 2:55 pm #1137598Geoff
MemberHey there,
We wanted to follow-up to let you know that we were able to patch this up in The Events Calendar and Events Calendar PRO 4.2.2, which are both now available to download and install if you haven’t done so already.
Please do be sure to check out our release notes for a full overview of what’s new in the release and feel free to let us know if you run into this or any other issues after the update.
Thanks so much for your patience while we worked on this!
Cheers,
GeoffJuly 10, 2016 at 9:02 pm #1138009Robyn
ParticipantThank you Geoff, but I have updated to 4.2.2 and I still get the reoccurring events showing when I try and embed a video. Other weird things are happening such as the week view is 404 and my list view style is no longer centered.
I think I need to start all over – how and where do I delete all files associated with The Events Calendar and PRO? Beyond uninstalling and deleting the plugin.
Thank you again for you time,
July 11, 2016 at 12:03 pm #1138286Hunter
ModeratorHi Robyn,
I’m not 100% certain it still works, but Event Rocket did have a feature that basically wipes any trace of our plugin, including events, venues, organizers, and information stored in the database. If that doesn’t work, you might want to look at a plugin such as WP Clean Up.
I’m sorry you’re having to go this route :-/ I’m not really sure as to why the embeds are still displaying events and the other issues have popped up. In regards to the 404 error, try refreshing your permalinks by visiting Settings > Permalinks and hit the ‘Save Changes‘ button and visit your week view to see if it is working. For the list view style issue, try visiting Events > Settings > Display and try different options found there.
Keep me updated with your progress and have a great Monday!
August 2, 2016 at 9:35 am #1146620Support 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 ‘Embed conflict with videos on GravityForm and GravityView’ is closed to new replies.
