[ZBX-9902] Undefined variable: mediatypes in Monitoring->Events Created: 2015 Sep 23  Updated: 2017 May 30  Resolved: 2015 Oct 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.0alpha3
Fix Version/s: 3.0.0alpha3

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


 Description   
Undefined variable: mediatypes [events.php:753 ? makeEventsActions() in include\actions.inc.php:1347]
array_key_exists() expects parameter 2 to be array, null given [events.php:753 ? makeEventsActions() ? makeActionHints() ? array_key_exists() in include\actions.inc.php:1239]

How to reproduce:
1. Remove all media types
2. Create new trigger action with "Operation type" = Send message
3. Go to Monitoring->Evens and wait for new event with added action



 Comments   
Comment by Oleg Egorov (Inactive) [ 2015 Sep 23 ]

Related issue: ZBX-7148

Comment by vitalijs.cemeris (Inactive) [ 2015 Sep 25 ]

(1) No translation strings changed.

sasha CLOSED

Comment by vitalijs.cemeris (Inactive) [ 2015 Sep 25 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-9902

Comment by Alexander Vladishev [ 2015 Oct 12 ]

(2) Errors with operation type "Run remote command".

"Undefined variable: users makeEventsActions() in include/actions.inc.php:1333]"

sasha RESOLVED in r56085.

vitalijs.cemeris CLOSED

Comment by Alexander Vladishev [ 2015 Oct 12 ]

Successfully tested! Please take a look at my changes and close (2) before a merge.

Comment by vitalijs.cemeris (Inactive) [ 2015 Oct 13 ]

Fixed in pre-3.0.0alpha3 (trunk) r56103.

Generated at Tue Apr 23 23:22:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.