-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.4.0beta2
-
Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
-
0.5
Steps to reproduce:
- Logout from Zabbix.
- Navigate to <zabbix UI>/zabbix.php?action=dashboard.view&dashboardid=aaa
Result:
Empty page with title "Fatal error, please report to the Zabbix team".
Errors in PHP log:
Undefined offset: 0 [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> ZBase->processResponseFinal() -> CView->getOutput() -> include() -> CMenuHelper::getFirstLabel() -> CMenuHelper::getFirstMenuItem() -> CConfigFile->{closure}() in include/classes/helpers/CMenuHelper.php:441] TypeError: Return value of CMenuHelper::getFirstMenuItem() must be an instance of CMenuItem, null returned in /home/user/zabbix/6.0/ui/include/classes/helpers/CMenuHelper.php:441 Stack trace: #0 /home/user/zabbix/6.0/ui/include/classes/helpers/CMenuHelper.php(451): CMenuHelper::getFirstMenuItem() #1 /home/user/zabbix/6.0/ui/app/views/system.warning.php(31): CMenuHelper::getFirstLabel() #2 /home/user/zabbix/6.0/ui/include/classes/mvc/CView.php(136): include('/home/user/zabb...') #3 /home/user/zabbix/6.0/ui/include/classes/core/ZBase.php(607): CView->getOutput() #4 /home/user/zabbix/6.0/ui/include/classes/core/ZBase.php(533): ZBase->processResponseFinal() #5 /home/user/zabbix/6.0/ui/include/classes/core/ZBase.php(210): ZBase->processRequest() #6 /home/user/zabbix/6.0/ui/include/config.inc.php(25): ZBase->run() #7 /home/user/zabbix/6.0/ui/zabbix.php(22): require_once('/home/user/zabb...') #8 {main}
Expected: