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

Error notice when importing non-template files via Templates page

XMLWordPrintable

    • S24-W22/23, S24-W26/27, S24-W28/29, S24-W32/33, S24-W34/35, S24-W36/37
    • 0.25

      Steps to reproduce:

      1. Export any host(s)
      2. Navigate to Configuration > Templates
      3. Import the exported file (same result should happen if importing "standalone" medias, maps...)

      Result:
      php error logged

      Undefined array key "templates" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupImportCompare->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->importcompare() -> CConfigFile->{closure}() in include/classes/api/services/CConfiguration.php:428]
      foreach() argument must be of type array|object, null given [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupImportCompare->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->importcompare() -> CConfigFile->{closure}() in include/classes/api/services/CConfiguration.php:428]
      Undefined variable $db_templates [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupImportCompare->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->importcompare() -> CConfigFile->{closure}() in include/classes/api/services/CConfiguration.php:441]
      foreach() argument must be of type array|object, null given [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupImportCompare->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->importcompare() -> CConfigFile->{closure}() in include/classes/api/services/CConfiguration.php:441]
      

            jfreibergs Janis Freibergs
            jfreibergs Janis Freibergs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1h Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 35m
                1h 35m