-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
Affects Version/s: 6.0.47rc1, 7.0.27rc1, 7.4.11rc1, 8.0.0beta2 (master)
-
Component/s: Frontend (F)
-
Sprint candidates
Steps to reproduce:
- Log in as Super Admin
- Navigate to /zabbix.php?action=userrole.edit&roleid=3&form_refresh=1
Result: On 6.0, 7.0 and 7.4 dozens of "Undefined array key" errors for every UI, module, API, and action field.
On master page crashes with error:
Undefined array key "ui" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerUserroleEdit->doAction() -> CControllerUserroleEditGeneral->getRulesInput() -> CControllerUserroleEditGeneral->getUiSectionRules() -> CController->getInput() -> CConfigFile->{closure}() in include/classes/mvc/CController.php:453] TypeError: array_flip(): Argument #1 ($array) must be of type array, null given in /home/zabbix/workspace/master/ui/app/controllers/CControllerUserroleEditGeneral.php:38 Stack trace: #0 /home/zabbix/workspace/master/ui/app/controllers/CControllerUserroleEditGeneral.php(38): array_flip() #1 /home/zabbix/workspace/master/ui/app/controllers/CControllerUserroleEditGeneral.php(29): CControllerUserroleEditGeneral->getUiSectionRules() #2 /home/zabbix/workspace/master/ui/app/controllers/CControllerUserroleEdit.php(193): CControllerUserroleEditGeneral->getRulesInput() #3 /home/zabbix/workspace/master/ui/include/classes/mvc/CController.php(582): CControllerUserroleEdit->doAction() #4 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(653): CController->run() #5 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(228): ZBase->processRequest() #6 /home/zabbix/workspace/master/ui/include/config.inc.php(20): ZBase->run() #7 /home/zabbix/workspace/master/ui/zabbix.php(17): require_once('...') #8 {main}
Expected: Form opens without errors.