Jump to content

  •  

Photo

Fatal error FluxCP

Fatal error FluxCP

  • Please log in to reply
1 reply to this topic

#1 RagnarokOnline2015

RagnarokOnline2015

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 24 August 2016 - 07:29 PM

Hello dear friends! Help solve the problem please  :(

 

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



#2 jupeto

jupeto

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts
  • Github:jupeto

Posted 29 August 2016 - 05:31 PM

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.


Edited by jupeto, 29 August 2016 - 05:31 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 22 user(s)