• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given..

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    2
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TrevelyanT
      Trevelyan
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        202

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project