Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23852

Template import fails with 6.4.10/7.0a9

XMLWordPrintable

    • S24-W6/7, S24-W10/11
    • 0.5

      Steps to reproduce:

      1. import templates from 5.0 (linked to the issue internally)

      Result:

      2023/12/15 19:03:52 [error] 26#26: *29 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: CImportReferencer::findGraphidByName(): Argument #1 ($hostid) must be of type string, null given, called in /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php on line 178 and defined in /usr/share/zabbix/include/classes/import/CImportReferencer.php:450
      Stack trace:
      #0 /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php(178): CImportReferencer->findGraphidByName()
      #1 /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php(47): CTemplateDashboardImporter->resolveDashboardWidgetReferences()
      #2 /usr/share/zabbix/include/classes/import/CConfigurationImport.php(2071): CTemplateDashboardImporter->import()
      #3 /usr/share/zabbix/include/classes/import/CConfigurationImport.php(158): CConfigurationImport->processTemplateDashboards()
      #4 /usr/share/zabbix/include/classes/api/services/CConfiguration.php(298): CConfigurationImport->import()
      #5 /usr/share/zabbix/include/classes/" while reading response header from upstream, client: 192.168.65.1, server: zabbix, request: "POST /zabbix.php?action=popup.import HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "localhost", referrer: "http://localhost/templates.php"
      

      Expected:
      Template can be imported from 5.0.

        1. ZBX-23852.yaml
          3 kB
          Andrejs Griščenko

            agriscenko Andrejs Griščenko
            edgar.akhmetshin Edgar Akhmetshin
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: