WGL getting error Cannot read property 'appendChild' of undefined

Just upgraded the program to 5.6. It was in 5.4 and ran fine. Now when I launch the WGL program in Chrome, I get a popup box with that error. I have compiled other programs in 5.6 and posted WGL and they worked. I can’t figure out why this one would fail. It works in EDGE and Firefox with no popup.
Here is a link to the game:
http://imjustacoffeefilter.com/misteries/index.html
After clicking OK to the error, them games loads and runs, but there is no loading bar, and no full screen button.
Here is the error that is listed many many times in the java console:

Invoking error handler due to

Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

UnityProgress.js:11 Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

at Object.UnityProgress [as onProgress] (UnityProgress.js:11)

at Object.update (UnityLoader.js:2)

at XMLHttpRequest.onprogress (UnityLoader.js:1)

UnityProgress @ UnityProgress.js:11

update @ UnityLoader.js:2

onprogress @ UnityLoader.js:1

UnityLoader.js:1 Invoking error handler due to

Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

UnityProgress.js:11 Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

at Object.UnityProgress [as onProgress] (UnityProgress.js:11)

at Object.update (UnityLoader.js:2)

at XMLHttpRequest.onprogress (UnityLoader.js:1)

UnityProgress @ UnityProgress.js:11

update @ UnityLoader.js:2

onprogress @ UnityLoader.js:1

UnityLoader.js:1 Invoking error handler due to

Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

UnityProgress.js:11 Uncaught TypeError: Cannot read property ‘appendChild’ of undefined

at Object.UnityProgress [as onProgress] (UnityProgress.js:11)

at Object.update (UnityLoader.js:2)

at XMLHttpRequest.onload (UnityLoader.js:1)

I have tried it with chrome and i don’t get any error.

Really. That is very strange. Thanks for your reply.

Have you cleared your cache in Chrome / have you tried opening to your webgl app in an incognito window? It could be that your browser is trying to load some cached files.

Yep, that was it. Thank you so much. I should have thought of that. Cleared cache (browsing history) and it now works!

It is really nice to be able to come to a community and ask a question, even if it was so simple, and get an answer. Thanks, Guys! (that means both sexes)

1 Like