[ZBX-12277] Error "Undefined variable" appears during trigger expression test in frontend Created: 2017 Jun 13  Updated: 2024 Apr 10  Resolved: 2017 Aug 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.2.6
Fix Version/s: 3.0.11rc1, 3.2.8rc1, 3.4.0alpha2, 3.4 (plan)

Type: Problem report Priority: Minor
Reporter: Igors Makejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: expressions, frontend, testing, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot from 2017-06-13 12-59-17.png    
Issue Links:
Sub-task
Team: Team B
Sprint: Sprint 10, Sprint 11, Sprint 12
Story Points: 0.5

 Description   

Create trigger with following expression:

({Template ICMP Ping:icmppingloss.min({$PING_1_DELAY})}>{$PING_LOSS} and {$PING_1_DELAY}>{$PING_2_DELAY}) or ({Template ICMP Ping:icmppingloss.min({$PING_2_DELAY})}>{$PING_LOSS} and {$PING_1_DELAY}<={$PING_2_DELAY})

Go into Expression constructor and click on Test link, assign some values to variables and click Test button. Following errors appears:

Undefined variable: result [tr_testexpr.php:155 ? evalExpressionData() in include/triggers.inc.php:1900]
Undefined variable: result [tr_testexpr.php:155 ? evalExpressionData() in include/triggers.inc.php:1900]
Undefined variable: result [tr_testexpr.php:155 ? evalExpressionData() in include/triggers.inc.php:1900]
Undefined variable: result [tr_testexpr.php:171 ? evalExpressionData() in include/triggers.inc.php:1900]


 Comments   
Comment by Alexander Vladishev [ 2017 Jun 14 ]

Reproducible with latest 3.0, 3.2 and trunk but the error message is different:

Parse error: syntax error, unexpected '{' in /home/sasha/zabbix-svn/branches/3.2/frontends/php/include/triggers.inc.php(1898) : eval()'d code on line 1
Comment by Ivo Kurzemnieks [ 2017 Jun 22 ]

(1) No translation string changes.

oleg.egorov CLOSED

Comment by Ivo Kurzemnieks [ 2017 Jun 22 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-12277

Comment by Oleg Egorov (Inactive) [ 2017 Jun 30 ]

Frontend side successfully tested

Comment by Ivo Kurzemnieks [ 2017 Jul 18 ]

Fixed in:

  • pre-3.0.11rc1 r70301 (fixed changelog in r70305)
  • pre-3.2.8rc1 r70306
  • pre-3.4.0alpha2 (trunk) r70307
Generated at Fri Apr 26 17:24:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.