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 Tutorials
Common Habbo retro Fixes
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="Gajeel" data-source="post: 108810" data-attributes="member: 7688"><p>Hello!</p><p> </p><p>I'll be posting common problems and post on how to troubleshoot them. These may be in range from emulator - client, up to CMS problem.</p><p> </p><p><strong>1. Phoenix Emulator: Data truncated for column 'stamp' at row 1</strong></p><p>This is common for those who are having MySQL strict mode. Here is a query you have to run inorder to let the emulator read your server_status properly:</p><p>[CODE]SET @@global.sql_mode= '';[/CODE]</p><p> </p><p><strong>2. Setting spawn room (also known as homeroom) for users</strong></p><p>If you have existing users with different room IDs, we can make them spawn back to the room you want by running this query:</p><p>[CODE]UPDATE users SET `home_room` = 'ROOMID'[/CODE]</p><p> </p><p><span style="color: #800000">This step is only applicable to Navicat.</span></p><p>Now we would like new users to be spawned to that room. Go to Navicat, open your database, right-click the 'users' table and select "<strong>Design Table</strong>".</p><p> </p><p>It should take you a screen similar to this:</p><p><img src="http://vineen.in/i/455471135135.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>Click home_room, then on the default field type in the ROOM ID.</p><p style="margin-left: 20px"><strong>a. How do I know the ROOMID of the room I want to be the spawning room?</strong></p><p>Go to the room, click Room info and something similar will appear like this:</p><p><img src="http://vineen.in/i/685663726993.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>Or you may go to the database, open 'rooms' table, Ctrl + F then type the room name and the room id will appear, something similar like this:</p><p><img src="http://vineen.in/i/15379728047.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>The first column states the room ID.</p><p> </p><p><strong>3. Client white screen</strong></p><p>There are alot of reasons why users gets a white screen client instead of loading one. Here I'll be stating several good fixes which are effective.</p><p> </p><p style="margin-left: 20px"><strong>a. The SWFs and external_variables are all sat up, but I'm still getting a white screen</strong></p><p>Replace your client.php with this:</p><p>[PHP]<!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> </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 = "{swf_folder}";</p><p> var flashvars =</p><p> {</p><p> "client.starting" : "{username} is now loading {hotelName}",</p><p> "client.allow.cross.domain" : "1",</p><p> "client.notify.cross.domain" : "0",</p><p> "connection.info.host" : "{server_ip}",</p><p> "connection.info.port" : "30000",</p><p> "site.url" : "{url}",</p><p> "url.prefix" : "{url}",</p><p> "client.reload.url" : "{url}/client",</p><p> "client.fatal.error.url" : "{url}/me",</p><p> "client.connection.failed.url" : "{url}/me",</p><p> "external.variables.txt" : "{external_vars}",</p><p> "external.texts.txt" : "{external_texts}",</p><p> "productdata.load.url" : "{product_data}",</p><p> "furnidata.load.url" : "{furni_data}",</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", "{swf_folder}/expressInstall.swf", flashvars, params, null);</p><p> </script></p><p> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script></p><p> </p><p> </p><p><script type="text/javascript"></p><p> </p><p> var id = 48;</p><p> </p><p> $(document).ready(function(){</p><p> $.getJSON("http://*****.com/index.php?page=vote", { id: id, hasVoted: 'unknown' }, function(data) {</p><p> if(data == 2) {</p><p> window.location.replace("http://*****.com/index.php?page=vote&id=" + id);</p><p> }</p><p> });</p><p> });</p><p> </p><p></script></p><p> </head></p><p> </p><p> <body></p><p> <div id="client"></div></p><p> </p><p> </body></p><p></html>[/PHP]</p><p> </p><p style="margin-left: 20px"><strong>b. I did not modify anything on the SWF pack I had</strong></p><p>Check out your r63 folder and see whether your external_variables.txt points out to your VPS/Hamachi/Personal IP and not to someone else. If it is, see if those directories are actually existing. Also make sure the .SWF files are alright and aren't corrupted.</p><p> </p><p><em>This is not yet the end of the thread.. I'll be adding more later. <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></em></p></blockquote><p></p>
[QUOTE="Gajeel, post: 108810, member: 7688"] Hello! I'll be posting common problems and post on how to troubleshoot them. These may be in range from emulator - client, up to CMS problem. [B]1. Phoenix Emulator: Data truncated for column 'stamp' at row 1[/B] This is common for those who are having MySQL strict mode. Here is a query you have to run inorder to let the emulator read your server_status properly: [CODE]SET @@global.sql_mode= '';[/CODE] [B]2. Setting spawn room (also known as homeroom) for users[/B] If you have existing users with different room IDs, we can make them spawn back to the room you want by running this query: [CODE]UPDATE users SET `home_room` = 'ROOMID'[/CODE] [COLOR=#800000]This step is only applicable to Navicat.[/COLOR] Now we would like new users to be spawned to that room. Go to Navicat, open your database, right-click the 'users' table and select "[B]Design Table[/B]". It should take you a screen similar to this: [IMG]http://vineen.in/i/455471135135.png[/IMG] Click home_room, then on the default field type in the ROOM ID. [INDENT=1][B]a. How do I know the ROOMID of the room I want to be the spawning room?[/B][/INDENT] Go to the room, click Room info and something similar will appear like this: [IMG]http://vineen.in/i/685663726993.png[/IMG] Or you may go to the database, open 'rooms' table, Ctrl + F then type the room name and the room id will appear, something similar like this: [IMG]http://vineen.in/i/15379728047.png[/IMG] The first column states the room ID. [B]3. Client white screen[/B] There are alot of reasons why users gets a white screen client instead of loading one. Here I'll be stating several good fixes which are effective. [INDENT=1][B]a. The SWFs and external_variables are all sat up, but I'm still getting a white screen[/B][/INDENT] Replace your client.php with this: [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="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script> <script type="text/javascript"> var BaseUrl = "{swf_folder}"; var flashvars = { "client.starting" : "{username} is now loading {hotelName}", "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "{server_ip}", "connection.info.port" : "30000", "site.url" : "{url}", "url.prefix" : "{url}", "client.reload.url" : "{url}/client", "client.fatal.error.url" : "{url}/me", "client.connection.failed.url" : "{url}/me", "external.variables.txt" : "{external_vars}", "external.texts.txt" : "{external_texts}", "productdata.load.url" : "{product_data}", "furnidata.load.url" : "{furni_data}", "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", "{swf_folder}/expressInstall.swf", flashvars, params, null); </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript"> var id = 48; $(document).ready(function(){ $.getJSON("http://*****.com/index.php?page=vote", { id: id, hasVoted: 'unknown' }, function(data) { if(data == 2) { window.location.replace("http://*****.com/index.php?page=vote&id=" + id); } }); }); </script> </head> <body> <div id="client"></div> </body> </html>[/PHP] [INDENT=1][B]b. I did not modify anything on the SWF pack I had[/B][/INDENT] Check out your r63 folder and see whether your external_variables.txt points out to your VPS/Hamachi/Personal IP and not to someone else. If it is, see if those directories are actually existing. Also make sure the .SWF files are alright and aren't corrupted. [I]This is not yet the end of the thread.. I'll be adding more later. :)[/I] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
Common Habbo retro Fixes
Top