• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Site says "Offline"

Dylanaw

Godly Member
Joined
Feb 18, 2009
Messages
473
Reaction score
10
My website says that my server is offline, But it's online.. howcome?

My index.tpl from the template
Code:
<b>Status:</b>  
									{if $serverOnline[$id]}
										<span style="color: green;font-weight: bold;">Online</span><br />
										<b>Uptime:</b> {$serverUptime[$id]} <br />
										<b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />
									{else}
										<span style="color: red;font-weight: bold;">Offline</span>

I had another template too and it also showed offline while it was online, so it can't be the template.
Any idea's what it can be?
 
Last edited:
In config.php did you configure everything correctly?

PHP:
/*Database information*/
$config['database']['host'] = "127.0.0.1";
$config['database']['login'] = "root";
$config['database']['password'] = "*******";
$config['database']['database'] = "*******";

Meanwhile you can always change offline to online.

PHP:
										<span style="color: red;font-weight: bold;">Offline</span>

TO:
                       
                  								<span style="color: green;font-weight: bold;">Online</span>
 
Last edited:
In config.php did you configure everything correctly?

PHP:
/*Database information*/
$config['database']['host'] = "127.0.0.1";
$config['database']['login'] = "root";
$config['database']['password'] = "*******";
$config['database']['database'] = "*******";

I might have something different, The "Login" is the same as "Database" right? If not could u explain what they mean with "Database"

Meanwhile you can always change offline to online.

PHP:
										<span style="color: red;font-weight: bold;">Offline</span>

TO:
                       
                  								<span style="color: green;font-weight: bold;">Online</span>

True, but it would be nice if it would go automatic instead of changing it by hand everything server goes down or online.
And if i leave it online, and the server is down people will think what is wrong with their own connection.


@My problem, i went afk for 17 hours and now its working fine...
It's weird but the problem is solved by it self =D
Thanks anyway for helping me.
 
Back
Top