[ZBX-16978] Undefined offset when creating a Problems by severity widget with show = Totals that displays only problems with certain severities Created: 2019 Nov 22  Updated: 2024 Apr 10  Resolved: 2019 Dec 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.4.2rc2, 5.0.0alpha1
Fix Version/s: 4.4.4rc1, 5.0.0alpha1, 5.0 (plan)

Type: Problem report Priority: Minor
Reporter: Sergejs Olonkins Assignee: Roberts Lataria (Inactive)
Resolution: Fixed Votes: 2
Labels: problemsbyseverity, undefinedoffset, widget
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File Problems_with_ProblemsBySeverity.gif    
Issue Links:
Duplicate
duplicates ZBX-16999 Error in vertical widget Closed
Team: Team D
Sprint: Sprint 58 (Nov 2019), Sprint 59 (Dec 2019)
Story Points: 0.25

 Description   

Problem description: Undefined offset errors are observed in the "Problems by severity" widget when it is created with "Show" set to "Totals" and when only certain severities are displayed on the widget - 2 errors per each filtered severity:

 Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452]
Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454]

Steps to reproduce:

  1. Navigate to Monitoring => Dashboards and open any dashboard
  2. Add a "Problems by severity" widget with the following parameters:
    "Severity" = select any severities but not all of them
    "Show" = Totals

Result: The following errors are returned in the widget for each severity that was filtered out:

Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452]
Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454]

Expected: No errors should be displayed in the widget.

Expected:



 Comments   
Comment by Roberts Lataria (Inactive) [ 2019 Nov 22 ]

Resolved in development branch feature/ZBX-16978-4.4.

Comment by Roberts Lataria (Inactive) [ 2019 Dec 05 ]

Fixed in:

Generated at Sat Apr 26 04:59:00 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.