• 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!

$config['server']['port'] UNNAMED ACC MAKER ERROR

LKS

New Member
Joined
Jul 3, 2009
Messages
3
Reaction score
0
Hi!!!

The var $config['server']['port'] not works with every location of my website, on config.lua its set to 7171 but the script php not get this value.

To make on/off status at server i need to change:

$sock = @fsockopen("127.0.0.1", $config['server']['port'], $errno, $errstr, 1);
to
$sock = @fsockopen("127.0.0.1", 7171, $errno, $errstr, 1);

But $config['server']['port'] is used with several files of website and is hard to set one by one changig $config['server']['port'] to 7171, its very hard.

Plase help me to fix this bug.
 
Ok that variable is only used in that part so theres no problem on changing it to 7171.

If you whant to keep it that way then in your config.lua add this:

Code:
port = 7171

And your done!
 

Similar threads

Back
Top