'src is not defined' when YouTube video is embedded in page

Hello,

On a page where a YouTube video is embedded there is a console error:
‘Uncaught ReferenceError: src is not defined’

For example:
https://cleanwp.onpressidium.com/youtube-test/

What is the issue?

Thanks.

Hi Amir,

Thanks for reaching out.
I have checked the console error in the page and it seems that you are using the Youtube block in the WP Block editor. I have added the youtube URL in the Youtube block in my local environment and it shows the same error in the console. I would suggest you use the Cornerstone and Video elements to embed the video and get rid of this problem.

I have also tested other Themes, but it does not show the error, I suspect this could be a bug in the latest version theme. I will report it to the Issue Tracker for further investigation by our development team.

Hope it helps.
Thanks

Hi tristup,

Please note that this issue happens even when embedding a video directly through RAW html.

Thanks.

Hi Amir,

Thanks for the information.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.