Home › Forums › Calendar Products › Events Calendar PRO › After upgrading plugins, all embeds in WP editor convert to Events
- This topic has 11 replies, 6 voices, and was last updated 9 years, 9 months ago by
Susan.
-
AuthorPosts
-
June 22, 2016 at 9:26 pm #1130770
Susan
ParticipantHi,
Today we updated the Events Calendar, EC Pro, and EC Filterbar plugins and since then we’re having an issue where any time we past anything that WordPress would auto-convert to embed (such as Youtube or Vimeo links) into the editor or featured image, that code is being auto-converted into a Calendar item. If we paste the embed code directly from Youtube this doesn’t happen, but we need the previous functionality in order for our responsive designs and archiving system to work.
We found that this code is being generated by the embed.php file in the EC plugin (in the src->views folders), and removing that code stops the calendar from appearing but doesn’t return WordPress’ embed functionality.
Please let us know what we can do to fix this, thanks!
June 23, 2016 at 2:43 am #1130814Jonathan Sanderson
ParticipantJust to confirm that I’m seeing the same issue here, specifically with the Featured Video Plus v2.2 plugin but also elsewhere around my site.
June 23, 2016 at 10:28 am #1131102Cliff
MemberHi. Sorry this is happening for you.
This is a bug we recently discovered and should be releasing a fix for in our next update.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release. I apologize for this issue and appreciate your understanding and patience.
Until then, please reference this code snippet that should resolve things going forward.
Please let me know how things go for you.
June 23, 2016 at 10:37 pm #1131364Susan
ParticipantHi, thanks for your reply. The code fix seems to have worked for new pages, however do you have a solution for pages we opened yesterday before the fix was implemented? As mentioned in the other thread, pages that had already been affected by the issue wouldn’t revert because of the code, and we have a few pages where this is still this is still the case. It is important for us that embedding work correctly on them because of how it interacts with our archiving system.
Also can you confirm that with the code in place, it’s safe to open previously made pages without them being affected by the issue?
Thanks!
June 24, 2016 at 10:51 am #1131623Cliff
MemberSusan, I understand the concern about messed up oEmbeds that are still left over.
It’s probable that the stored oEmbeds will eventually refresh/update themselves some time in the future.
However, if you want to force all oEmbeds to refresh themselves, you might try this code snippet:
https://gist.github.com/cliffordp/e331b28d0d4d3b042fc7daf714256796
- add this code to your theme’s functions.php file
- load a page on the front-end of your site (e.g. the home page)
- comment out or delete this code from your theme’s functions.php file
- check to see if previously incorrect oEmbeds are now fixed (i.e. visit a page that had one and see if the oEmbed is now displaying correctly)
Warning: If you do NOT follow step #3, your site will be significantly less efficient than it should be!
Please let me know how things worked out for you.
Thanks!
June 25, 2016 at 1:35 pm #1132019Susan
ParticipantOk thanks we will test this out on Monday and let you know!
June 27, 2016 at 7:33 am #1132268Cliff
MemberOK. Let me know how it goes.
July 4, 2016 at 11:33 am #1135169Susan
ParticipantHi, turns out we didn’t need this previous fix.
I see there’s a new update to the plugin available – once we update, will we be able to remove the code from the original link you provided above?
Thanks!
July 5, 2016 at 10:12 am #1135616Cliff
MemberHi Susan. This bug is not yet fixed in our releases. It is recommended to remove the code snippet only after the fix is released, but you can choose how to run your own site. 🙂
July 7, 2016 at 2:34 pm #1136947Geoff
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 22, 2016 at 9:35 am #1143013Support 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 ‘After upgrading plugins, all embeds in WP editor convert to Events’ is closed to new replies.
