-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.4.14
-
S24-W22/23, S24-W26/27, S24-W28/29, S24-W32/33, S24-W34/35, S24-W36/37
-
0.25
Steps to reproduce:
- Export any host(s)
- Navigate to Configuration > Templates
- 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]