Skip to content

When saving a device, errors may be generated #4748

@manhvu1997

Description

@manhvu1997

Describe the bug

I installed cacti 1.2.20 and faced the error. Can you help me explain and fix this bug:

2022-04-29 11:32:15 - ERROR PHP DEPRECATED: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in file: /var/www/html/cacti/lib/variables.php on line: 219
2022-04-29 11:31:21 - CMDPHP PHP ERROR Backtrace: (/host.php[134]:host_edit(), /host.php[743]:draw_edit_form(), /lib/html_form.php[114]:draw_edit_control(), /lib/html_form.php[303]:form_callback(), /lib/html_form.php[831]:html_create_list(), /lib/html.php[1041]:null_out_substitutions(), /lib/variables.php[219]:preg_replace(), CactiErrorHandler())
2022-04-29 11:31:21 - ERROR PHP DEPRECATED: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in file: /var/www/html/cacti/lib/variables.php on line: 219
_

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