Embed conflict with videos on GravityForm and GravityView

Home Forums Calendar Products Events Calendar PRO Embed conflict with videos on GravityForm and GravityView

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1134162
    Robyn
    Participant

    Hello,
    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!

    #1134208
    Hunter
    Moderator

    Hey 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' );

    #1134561
    Robyn
    Participant

    Hi 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,

    #1134595
    Hunter
    Moderator

    Hey Robyn,

    Sorry to hear it didn’t work for you. Reverting back to versions 4.1.3 will alleviate the issue for the time being. You can download previous versions of PRO here and TEC here. You’ll also need to do updates manually.

    Let me know how it goes.
    Cheers!

    #1134602
    Robyn
    Participant

    Okay, 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!

    #1135182
    Hunter
    Moderator

    Welcome 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!

    #1136219
    Robyn
    Participant

    Hi 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.

    #1136746
    Hunter
    Moderator

    Hey 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!

    #1136772
    Hunter
    Moderator

    Robyn,

    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' );

    #1137598
    Geoff
    Member

    Hey 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,
    Geoff

    #1138009
    Robyn
    Participant

    Thank 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,

    #1138286
    Hunter
    Moderator

    Hi 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!

    #1146620
    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 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Embed conflict with videos on GravityForm and GravityView’ is closed to new replies.