Youtube embeds stopped working.
Hi my youtube emdeds stopped working today or maybe yesterday. http://goo.gl/UaytGk example url where the video is missing. I have nearly a hundred videos embedded on my website please let me know how to resolve this.
Hi my youtube emdeds stopped working today or maybe yesterday. http://goo.gl/UaytGk example url where the video is missing. I have nearly a hundred videos embedded on my website please let me know how to resolve this.
Have you recently changed your wordpress theme or added the "WP Rocket" optimization plugin?
Seems all the white space has been stripped from your HTML code and this is causing your JW Player embed code to be commented out in error.
James
Wp rocket had been up for months without problems, recent changes are the current Wordpress update and Yoast Seo update.
Caching can't cause this since I'm logged in and I don't have cache enabled but videos aren't showing up.
Yeah, as I said, it's because theres no white space/ line feeds in your source code.
The first characters in your script tags are // comments - because of the lack of line feeds, this is then commenting out the rest of the code.
James
This keeps happening since yesterday, this is what I see when I view source caching why is that thing added there? How to resolve this?
<script type="text/javascript">// jwplayer('playerHzDTHkcPReBn').setup({ file: 'https://www.youtube.com/watch?v=ItctVq_Rr-U', image: 'http://img.youtube.com/vi/ItctVq_Rr-U/maxresdefault.jpg', title: 'Onion Flower', width: '100%', aspectratio: '16:9' }); // ]]></script>
Goodamnit, something added this to all my posts with embeds
// <![CDATA[
// ]]>
so an embed looks like this now
<div id="playerGBHmMdEsQZEJ"></div>
<script type="text/javascript">// <![CDATA[
jwplayer('playerGBHmMdEsQZEJ').setup({
file: 'https://www.youtube.com/watch?v=gf9o8I8vBlw',
image: 'http://img.youtube.com/vi/gf9o8I8vBlw/maxresdefault.jpg',
title: 'How to Unclog Your Sink Without Chemicals',
width: '100%',
aspectratio: '16:9'
});
// ]]></script>
I have to manually edit that cdata out from everything...