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

White screen appears after a user with Admin permissions, but without a group, tries to open the host page

XMLWordPrintable

      The Data Collection -> Hosts page is not available for a user with Admin permissions, but without a group.

      Steps to reproduce:

      1. Create a new user with Admin permission, but do not add groups;
      1. Login with this user;
      2. Open Data Collection -> Hosts.

      Result:
      Empty screen appears:

      Error in log:

      TypeError: array_column(): Argument #1 ($array) must be of type array, string given in /home/zabbix/workspace/master/ui/include/items.inc.php:2691
      Stack trace:
      #0 /home/zabbix/workspace/master/ui/include/items.inc.php(2691): array_column()
      #1 /home/zabbix/workspace/master/ui/app/controllers/CControllerHostList.php(278): getItemTypeCountByHostId()
      #2 /home/zabbix/workspace/master/ui/include/classes/mvc/CController.php(478): CControllerHostList->doAction()
      #3 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(646): CController->run()
      #4 /home/zabbix/workspace/master/ui/include/classes/core/ZBase.php(233): ZBase->processRequest()
      #5 /home/zabbix/workspace/master/ui/include/config.inc.php(25): ZBase->run()
      #6 /home/zabbix/workspace/master/ui/zabbix.php(22): require_once('...')
      #7 {main} 

      Also, an error appears in the log after opening hosts from monitoring, but the user can see the page on FE.

      Expected:
      User with Admin permissions can open Data collections -> Hosts page.

        1. 12.png
          12.png
          22 kB
        2. gfg.png
          gfg.png
          21 kB

            zabbix.dev Zabbix Development Team
            jiljina Juliana Iljina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: