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

Empty page when guest navigates to a page with wrong parameters

XMLWordPrintable

    • Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 0.5

      Steps to reproduce:

      1. Logout from Zabbix.
      2. 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:

            iivs Ivo Kurzemnieks
            agriscenko Andrejs Griščenko
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: