[ZBX-8875] Invalid index 'url' on dynamic screens Created: 2014 Oct 08  Updated: 2017 May 30  Resolved: 2015 Feb 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.4.1
Fix Version/s: 2.4.5rc1, 2.5.0

Type: Incident report Priority: Major
Reporter: Kenneth Palmertree Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: patch, screens, undef, undefinedindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-9222 Getting undefined index when adding t... Closed

 Description   

If a user views a dynamic screen and has "not selected" for the host drop down, the following error is shown at the bottom of the screen:

Undefined index: url [screens.php:176 ? CView->render() ? include() ? CScreenBuilder->show() ? CScreenLldGraphBase->get() ? CScreenBuilder->show() ? CScreenGraph->get() in /var/www/html/web.site.com/include/classes/screens/CScreenGraph.php:149]



 Comments   
Comment by Kenneth Palmertree [ 2014 Oct 08 ]

Fix the issue by applying the following patch:

diff -ruN ./frontends/php/include/classes/screens/CScreenGraph.php ./frontends/php/include/classes/screens/CScreenGraph.php
--- ./frontends/php/include/classes/screens/CScreenGraph.php      2014-10-08 12:12:04.346912525 -0400
+++ ./frontends/php/include/classes/screens/CScreenGraph.php       2014-10-08 13:02:33.000000000 -0400
@@ -146,7 +146,7 @@
                                : '&period='.$this->timeline['period'].'&stime='.$this->timeline['stimeNow'];
                }
                else {
-                       if ($this->screenitem['dynamic'] == SCREEN_SIMPLE_ITEM || !$this->screenitem['url']) {
+                       if ($this->screenitem['dynamic'] == SCREEN_SIMPLE_ITEM || !isset($this->screenitem['url'])) {
                                $this->screenitem['url'] = 'chart2.php?graphid='.$resourceId.'&screenid='.$this->screenitem['screenid'];
                                $isDefault = true;
                        }
Comment by Alexander Vladishev [ 2015 Jan 16 ]

Broken in ZBX-8659.

Comment by Ivo Kurzemnieks [ 2015 Feb 20 ]

(1) No translation string changes.

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2015 Feb 20 ]

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

Comment by Ivo Kurzemnieks [ 2015 Feb 24 ]

Fixed in pre-2.4.5rc1 r52364 and pre-2.5.0 (trunk) r52365
Corrected changelog entries in r52378, r52379

Generated at Tue Apr 16 23:11:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.