Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When saving a device, errors may be generated #4748

Closed
manhvu1997 opened this issue Apr 29, 2022 · 3 comments
Closed

When saving a device, errors may be generated #4748

manhvu1997 opened this issue Apr 29, 2022 · 3 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@manhvu1997
Copy link

manhvu1997 commented Apr 29, 2022

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
_

@manhvu1997 manhvu1997 added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 29, 2022
@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Apr 29, 2022
@TheWitness
Copy link
Member

I have a pull request pending to resolve this. Thanks for testing.

@TheWitness TheWitness added this to the v1.2.21 milestone Apr 29, 2022
netniV pushed a commit that referenced this issue May 1, 2022
@TheWitness
Copy link
Member

Should be resolved now. Closing.

@manhvu1997
Copy link
Author

Thank Witness, I resolved that bug following your fixing

@netniV netniV changed the title Host_edit error When saving a device, errors may be generated May 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants