[SOLVED] YT is not defined - Uncaught ReferenceError: [youtube api]
Posted
#4714
(In Topic #951)
When logged in as admin on my site I kept getting a friendly nag error for admins about
YT is not defined - Uncaught ReferenceError: [youtube api]
I have a youtube video embedded on my start page…. Everything worked ok but to fix the error I added:
<script src="https://www.youtube.com/player_api"></script>
into the HEAD template
and now no error :)
Posted
while no error pops up, i have a new one in the browser console:
Error("The YouTube player is not attached to the DOM.")
the video still works and not sure if i should worry about this, or remove my script from the HEAD….
everything works & looks good either way
Posted
Here's a speculative fix:
https://github.com/ocproducts/composr/commit/434999ae0608f8dfc055cf896b615b670a185d36
0 guests and 0 members have recently viewed this.