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

[Error] Execution Centreon Clapi #354

@7ussana

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions