Skip to content

When importing a Template, errors may be recorded #5392

Description

@xmacan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamporting requiredRequires porting to developresolvedA fixed issuestatus:confirmedNamespaced Cacti workflow labeltype:bugNamespaced Cacti workflow label

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions