PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given..
-
So with the most recent version (4804), my apache/error.log file keeps getting this written to it several times every second from many different IP addresses (which all seem to correspond to new FOG clients);
[Wed Sep 30 12:06:48.308072 2015] [:error] [pid 11926] [client 10.1.24.52:49939] PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 125 [Wed Sep 30 12:06:48.308117 2015] [:error] [pid 11926] [client 10.1.24.52:49939] PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 127
Known broken-ness, or just me?
Cheers!
-
Errors (or warnings as the case is here) does not mean anything in particular. I’m adding checking to return if the value is true, and throwing an error if the value is false. If the error is thrown, it also returns false. My guess is this is specific to when you’re inserting, or updating, and entry and this is why you’re seeing this error. I’ve added, as I stated earlier, a better check mechanism so it will simply return if the value is true and not attempt iterating over a boolean value.
4806 Should have this ready and working for you.