[ZBX-22920] Undefined array key error during dashboard loading with Problem widget Created: 2023 Jun 06  Updated: 2024 Jul 17  Resolved: 2024 Jul 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.4.3, 7.0.0alpha1
Fix Version/s: 6.4.17rc1, 7.0.1rc1, 7.2.0alpha1

Type: Problem report Priority: Major
Reporter: Edgar Akhmetshin Assignee: Diana Dauksa
Resolution: Fixed Votes: 0
Labels: dashboard, problemwidget, widget
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL8/6.4.3


Issue Links:
Duplicate
Sub-task
part of ZBX-22825 Zabbix is not working for a user with... Closed
Team: Team A
Sprint: S24-W26/27
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Create hosts
  2. Create problems for this hosts
  3. Create maintenance rule for some hosts with problems
  4. Create user and give access to the hosts
  5. Create dashboard with a Problem Widget
  6. Activate 'Show suppressed problem'
  7. Open with simple user

Result:

Undefined array key 26 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → Widgets\Problems\Actions\WidgetView->doAction() → CScreenProblem::makeData() → CScreenProblem::addSuppressionNames() in include/classes/screens/CScreenProblem.php:404]
Trying to access array offset on value of type null [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → Widgets\Problems\Actions\WidgetView->doAction() → CScreenProblem::makeData() → CScreenProblem::addSuppressionNames() in include/classes/screens/CScreenProblem.php:404]

Expected:
No errors/warnings.

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/classes/screens/CScreenProblem.php?at=refs%2Fheads%2Frelease%2F6.4#404



 Comments   
Comment by Diana Dauksa [ 2024 Jul 05 ]

Available in versions:

Generated at Fri May 02 07:21:39 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.