[Error] Execution Centreon Clapi

#354 · open · 0 comments

View on GitHub ↗

7ussana

Hello, I have a problem while executing the command: ` ./centreon -u admin -p password -e > /tmp/clapi-export.txt` > PHP Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/centreon/www/modules/centreon-clapi/core/lib/Centreon/Object/Host/Extended.php on line 58 > PHP Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/centreon/www/modules/centreon-clapi/core/lib/Centreon/Object/Host/Extended.php on line 58 > PHP Warning: array_key_exists(): The second argument should be either an array or an object in /usr/share/centreon/www/modules/centreon-clapi/core/lib/Centreon/Object/Host/Extended.php on line 58 > In the line 58 : ``` if (array_key_exists($image, $params)) { $sql = "SELECT dir_name,img_path FROM view_img vi LEFT JOIN view_img_dir_relation vidr ON vi.img_id = vidr.img_img_id LEFT JOIN view_img_dir vid ON vid.dir_id = vidr.dir_dir_parent_id WHERE img_id = ?"; $res = $this->getResult($sql, array($params[$image]), "fetch"); ``` Do you have an idea ? Thanks

Comments