-
Problem report
-
Resolution: Duplicate
-
Major
-
None
-
7.0.0rc1
The Data Collection -> Hosts page is not available for a user with Admin permissions, but without a group.
Steps to reproduce:
- Login with this user;
- Open Data Collection -> Hosts.
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.
- duplicates
-
ZBX-24310 Fatal error in host list, when logging in with user without any user group
- Closed