Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

[Error] Execution Centreon Clapi #354

Open
7ussana opened this issue Nov 17, 2016 · 0 comments
Open

[Error] Execution Centreon Clapi #354

7ussana opened this issue Nov 17, 2016 · 0 comments

Comments

@7ussana
Copy link

7ussana commented Nov 17, 2016

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

@7ussana 7ussana closed this as completed Nov 17, 2016
@7ussana 7ussana reopened this Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant