[ZBX-15532] Undefined offset: 488443 [jsrpc.php:208 → CScreenProblem->get() → CScreenProblem::makeData() → usort() → CScreenProblem::{closure}() in include/classes/screens/CScreenProblem.php:603] Created: 2019 Jan 28 Updated: 2024 Apr 10 Resolved: 2019 Mar 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 4.0.3 |
Fix Version/s: | 4.0.6rc1, 4.2.0beta2, 4.2 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Marco Hofmann | Assignee: | Gregory Chalenko |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Server: |
Attachments: | image-2019-01-28-10-02-00-558.png image-2019-01-28-10-05-44-578.png image-2021-05-28-03-41-49-136.png image-2021-06-09-12-39-43-102.png | ||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Team: | Team D | ||||||||||||||||||||
Team: | Team D | ||||||||||||||||||||
Sprint: | Sprint 48, Jan 2019, Sprint 49 (Feb 2019) | ||||||||||||||||||||
Story Points: | 1 |
Description |
Steps to reproduce:
Result: Reason: |
Comments |
Comment by Miks Kronkalns [ 2019 Jan 28 ] |
To reproduce this bug, trigger must be constructed from at least 2 items and one of them must be generated by web scenario. {localhost:trap1.last()}>{$TEST} and {localhost:web.test.rspcode[scen1,step1].last()}<>0 'Show latest values' must be checked. Other filters doesn't play any role. |
Comment by Arturs Lontons [ 2019 Jan 29 ] |
Hi and thank you for reporting the issue! I was able to recreate and confirm this issue with Zabbix v. 4.0.3. when replicating the scenario described by Miks. When the trigger was in a problem state, I encountered the same error as in the issue description. The ticket will be reassigned to the development team for further investigation. |
Comment by Alexander Vladishev [ 2019 Feb 08 ] |
Also it is reproducible with recovery expression with items that are not in the problem expression. |
Comment by Gregory Chalenko [ 2019 Feb 28 ] |
Fixed in:
|
Comment by Peter Danko [ 2021 May 27 ] |
Hi, I have the same error in the latest 5.4.0.
Undefined offset: 41681 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsView->doAction() → CScreenProblem::getData() in include/classes/screens/CScreenProblem.php:343] |
Comment by Gregory Chalenko [ 2021 May 27 ] |
Thank you Alfista for report. Can you please clarify does this happen when you access using account with Zabbix super admin permissions? |
Comment by Peter Danko [ 2021 May 27 ] |
Hi gcalenko, yes this happens when I was loged as Zabbix Super Admin. |
Comment by Ivan Vanyushkin [ 2021 May 28 ] |
I can confirm this issue in v5.4.0. Seems error is triggered when operational data is displayed and web scenario is used in trigger expression. Errors: Undefined offset: 31563 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsView->doAction() → CScreenProblem::getData() in include/classes/screens/CScreenProblem.php:343] Undefined index: [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsView->doAction() → CScreenProblem::makeData() → CMacrosResolverHelper::sortItemsByExpressionOrder() → CMacrosResolver->sortItemsByExpressionOrder() → uasort() → CMacrosResolver->{closure}() in include/classes/macros/CMacrosResolver.php:2820] Trigger expression: count(/Host/web.test.fail[example.com], #5, , 0) <= 2 and length(last(/Host/web.test.error[example.com])) >= 0 Trigger name: Website example.com failed: {ITEM.VALUE2} Operational data is not displayed in Problems widget.
I'm logged in as super admin. Errors from different installation and different trigger expression: Undefined offset: 26905 [jsrpc.php:90 → CScreenProblem->get() → CScreenProblem::getData() in include/classes/screens/CScreenProblem.php:343] Trying to access array offset on value of type null [jsrpc.php:90 → CScreenProblem->get() → CScreenProblem::makeData() → CMacrosResolverHelper::sortItemsByExpressionOrder() → CMacrosResolver->sortItemsByExpressionOrder() → uasort() → CMacrosResolver->{closure}() in include/classes/macros/CMacrosResolver.php:2820] Undefined index: [jsrpc.php:90 → CScreenProblem->get() → CScreenProblem::makeData() → CMacrosResolverHelper::sortItemsByExpressionOrder() → CMacrosResolver->sortItemsByExpressionOrder() → uasort() → CMacrosResolver->{closure}() in include/classes/macros/CMacrosResolver.php:2820] Trying to access array offset on value of type null [jsrpc.php:90 → CScreenProblem->get() → CScreenProblem::makeData() → CMacrosResolverHelper::resolveItemNames() → CMacrosResolver->resolveItemNames() in include/classes/macros/CMacrosResolver.php:1509] |
Comment by Gregory Chalenko [ 2021 May 28 ] |
vanav thank you for detailed report, this issue will be fixed in |
Comment by Peter Danko [ 2021 May 31 ] |
Thanks, for so fast solving the issue. |
Comment by Dmitriy [ 2021 Jun 09 ] |
hi, i have the same error in 5.4.1 with web scenario... trigger expression max(/ets/web.test.fail[ets],#2)=1
|
Comment by Gregory Chalenko [ 2021 Jun 11 ] |
Thank you for report DmDS, issue will be fixed in |
Comment by Peter Danko [ 2021 Sep 07 ] |
Hi,
I have the same error:
Undefined offset: 41681 [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsView->doAction() → CScreenProblem::getData() in include/classes/screens/CScreenProblem.php:343] on my Zabbix 5.4.0.
Thanks. |