[ZBX-5437] PHP errors when listing items in a template Created: 2012 Aug 10  Updated: 2017 May 30  Resolved: 2012 Aug 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Blocker
Reporter: Andrew Howell Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 6.3


Attachments: PNG File items-pic1.PNG    
Issue Links:
Duplicate
is duplicated by ZBX-5481 Positional macros which point to unex... Closed

 Description   

When listing items in some templates (Configuration->Templates then click on Items for a template) I get the following php errors

Undefined variable: interface [include/classes/helpers/trigger/CTriggerDescription.php:358]
Undefined index: [include/classes/helpers/trigger/CTriggerDescription.php:358]
Invalid argument supplied for foreach() [include/classes/helpers/trigger/CTriggerDescription.php:358]



 Comments   
Comment by Alexander Vladishev [ 2012 Aug 11 ]

It's happens if trigger names contain interface-based macros.

Comment by Alexey Fukalov [ 2012 Aug 22 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5437

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 23 ]

(1) The same problem persists on the availability report page, templated trigger selection pop up. Probably, all pages where templated triggers are used.

<Vedmak> RESOLVED also macro that cannot be resolved now expands to UNKNOWN

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 24 ]

(2) Macros should not be resolved in the availability report template trigger filter.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 24 ]

(3) Minor code issues:

  • please use a constant for the UNKNOWN string instead of a literal value;
  • please add a comment to the isAllowedMacro() function.

<Vedmak> RESOLVED

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 24 ]

TESTED.

Comment by Alexey Fukalov [ 2012 Aug 24 ]

Fixed in 2.0.3rc1 29832, 2.1.0rc1 29833

Generated at Wed Apr 24 06:04:58 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.