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 importing a Template, errors may be recorded #5392

Closed
xmacan opened this issue Jun 30, 2023 · 3 comments
Closed

When importing a Template, errors may be recorded #5392

xmacan opened this issue Jun 30, 2023 · 3 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team porting required Requires porting to develop resolved A fixed issue
Milestone

Comments

@xmacan
Copy link
Member

xmacan commented Jun 30, 2023

Actual 1.2.25
Import templates causes blank screen, log:
2023/06/30 15:15:07 - CMDPHP IMPORT NOTE: Repairing 1 Damaged data_input_fields
2023/06/30 15:15:07 - CMDPHP WARNING: Could not find Cacti default matching hash for unknown system hash "35637c344d84d8aa3a4dc50e4a120b3f" for 1. No repair performed.
2023/06/30 15:15:18 - CMDPHP IMPORT NOTE: Repairing 2 Damaged data_input_fields
2023/06/30 15:15:18 - CMDPHP WARNING: Could not find Cacti default matching hash for unknown system hash "35637c344d84d8aa3a4dc50e4a120b3f" for 1. No repair performed.
2023/06/30 15:15:24 - IMPORT parse_xml_hash ERROR wrong hash format for hash: 45
2023/06/30 15:15:24 - ERROR PHP ERROR: Uncaught Error: Unsupported operand types in /usr/local/share/cacti/lib/import.php:252 Stack trace: #0 /usr/local/share/cacti/templates_import.php(117): import_xml_data('\t\n\t<hash...', false, 2, false, false, Array) #1 /usr/local/share/cacti/templates_import.php(43): form_save() #2 {main} thrown in file: /usr/local/share/cacti/lib/import.php on line: 252
2023/06/30 15:15:24 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())

I know, it is very old xml.

@xmacan xmacan added bug Undesired behaviour unverified Some days we don't have a clue labels Jun 30, 2023
@TheWitness
Copy link
Member

@xmacan , can you please upload the XML?

@xmacan
Copy link
Member Author

xmacan commented Jul 1, 2023

@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team porting required Requires porting to develop and removed unverified Some days we don't have a clue labels Jul 1, 2023
TheWitness added a commit that referenced this issue Jul 1, 2023
Template import should not end with php error
@TheWitness TheWitness added this to the v1.2.25 milestone Jul 1, 2023
@TheWitness
Copy link
Member

Okay, nice error generated now.

TheWitness added a commit that referenced this issue Jul 1, 2023
Template import should not end with php error
@netniV netniV changed the title Template import should not end with php error When importing a Template, errors may be recorded Sep 3, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2023
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 porting required Requires porting to develop resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants