[ZBX-3987] Undefined index: graphid (api/classes/class.cgraph.php) Created: 2011 Jul 28  Updated: 2017 May 30  Resolved: 2011 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.6 (beta)
Fix Version/s: 1.9.7 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api, graphs, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk r20751.


Attachments: PNG File undef_index_graph.png    
Issue Links:
Duplicate
is duplicated by ZBX-4118 Undefined index graphid in Monitoring... Closed

 Description   

I faced with this problem many times (along ~ last week), and finally i can reproduce it.

1. Go to Monitoring -> Graphs
2. Select some host and it's some graph
3. Select the another host
4. Voila

When i select another host on step #3 then "hostid" in the URL changes but "graphid" stays as it was.

And on top of the page we see:
Undefined index: graphid [api/classes/class.cgraph.php:382]
Undefined index: graphid [api/classes/class.cgraph.php:382]
Undefined index: graphid [api/classes/class.cgraph.php:388]
Undefined index: graphid [api/classes/class.cgraph.php:389]
Undefined index: graphid [api/classes/class.cgraph.php:424]

Link on the picture is:
/zabbix/charts.php?sid=4ba4e1d7fd7e416b&form_refresh=1&fullscreen=0&groupid=0&hostid=10017&graphid=563
Note - graph with the ID=563 not related to host with ID=10017

This link works without errors:
zabbix/charts.php?sid=4ba4e1d7fd7e416b&form_refresh=1&fullscreen=0&groupid=0&hostid=10049&graphid=563
Note - here is another (proper) "hostid".



 Comments   
Comment by richlv [ 2011 Sep 04 ]

still reproducible in trunk rev 21476.
line numbers shifted a bit

Undefined index: graphid [api/classes/class.cgraph.php:383]
Undefined index: graphid [api/classes/class.cgraph.php:383]
Undefined index: graphid [api/classes/class.cgraph.php:389]
Undefined index: graphid [api/classes/class.cgraph.php:390]
Undefined index: graphid [api/classes/class.cgraph.php:425]

Comment by Alexey Fukalov [ 2011 Sep 19 ]

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

Comment by Alexey Fukalov [ 2011 Sep 19 ]

svn://svn.zabbix.com/trunk 21752

Generated at Thu Apr 25 16:16:36 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.