Fatal error FluxCP

RagnarokOnline2015

New member
Messages
46
Points
0
Age
34
Location
Latvia
Emulator
Hello dear friends! Help solve the problem please 
default_sad.png


Fatal error: Call to a member function toArray() on boolean in /var/www/public/gold-ro.ru/lib/Flux.php on line 341

 
Hi,

I don't know why you got that error in the first place but you cannot use toArray() method on your non-object variable ($config). Make sure that the result must be an object type.

If you are in a hurry and want a quick fix;


Find: 
 

public static function parseServersConfigFile($filename)
{
$config = self::parseConfigFile($filename);


Add below:
 

$config = (object) $config;


This is just to ensure that the result will be converted to an object type variable.

 
Last edited by a moderator:
Back
Top