Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cacti 0.8 (pre20030414) - Undefined index: id in graph.php

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
monideth
Cacti User


Joined: 03 Apr 2003
Posts: 91

PostPosted: Mon Apr 14, 2003 6:54 am    Post subject: Cacti 0.8 (pre20030414) - Undefined index: id in graph.php Reply with quote

I am getting this error at the top of page in the web-brower when trying to create a new graph item in "Graph Management":

(before Graph Items [new])

Code:
Notice: Undefined index: id in /var/www/html/cacti-0.8/graphs.php on line 505

Notice: Undefined index: id in /var/www/html/cacti-0.8/graphs.php on line 508

Notice: Undefined variable: host_id in /var/www/html/cacti-0.8/graphs.php on line 508


(after "Graph Items Inputs")

Code:
Notice: Undefined index: id in /var/www/html/cacti-0.8/graphs.php on line 651



However, when I look in /var/www/html/cacti-0.8/graphs.php the file only contains 86 lines! Am I going mad?!

I assume the error messages includes the lines from the "include" and "include_once" files called within graph.php

How does one find out exactly where in the code this error is occuring?

Regards,

Mon
Back to top
monideth
Cacti User


Joined: 03 Apr 2003
Posts: 91

PostPosted: Mon Apr 14, 2003 7:23 am    Post subject: Reply with quote

This also applies to when creating a new Graph template:

Code:
Notice: Undefined index: id in /var/www/html/cacti-0.8/graph_templates.php on line 478

Notice: Undefined index: id in /var/www/html/cacti-0.8/graph_templates.php on line 558
 
Notice: Undefined index: id in /var/www/html/cacti-0.8/graph_templates.php on line 564


Regards,

Mon
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2235
Location: Carlisle, PA

PostPosted: Mon Apr 14, 2003 6:22 pm    Post subject: Reply with quote

No, you are not going crazy I think you were looking at the number of lines in 'graph.php', which is different from 'graphs.php'. Anyhow, I fixed this problem in CVS and pushed a new release.

-Ian
Back to top
monideth
Cacti User


Joined: 03 Apr 2003
Posts: 91

PostPosted: Tue Apr 15, 2003 2:13 am    Post subject: Reply with quote

I may not be losing my marbles but I'm certianly losing my eye-sight!

Thanks - I will try out the new CVS,

Regards,

Mon
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group