Fixed
Status Update
Comments
ax...@live.com <ax...@live.com> #2
[Comment deleted]
ax...@live.com <ax...@live.com> #3
You can also check out this JSFiddle: https://jsfiddle.net/dfjoenm9/ and check the console directly for the error.
ax...@live.com <ax...@live.com> #4
[Comment deleted]
[Deleted User] <[Deleted User]> #5
Happening for us too across our whole site, all embedded videos
ch...@gmail.com <ch...@gmail.com> #6
Same here... Tried using async embed code instead of iframe embed, and still getting same issue.
ri...@gmail.com <ri...@gmail.com> #7
I also get this error, we are using onYouTubeIframeAPIReady to create the player.
ka...@gmail.com <ka...@gmail.com> #8
I'm getting the same error on a customer project.
This is visible on any YouTube video by viewing the embed link. For example, see console output forhttps://www.youtube.com/embed/q4y0KOeXViI
Related StackOverflow post:http://stackoverflow.com/questions/40622204/uncaught-referenceerror-ytcfg-is-not-defined
Related YouTube Help Forum post:https://productforums.google.com/forum/#!topic/youtube/3Z7dSnwkCH4;context-place=forum/youtube
This is visible on any YouTube video by viewing the embed link. For example, see console output for
Related StackOverflow post:
Related YouTube Help Forum post:
Ri...@bmc.com <Ri...@bmc.com> #10
I'm totally puzzled by this problem. All I do is execute the script "//www.youtube.com/iframe_api ". This creates the YT.Player "class", and calls my onYouTubeIframeAPIReady. There, I create an instance of YT.Player and pass it the name of a div. YT.Player replaces my div with an iframe and loads several scripts in the iframe. After this, I loose control, because the iframe points to another domain.
When I launch the app from Visual Studio, the last script in the iframe runs and calls ytcfg.set ... which has not been defined. The scripts also try to access the parent of the iframe, which is not going to work.
When I deploy the app to my ".com" hosting provider .. everything works fine. For some reason, the script that calls ytcfg.set is not getting run. Why??
Good news is that my users haven't been impacted yet. My site still works. Unfortunately, development work has stopped. I don't dare deploy anything until I understand what is going on here.
One thing is sure: this is caused by YouTube code, and there is nothing I can do to fix the problem or stop it from happening. After days of trying, Im convinced of that.
When I launch the app from Visual Studio, the last script in the iframe runs and calls ytcfg.set ... which has not been defined. The scripts also try to access the parent of the iframe, which is not going to work.
When I deploy the app to my ".com" hosting provider .. everything works fine. For some reason, the script that calls ytcfg.set is not getting run. Why??
Good news is that my users haven't been impacted yet. My site still works. Unfortunately, development work has stopped. I don't dare deploy anything until I understand what is going on here.
One thing is sure: this is caused by YouTube code, and there is nothing I can do to fix the problem or stop it from happening. After days of trying, Im convinced of that.
yo...@gmail.com <yo...@gmail.com> #11
Well isn't this annoying, thanks to this in my development environment I have to click past a breakpoint triggered by this bug on every reload. Either that or disable breakpoints on errors, but then I can't debug anything can I. Damn. Wasting so much of my time and making testing this website frustrating as hell.
ma...@gmail.com <ma...@gmail.com> #12
same issue here, very annoying...
in...@gmail.com <in...@gmail.com> #13
same issue, please fix it soon!
ma...@google.com <ma...@google.com>
se...@gmail.com <se...@gmail.com> #14
Ha... I thought the "ytcfg is not defined" error had been introduced by some other developer in the team... but now I found that it is coming from YouTube itself.
dj...@gmail.com <dj...@gmail.com> #15
Is there no other work around. At least temporarily?
jm...@gmail.com <jm...@gmail.com> #16
Please fix ASAP - we have thousands of iframe embeds across our products throwing this error.
we...@gmail.com <we...@gmail.com> #17
This also is causing a problem with JWPlayer and Google IMA integrations. Essentially my product is broken right now.
qp...@gmail.com <qp...@gmail.com> #18
i have several sites that rely on iframe API to sync html animation content with youtube videos. All of these high traffic sites are no longer firing api init. getting the "ytcfg is not defined" in console.
ma...@gmail.com <ma...@gmail.com> #19
Getting the same error, any ETA Google?
ba...@gmail.com <ba...@gmail.com> #20
well, i think even google take days to fix underdeveloped API changes, isn't there any QA before proceeding with deployment on youtube !!?
ma...@gmail.com <ma...@gmail.com> #21
same issue here, thanks for fixing !
ns...@gmail.com <ns...@gmail.com> #22
[Comment deleted]
dr...@gmail.com <dr...@gmail.com> #23
This issue is even visible on the YouTube player demo page https://developers.google.com/youtube/youtube_player_demo
ReferenceError: ytcfg is not defined
https://www.youtube.com/embed/M7lc1UVf-VE?widget_referrer=https%3A%2F%2Fdevelopers.google.com%2Fyoutube%2Fyoutube_player_demo&enablejsapi=1&origin=https%3A%2F%2Fgoogle-developers.appspot.com&widgetid=1:10
ReferenceError: ytcfg is not defined
[Deleted User] <[Deleted User]> #24
I have the same issues !! please fix asap.
bu...@gmail.com <bu...@gmail.com> #25
(*) please fix ASAP!
pa...@gmail.com <pa...@gmail.com> #26
We are also getting this error on our site. We are using the 'onYouTubeIframeAPIReady' function and are getting the error: 'Uncaught ReferenceError: ytcfg is not defined' This has been the case for over a week. Any updates?
fa...@gmail.com <fa...@gmail.com> #27
please fix ASAP!
ka...@gmail.com <ka...@gmail.com> #28
[Comment deleted]
ia...@gmail.com <ia...@gmail.com> #29
Seeing this error after embed, please fix!
ki...@gmail.com <ki...@gmail.com> #30
This also broke a few sites of mine, any updates on a fix to it?
va...@gmail.com <va...@gmail.com> #31
I also have the issue. Please, fix!
mu...@gmail.com <mu...@gmail.com> #32
Same problem
ma...@gmail.com <ma...@gmail.com> #33
Please fix!
yt...@gmail.com <yt...@gmail.com> #34
Same problem
This error hinders the loading site
This error hinders the loading site
ro...@gmail.com <ro...@gmail.com> #35
Same problem here
bv...@gmail.com <bv...@gmail.com> #36
Same problem on across our systems - 300+ sites affected. Please fix!
yo...@gmail.com <yo...@gmail.com> #37
Also app crash on windows UWP apps! please fix ASAP :)
c0...@gmail.com <c0...@gmail.com> #38
[Comment deleted]
af...@gmail.com <af...@gmail.com> #39
[Comment deleted]
al...@studionone.com.au <al...@studionone.com.au> #40
Please fix, getting this here too!
fa...@salesforce.com <fa...@salesforce.com> #41
your friends at Slack need this fixed.
wn...@gmail.com <wn...@gmail.com> #42
Experiencing this issue as well at theinsidethread.com
pi...@gmail.com <pi...@gmail.com> #43
[Comment deleted]
pi...@gmail.com <pi...@gmail.com> #44
Please fix..
de...@gmail.com <de...@gmail.com> #45
Please fix!!
di...@gmail.com <di...@gmail.com> #46
My web pages stopped loading because of this issue, I spent several hours trying to figure out where the bug was introduced before coming here to discover it's YouTube bug. Please fix ASAP.
ad...@chrispink.co.uk <ad...@chrispink.co.uk> #47
ReferenceError: ytcfg is not defined
<script>yt.setConfig({'EVENT_ID': "4Qc3WOmqLsbTcc6FvsAI",'VIDEO_ID': "ZYnr-lowhp...
Seems to be the same issue. I am not sure I can allow youtube embeds until this issue is resolved.
<script>yt.setConfig({'EVENT_ID': "4Qc3WOmqLsbTcc6FvsAI",'VIDEO_ID': "ZYnr-lowhp...
Seems to be the same issue. I am not sure I can allow youtube embeds until this issue is resolved.
bt...@gmail.com <bt...@gmail.com> #48
Getting the same " ytcfg is udefined error ", and it's adversely affecting th functionality of my web application (see issue 8789 ) ;(
ni...@gmail.com <ni...@gmail.com> #49
Please fix this. Lot of our sites affected.
du...@gmail.com <du...@gmail.com> #50
Has anyone noticed strange behavior with iframe events (PlayerState.PLAYING etc.)? In my case sometimes onStateChange method is not called.
jm...@gmail.com <jm...@gmail.com> #51
Does anyone from Google monitoring this? It seems to be impacting a lot of people yet there is not one reply from a Google developer. We have many, many instance of YouTube iframes in our software firing breakpoints because of this issue, which we can now confirm is negatively impacting revenue. Our options are to discontinue use of YouTube video completely or wait for a solution, but it doesn't appear like this issue has even been acknowledged. Please update us ASAP.
co...@gmail.com <co...@gmail.com> #52
VM504 xqGB7SmJAyU?rel=0:10 Uncaught ReferenceError: ytcfg is not defined
dy...@gmail.com <dy...@gmail.com> #53
Confirmed
ne...@gmail.com <ne...@gmail.com> #54
Same error here as well.. Is there a fix for this ?
sa...@gmail.com <sa...@gmail.com> #55
Problem
sr...@contreforme.ch <sr...@contreforme.ch> #56
Dito here
an...@gmail.com <an...@gmail.com> #57
Please fix.
in...@atmmarketing.com.au <in...@atmmarketing.com.au> #58
Bump for a fix, please
jo...@gmail.com <jo...@gmail.com> #59
Uncaught ReferenceError: ytcfg is not defined
Same as everyone else.
Same as everyone else.
sg...@santu.com <sg...@santu.com> #60
same here, please fix. Affects a large number of our customers who have added Youtube videos to their site.
da...@gmail.com <da...@gmail.com> #61
+1 on a couple of Wordpress sites...
[Deleted User] <[Deleted User]> #62
Same thing on all embedded YT videos sites
nh...@gmail.com <nh...@gmail.com> #63
Please fix,
tr...@googlemail.com <tr...@googlemail.com> #64
Same thing here, using video-js with the youtube plugin.
[Deleted User] <[Deleted User]> #65
Bump!
yu...@gmail.com <yu...@gmail.com> #66
Please refrain from posting "Same thing" and "bump" comments. It emails everyone who stars the issue, and may cause some to unstar the issue. The issue has been accepted and an update will be posted when available.
sr...@contreforme.ch <sr...@contreforme.ch> #67
So how one can show its «support» for the cause, without spamming everyone on the topic ? Just by clicking on the star ?
[Deleted User] <[Deleted User]> #68
The star indicates that you are affected by the issue and want to follow it's progress. A comment is not warranted unless you are adding more information to the issue report.
[Deleted User] <[Deleted User]> #69
Seeing this issue in console for all browsers wherever we have YouTube clips embedded. Particularly an issue in IE where dev console is enabled as it is displaying an alert/warning to users that looks like a more serious bug.
jo...@gmail.com <jo...@gmail.com> #70
Just hit the star. Stop posting "bump" and "+1" and "me too" replies, you're just spamming people. The star gives this bug visibility. If you're adding nothing to the discussion, please add nothing to the discussion.
Anyone who doesn't work for Google that replies below this line is an idiot and should get coal and sticks for Christmas.
--------------------------------------------------
Anyone who doesn't work for Google that replies below this line is an idiot and should get coal and sticks for Christmas.
--------------------------------------------------
[Deleted User] <[Deleted User]> #71
[Deleted User] <[Deleted User]> #72
Another quick and dirty hold over for people I think may be to just define ytcfg right before your youtube include via something like
<script>var ytcfg;</script>
Although it may not work.
<script>var ytcfg;</script>
Although it may not work.
al...@gmail.com <al...@gmail.com> #73
Same problem here... javascript error 'ytcfg'' is not defined. Please FIX ASAP.
qp...@gmail.com <qp...@gmail.com> #75
onPlayerStateChange no longer fires when onPlayerReady is called. This is breaking my applications and on onPlayerStateChange states are needed to cue videos when loaded through iframe API.
dp...@gmail.com <dp...@gmail.com> #76
I'm still getting the same error using Nick Ban's suggestion.
an...@acusti.ca <an...@acusti.ca> #77
For anyone looking for a workaround, the suggestion from comment #73 doesn’t work. The error occurs within the context of the iframe context that the youtube iframe API generates, which is a browsing context that is completely opaque and inaccessible to the parent context that includes the iframe_api script.
Additionally, the `ytcfg` object includes an api with at least a `set()` method that gets directly invoked by the script, so the workaround would need to stub out the entire API to avoid generating JS errors.
Additionally, the `ytcfg` object includes an api with at least a `set()` method that gets directly invoked by the script, so the workaround would need to stub out the entire API to avoid generating JS errors.
[Deleted User] <[Deleted User]> #78
Also getting this error.
di...@gmail.com <di...@gmail.com> #79
Please fix it...
[Deleted User] <[Deleted User]> #80
Please fix promptly.
fr...@gmail.com <fr...@gmail.com> #81
Please fix it..
ma...@gmail.com <ma...@gmail.com> #82
A nasty bug in an essential API. Please fix promptly!
la...@gmail.com <la...@gmail.com> #83
Yep, here too.
jo...@gmail.com <jo...@gmail.com> #84
Just click the star. Your comments are not helpful
ma...@gmail.com <ma...@gmail.com> #85
ok
pm...@gmail.com <pm...@gmail.com> #86
same here, please fix these bug
dp...@gmail.com <dp...@gmail.com> #87
Please, simply click the STAR above, next to ' ISSUE 8745 ', to rise votes and let them show our interest.
ra...@gmail.com <ra...@gmail.com> #88
[Comment deleted]
my...@gmail.com <my...@gmail.com> #89
Same error
ha...@gmail.com <ha...@gmail.com> #90
Same error
[Deleted User] <[Deleted User]> #91
@Admin, may we please have a sticky header reminding people to click the STAR and only use the comment section if they have anything useful to contribute.
an...@gmail.com <an...@gmail.com> #92
This error prevents execution of another js in Chorme Canary
ma...@google.com <ma...@google.com> #93
Hi everyone,
Thank you for your continued notes and feedback on this issue. We're well aware of it and hope to get a fix out soon.
Please keep using the "Star" at the top of the page to indicate that you are affected by this bug -- there's no need to add a new comment.
Thanks again for your patience.
Thank you for your continued notes and feedback on this issue. We're well aware of it and hope to get a fix out soon.
Please keep using the "Star" at the top of the page to indicate that you are affected by this bug -- there's no need to add a new comment.
Thanks again for your patience.
jo...@gmail.com <jo...@gmail.com> #94
Just noticed this error today - ReferenceError: ytcfg is not defined
go...@gmail.com <go...@gmail.com> #95
same error , ytcfg is not defined
vb...@gmail.com <vb...@gmail.com> #96
The exact same error and does not work go to the desired fragment in seconds.
ca...@gmail.com <ca...@gmail.com> #97
The problem was solved for me, it's not showing the error and the player works fine.
ma...@google.com <ma...@google.com>
je...@gmail.com <je...@gmail.com> #98
It's solved for me too... thank you !
Yet have to fix settings because "Full screen mode is not available..." but it's ok for me.
Yet have to fix settings because "Full screen mode is not available..." but it's ok for me.
dd...@gmail.com <dd...@gmail.com> #99
No. Still broken. Here is an example https://data-miner.io/
[Deleted User] <[Deleted User]> #100
Fixed for me as well. Thanks Google team.
iv...@gmail.com <iv...@gmail.com> #101
Fixed. GJ
dd...@gmail.com <dd...@gmail.com> #102
Guys - You introduced another bug now I get :_ytRIL is not defined
Here you can see the repro:https://data-miner.io/
VM763 subscribe_embed?action_card=1&channelid=UCJsN_l9NikcAq9XikLD1nSg&usegapi=1&jsh=m%3B%2F_%2Fscs…:22 Uncaught ReferenceError: __ytRIL is not defined(…)onload @ VM763 subscribe_embed?action_card=1&channelid=UCJsN_l9NikcAq9XikLD1nSg&usegapi=1&jsh=m%3B%2F_%2Fscs…:22
Here you can see the repro:
VM763 subscribe_embed?action_card=1&channelid=UCJsN_l9NikcAq9XikLD1nSg&usegapi=1&jsh=m%3B%2F_%2Fscs…:22 Uncaught ReferenceError: __ytRIL is not defined(…)onload @ VM763 subscribe_embed?action_card=1&channelid=UCJsN_l9NikcAq9XikLD1nSg&usegapi=1&jsh=m%3B%2F_%2Fscs…:22
st...@gmail.com <st...@gmail.com> #103
Fixed but there is a "Full screen mode is not available" on top and removed when full screen button is clicked
vi...@gmail.com <vi...@gmail.com> #104
It is still problem. Please FIX IT.
Description
NOTE: Use this form ONLY if you are a DEVELOPER reporting bugs about the
YouTube Data or Player APIs. If you are experiencing problems with the
YouTube web site or another YouTube playback mechanism, please use
------------------------------------------------------------------------
Name of API affected:
YouTube Player API
Issue summary:
Provide a brief summary of the issue you're experiencing.
All of a sudden, error messages started coming up on pages where we use the YouTube Player API to display embedded videos from YouTube. Implemented it yesterday, everything was working as expected, and today it just stopped working - without any modification to the source code.
It is also worth noting that I tried your official "Getting Started"-demo, which has the same problem. The code for the example can be found at
Steps to reproduce issue:
1. Create an HTML file with the content found under "Getting started" in
2. Visit said HTML page
3. Check the console and fint Uncaught ReferenceError: ytcfg is not defined(…)
Expected output:
What do you expect to see after performing the above steps?
Nothing, since the API should load without problems.
Actual results:
What do you actually see after performing the above steps?
The above mentioned error.
Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.