Script conflicts after wordpress update 4.8.2 - X theme and cornerstone

I just wanted to make you all aware of an issue that has recently come up.

This has happened after the recent wordpress update version 4.8.2 when I am using X theme. I have no problems with it just using the standard 2017 wordpress theme.

When I try to embed a youtube video either by using a text module or using the embed video module or even just using the regular text area without cornerstone, it just won’t work. It just doesn’t do anything: nothing shows up at all there.

Now, on pages that already had a video embedded before the update, cornerstone can’t load those pages anymore and it says there is a script conflict and that loading the preview took longer than expected.

This has happened on a few sites I was working on over the weekend, so it’s not just an issue with one website.

There is a way to quick-fix it though.
I saw this from back in June:

So you just add

define( ‘CS_LEGACY_AJAX’, true );

to the config file under the WP_DEBUG line.

But I was hoping there could be a theme fix so that we don’t have to do this every time we need to update or build a website that uses video. (This also happened on page without video, but was using The Grid plugin.) I guess it’s an AJAX issue?

Hey there,

That could not be included in X out of the box because it is only for rare cases when there’s a problem with AJAX in your setup.

Thanks.

I just wanted to let you all know this is happening. I tried this on a completely fresh install of the current wordpress and current basic setup of X theme. I wasn’t using anything unusual. Just trying to embed a standard youtube video is causing issues.

There have also been a lot of posts here in the past few days from people getting the same error, so it’s not just my setup.

Just wanted to let you all know.

Hi there,

Thank you for your message. I did test the case with my local installation with X Theme version 5.1.1 and Cornerstone version 2.0.6. I had no problem using the Embed Video element and pasting the iframe code I copied from YouTube. Here is the code which I added:

<iframe width="560" height="315" src="https://www.youtube.com/embed/SVYuO2rlId0" frameborder="0" allowfullscreen></iframe>

That shows the problem should be with the environment and not the code of the Cornerstone.

I will appreciate if you help us find why this is not working in your environment as it might be something that our other customers may encounter.

Would you please kindly get back to us with the URL/User/Pass of your website using the Secure Note functionality of the post to follow up?

Also if it is possible to contact your hosting service provider and ask them if they allow Cross Domain iframe embed. In some cases, that limitation of the hosting service provider might be the cause of the issue.

Thank you for your cooperation, we really appreciate your contribution to our community.

Attaching the domain / login info with the secure note…

The host is godaddy. It doesn’t seem like an issue with allowing cross domain iframe embed, because it works if I just use the 2017 theme included with a standard wordpress install. Also we have been using godaddy for a while and this is a new issue since the most recent wordpress update.

I made a test page called test and just tried to embed the video code you listed using the embed video module and also using a the text module. Neither one works.

Hello There,

Thanks for providing the credentials. I went ahead and created a test page. I used video element and inserted the iframe code. As soon as I insert it, an error occurs on the page: (http://prntscr.com/gqo05f)

http://liverealms.com/cornerstone-endpoint 406 (Not Acceptable)

This error is related to your Mod_security. To know more about this error and how you can resolve it, please check this out: http://www.inmotionhosting.com/support/website/error-numbers/406-error

Hope this helps.