Skip to content

Deprecation warnings when attempting real-time Graphs with PHP8.1 #4853

@manhvu1997

Description

@manhvu1997

I installed cacti 1.2.20. I created a graph and device success, but when I viewed the graph in realtime, I faced the issue below:
image

The log file said:
2022-07-01 12:44:11 - ERROR PHP DEPRECATED: Implicit conversion from float 35.4375 to int loses precision in file: /var/www/html/cacti/lib/rrd.php on line: 3670
2022-07-01 12:44:11 - CMDPHP PHP ERROR Backtrace: (/graph_realtime.php[244]:rrdtool_create_error_image(), /lib/rrd.php[3670]:wordwrap(), CactiErrorHandler())

Can you help me to fix that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHP8Issue related to PHP8bugUndesired 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