-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
5.2.0beta2
Steps to reproduce:
- create a host with out interface;
- go to create item form;
- choose DB monitoring item type;
- leave default values or make sure they are wrong so that error will come from server and click "Test" to open item test form;
- click "Get value" or "Get value and test" and make sure to get error from server;
- click "Cancel" to close item test popup;
- change item type to "SNMP agent" (yes no interface);
- click "Test" again to open item test form;
- observe errors in log:
Invalid argument supplied for foreach() [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupItemTestEdit->doAction() -> CConfigFile->{closure}() in app\controllers\CControllerPopupItemTestEdit.php:250] Illegal string offset 'version' [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CConfigFile->{closure}() in app\views\popup.itemtestedit.view.php:127]