[ZBX-11877] Undefined index in screens Created: 2017 Mar 07  Updated: 2024 Apr 10  Resolved: 2017 Mar 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 3.2.4, 3.4.0alpha1
Fix Version/s: 3.2.5rc1, 3.4.0alpha1

Type: Incident report Priority: Trivial
Reporter: Oleg Egorov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 3
Labels: screen, undefinedindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File screenshot-1.png    
Issue Links:
Duplicate
duplicates ZBX-11930 [Patch] Undefined index: lastEvent [z... Closed
Team: Team C
Sprint: Sprint 3, Sprint 4
Story Points: 1

 Description   

Moved from ZBX-11538

example.org/zabbix/screens.php

Undefined index: lastEvent [screens.php:147 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenHostgroupTriggers->get() ? make_latest_issues() ? make_popup_eventlist() in include/events.inc.php:441]

example.org/zabbix/zabbix.php?action=dashboard.view

Undefined index: lastEvent [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CView->getOutput() ? include() ? make_latest_issues() ? make_popup_eventlist() in include/events.inc.php:441]

Problem introduced in r64769



 Comments   
Comment by Andrew Baker [ 2017 Mar 07 ]

Same problem here, just did an in place upgrade

Dashboard:

Undefined index: lastEvent [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_latest_issues() → make_popup_eventlist() in include/events.inc.php:441]

Undefined index: lastEvent [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_latest_issues() → make_popup_eventlist() in include/events.inc.php:441]

Custom Screens:

Undefined index: lastEvent [screens.php:147 → CView->render() → include() → CScreenBuilder->show() → CScreenHostgroupTriggers->get() → make_latest_issues() → make_popup_eventlist() in include/events.inc.php:441]

Undefined index: lastEvent [screens.php:147 → CView->render() → include() → CScreenBuilder->show() → CScreenHostgroupTriggers->get() → make_latest_issues() → make_popup_eventlist() in include/events.inc.php:441]

Just upgraded from

zabbix_server (Zabbix) 3.0.2
Revision 59540 20 April 2016, compilation time: May 5 2016 15:16:44

to

3.2.4zabbix_server (Zabbix) 3.2.4
Revision 65975 27 February 2017, compilation time: Mar 7 2017 08:04:56

Comment by Dmitry Verkhoturov [ 2017 Mar 08 ]

It looks like there is trigger with 'comment' and/or 'url' fields but without 'lastEvent' object.
I can`t reproduce the error, is there possibility to get more information about collected triggers data?

I guess this might happen when event data is deleted due to housekeeper settings, so we have trigger in PROBLEM state with PROBLEM event already deleted.

Comment by Andrew Baker [ 2017 Mar 08 ]

What information would you like? I rolled back my upgrade, however I can clone the environment and recreate the problem.

Comment by Andrew Baker [ 2017 Mar 08 ]

Almost all my triggers have either comment or url fields. They point to our internal KB articles with the fixes, and or give details on what the problem is, why it's happening and what to do to fix it.

Comment by Gregory Chalenko [ 2017 Mar 10 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-11877 r66580

Comment by Gregory Chalenko [ 2017 Mar 10 ]

(1) [F] Translation string changes
No changes.

oleg.egorov CLOSED

Comment by Dmitry Verkhoturov [ 2017 Mar 14 ]

r66325, problem seems to be still present — I see errors in all places I saw them before.

Undefined index: lastEvent [screens.php:147 → CView->render() → include() → CScreenBuilder->show() → CScreenHostgroupTriggers->get() → make_latest_issues() → make_popup_eventlist() in include/events.inc.php:441]

Isn't it included in development build?

Comment by richlv [ 2017 Mar 14 ]

paskal, it is in the development branch mentioned - svn://svn.zabbix.com/branches/dev/ZBX-11877 . to test it, you have to check out that branch

some basic instructions on that at http://zabbix.org/wiki/Get_Zabbix

Comment by Catherine Barry [ 2017 Mar 15 ]

To confirm above statement
"I guess this might happen when event data is deleted due to housekeeper settings, so we have trigger in PROBLEM state with PROBLEM event already deleted."

I am getting this issue on events that are old and have no events under ack-screenshot attached

Comment by Natalja Romancaka [ 2017 Mar 27 ]

Tested

Comment by Gregory Chalenko [ 2017 Mar 27 ]

Fixed in:

  • 3.2 r66759
  • 3.4.0alpha1 (trunk) r66767
Generated at Thu Apr 17 09:30:35 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.