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
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
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.
0 members, 1 guests, 0 anonymous users