Skip to content

When Resource XML file inproperly formatted, graph creation can fail with errors #4865

@BaptisteVlt

Description

@BaptisteVlt

Hello,

I run my cacti server on Centos 7.
Recently I tried to create a new graph and I got errors after that in my logs :

--
2022/07/18 10:25:38 - ERROR PHP WARNING: Illegal string offset 'direction' in file: /var/www/html/cacti/graphs_new.php on line: 826
2022/07/18 10:25:38 - CMDPHP PHP ERROR WARNING Backtrace: (/graphs_new.php[68]:graphs(), /graphs_new.php[670]:CactiErrorHandler())
2022/07/18 10:25:38 - ERROR PHP WARNING: Illegal string offset 'direction' in file: /var/www/html/cacti/graphs_new.php on line: 670

image
I compare the file graphs_new.php that I've to other ones and it looks like everything is normal.
Just cause I'm curious I ran 'systemctl status cactid' on my server and I got the error :
"Failed to start Cacti Daemon Main Poller Service"
I guess there is a link between this 2 problems.
Cacti version : 1.2.21.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions