Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by SunilUL · Feb 27, 2017 at 12:11 PM · javascriptwebglserversyntax-error

WebGL error after hosting

Hi, after i build a WebGL build, it runs correctly from the local disk. when i host it to the server to embed it to my website, it throws the following error. in firefox

 An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
 SyntaxError: missing ] in index expression

here is the build link

http://creativesighter.com/CSVDemo_1.html

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Feb 27, 2017 at 11:16 PM 0
Share

Uhm, i opened your link several hours ago. But since it loaded slowly i forgot about it. For my it seems that it has loaded up just fine. I can walk around the flat. $$anonymous$$aybe you have a cache problem? Have you tried pressing CTRL + R to reload the page?

$$anonymous$$aybe you already fixed your problem. If it's fixed you may close or delete your question. If not you may have to be more specific. I also use the Firefox (51.0.1 (32-Bit)) on Windows 10.

Here's my Javascript console after it has loaded up. Below are some shader warnings but nothing serious

webgljavascriptconsole.png (73.6 kB)
webgljavascriptconsole02.png (56.4 kB)
avatar image SunilUL Bunny83 · Feb 28, 2017 at 10:50 AM 0
Share

Hi, Thanks for the reply.,

i just deleted .htaccess and it solved the poblem..

now, the browser doesnt show up any warning..

but the issue now is, the loading indicator doesn't update accurately.... It loads upto 30% and stops., after a while, the game starts automatically.

Any fix?

thanks..

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by frelfrel · Dec 29, 2017 at 10:02 PM

Here is a solution: https://rzetelnekursy.pl/unity-webgl-an-error-occurred-running-the-unity-content-on-this-page-see-your-browser-javascript-console-for-more-info-the-error-was-syntaxerror-missing-before-statement/

MVPBUZZ

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Realtime multiplayer over web server 0 Answers

Unity WebGL Error Running on Local Server 0 Answers

Unity WebGL Problem 0 Answers

ReferenceError: Call is not defined 1 Answer

How to read uploaded WebGL binary files? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges