I have exported a small scene in WebGL and uploaded it onto my site. Whenever I load the webpage, I get the the following error. This however does not prevent the game from loading and running properly afterward.
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was: Uncaught ReferenceError: counter_cst is not defined
When I check the browser’s console,it starts right away with: Invoking error handler due to Uncaught ReferenceError: counter_cst is not defined at (index):137 (UnityLoader.js:1)
So there really is nothing else to see at the time the error is thrown.
Past this point, I don’t really know what I should be looking for.
Any idea of what is causing this?
I somehow I never considered that build&run could work with anything other than a windows build…
I’ll sleep less of a dummy tonight.
In the meantime I also took the opportunity to install wampserver on my computer. You were right, neither wamp or build&run throws this error when loading my game.
I’ll also ask the question to my web host then (livehost.fr). Though I’m actually very surprised the server could have any impact on that kind of thing.
(On a side note, I have hosted WebGL games made with Construct which worked just fine.)
I exposed the problem to my webhost, they fixed the issue amazingly quickly.
I still personally don’t know what was going wrong, but everything works fine now.