Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
404:1 Uncaught SyntaxError: Unexpected token <
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Central" data-source="post: 390161" data-attributes="member: 57042"><p>Hello, recently I added the new catalogue and been going through some debugging issues so I had someone to debug this for me and it was debugged and sent back to me. Then all of a sudden, my client doesn't work no more? It worked before it was debugged somehow it messed up im not sure.</p><p></p><p>So i look at my developer console and load the client and all what pops up is this error:</p><p></p><p><strong>404:1 Uncaught SyntaxError: Unexpected token <</strong></p><p></p><p>Never seen this error before, but can anyone fix this? Would be a great help.</p><p></p><p><strong>Client.php</strong></p><p>[PHP]</p><p><!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>{hotelName} - Client</title></p><p> </p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css"></p><p> <script type="text/javascript" src="/app/tpl/skins/habbo/js/bootstrap.js"></script></p><p> <script type="text/javascript" src="//code.jquery.com/jquery-2.0.2.js"></script></p><p> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/js/bootstrap.min.js"></script></p><p> <link href="https://bootswatch.com/paper/bootstrap.css" rel="stylesheet" type="text/css"></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script></p><p> <script type="text/javascript"></p><p> var BaseUrl = "http://URL/gordon/";</p><p> var flashvars =</p><p> {</p><p> "client.starting" : "Please wait, {hotelname} loading",</p><p> "hotelview.banner.url" : "http://URL/gordon/rs4.php",</p><p> "client.allow.cross.domain" : "1",</p><p> "client.notify.cross.domain" : "0",</p><p> "connection.info.host" : "proxy ip",</p><p> "connection.info.port" : "proxy port",</p><p> "site.url" : "http://URL",</p><p> "url.prefix" : "http://URL",</p><p> "client.reload.url" : "http://URL/client",</p><p> "client.fatal.error.url" : "http://URL/me",</p><p> "client.connection.failed.url" : "http://URL/me",</p><p> "external.variables.txt" : "http://URL/gamedata/external_variables.txt",</p><p> "external.texts.txt" : "http://URL/gamedata/external_flash_texts.txt",</p><p> "productdata.load.url" : "http://URL/gamedata/productdata.txt",</p><p> "furnidata.load.url" : "http://URL/gamedata/furnidata.xml",</p><p> "use.sso.ticket" : "1",</p><p> "sso.ticket" : "{sso}",</p><p> "processlog.enabled" : "0",</p><p> "flash.client.url" : BaseUrl,</p><p> "flash.client.origin" : "popup"</p><p> };</p><p> var params =</p><p> {</p><p> "base" : BaseUrl + "/",</p><p> "allowScriptAccess" : "always",</p><p> "menu" : "false" </p><p> };</p><p> swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "http://URL/game/expressInstall.swf", flashvars, params, null);</p><p> </script></p><p> </head></p><p> </p><p> <body></p><p> </p><p> <div id="client"></div></p><p> <div style="margin-bottom: 0px; position: fixed; z-index: 10;" class="alert alert-dismissible alert-primary"></p><p><a target="_blank" max-height: 5px; width: 88px; margin-top: 4px;" class="navbar-brand" href="/me"></a></p><p><a onclick="toggleFullScreen()" style="margin-top: 7px; margin-left: 15px;" class="btn btn-success">FullScreen</a></p><p></p><p></div></p><p><script></p><p>function toggleFullScreen() {</p><p>if ((document.fullScreenElement && document.fullScreenElement !== null) ||</p><p>(!document.mozFullScreen && !document.webkitIsFullScreen)) {</p><p>if (document.documentElement.requestFullScreen) {</p><p>document.documentElement.requestFullScreen();</p><p>} else if (document.documentElement.mozRequestFullScreen) {</p><p>document.documentElement.mozRequestFullScreen();</p><p>} else if (document.documentElement.webkitRequestFullScreen) {</p><p>document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);</p><p>}</p><p>} else {</p><p>if (document.cancelFullScreen) {</p><p>document.cancelFullScreen();</p><p>} else if (document.mozCancelFullScreen) {</p><p>document.mozCancelFullScreen();</p><p>} else if (document.webkitCancelFullScreen) {</p><p>document.webkitCancelFullScreen();</p><p>}</p><p>}</p><p>}</p><p></script></p><p> </p><p> </body></p><p></html>[/PHP]</p><p></p><p><strong>config.ini</strong></p><p>[HTML]## uberEmulator System Configuration File</p><p>## Must be edited for the server to work</p><p></p><p>## MySQL Configuration</p><p>db.hostname=127.0.0.1</p><p>db.port=3306</p><p>db.username=root</p><p>db.password=Andrew123123</p><p>db.name=luxhotel</p><p></p><p>## MySQL pooling setup (controls amount of connections)</p><p>db.pool.minsize=10</p><p>db.pool.maxsize=250</p><p></p><p>## Game TCP/IP Configuration</p><p>game.tcp.bindip=108.175.10.121</p><p>game.tcp.port=30000</p><p>game.tcp.conlimit=100000</p><p>game.tcp.conperip=200</p><p>game.tcp.enablenagles=true</p><p></p><p>## MUS TCP/IP Configuration</p><p>mus.tcp.bindip=108.175.10.121</p><p>mus.tcp.port=30001</p><p>mus.tcp.allowedaddr=108.175.10.121</p><p></p><p>## Client configuration</p><p>client.ping.enabled=1</p><p>client.ping.interval=20000</p><p>client.maxrequests=300[/HTML]</p></blockquote><p></p>
[QUOTE="Central, post: 390161, member: 57042"] Hello, recently I added the new catalogue and been going through some debugging issues so I had someone to debug this for me and it was debugged and sent back to me. Then all of a sudden, my client doesn't work no more? It worked before it was debugged somehow it messed up im not sure. So i look at my developer console and load the client and all what pops up is this error: [B]404:1 Uncaught SyntaxError: Unexpected token <[/B] Never seen this error before, but can anyone fix this? Would be a great help. [B]Client.php[/B] [PHP] <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>{hotelName} - Client</title> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css"> <script type="text/javascript" src="/app/tpl/skins/habbo/js/bootstrap.js"></script> <script type="text/javascript" src="//code.jquery.com/jquery-2.0.2.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/js/bootstrap.min.js"></script> <link href="https://bootswatch.com/paper/bootstrap.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script> <script type="text/javascript"> var BaseUrl = "http://URL/gordon/"; var flashvars = { "client.starting" : "Please wait, {hotelname} loading", "hotelview.banner.url" : "http://URL/gordon/rs4.php", "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "proxy ip", "connection.info.port" : "proxy port", "site.url" : "http://URL", "url.prefix" : "http://URL", "client.reload.url" : "http://URL/client", "client.fatal.error.url" : "http://URL/me", "client.connection.failed.url" : "http://URL/me", "external.variables.txt" : "http://URL/gamedata/external_variables.txt", "external.texts.txt" : "http://URL/gamedata/external_flash_texts.txt", "productdata.load.url" : "http://URL/gamedata/productdata.txt", "furnidata.load.url" : "http://URL/gamedata/furnidata.xml", "use.sso.ticket" : "1", "sso.ticket" : "{sso}", "processlog.enabled" : "0", "flash.client.url" : BaseUrl, "flash.client.origin" : "popup" }; var params = { "base" : BaseUrl + "/", "allowScriptAccess" : "always", "menu" : "false" }; swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "http://URL/game/expressInstall.swf", flashvars, params, null); </script> </head> <body> <div id="client"></div> <div style="margin-bottom: 0px; position: fixed; z-index: 10;" class="alert alert-dismissible alert-primary"> <a target="_blank" max-height: 5px; width: 88px; margin-top: 4px;" class="navbar-brand" href="/me"></a> <a onclick="toggleFullScreen()" style="margin-top: 7px; margin-left: 15px;" class="btn btn-success">FullScreen</a> </div> <script> function toggleFullScreen() { if ((document.fullScreenElement && document.fullScreenElement !== null) || (!document.mozFullScreen && !document.webkitIsFullScreen)) { if (document.documentElement.requestFullScreen) { document.documentElement.requestFullScreen(); } else if (document.documentElement.mozRequestFullScreen) { document.documentElement.mozRequestFullScreen(); } else if (document.documentElement.webkitRequestFullScreen) { document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); } } else { if (document.cancelFullScreen) { document.cancelFullScreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); } } } </script> </body> </html>[/PHP] [B]config.ini[/B] [HTML]## uberEmulator System Configuration File ## Must be edited for the server to work ## MySQL Configuration db.hostname=127.0.0.1 db.port=3306 db.username=root db.password=Andrew123123 db.name=luxhotel ## MySQL pooling setup (controls amount of connections) db.pool.minsize=10 db.pool.maxsize=250 ## Game TCP/IP Configuration game.tcp.bindip=108.175.10.121 game.tcp.port=30000 game.tcp.conlimit=100000 game.tcp.conperip=200 game.tcp.enablenagles=true ## MUS TCP/IP Configuration mus.tcp.bindip=108.175.10.121 mus.tcp.port=30001 mus.tcp.allowedaddr=108.175.10.121 ## Client configuration client.ping.enabled=1 client.ping.interval=20000 client.maxrequests=300[/HTML] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
404:1 Uncaught SyntaxError: Unexpected token <
Top