Problem Changing Graph details - error
Moderators: Developers, Moderators
Problem Changing Graph details - error
Error: Save Failed: Field Input Error (Check Red Fields).
Setting up a new graph, I cannot change any of the supplemental Graph Template Data. Clicking save without changing any fields also throws the error. I get the error above when I click save. I also see the following message in my messages file:
Jan 3 11:58:02 NetGraph httpd: PHP Notice: Undefined variable: local_graph_id in /var/www/html/cacti/graphs.php on line 203
Cacti ver 0.8.7a on RHEL v4
Any ideas? The message says to check red fields, but none are highlighted.
I can provide any additional details you may need.
Thanks.
Setting up a new graph, I cannot change any of the supplemental Graph Template Data. Clicking save without changing any fields also throws the error. I get the error above when I click save. I also see the following message in my messages file:
Jan 3 11:58:02 NetGraph httpd: PHP Notice: Undefined variable: local_graph_id in /var/www/html/cacti/graphs.php on line 203
Cacti ver 0.8.7a on RHEL v4
Any ideas? The message says to check red fields, but none are highlighted.
I can provide any additional details you may need.
Thanks.
- Attachments
-
- GraphSaveError.jpg (209.12 KiB) Viewed 10918 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Problem Changing Graph details - error
I'm a bit worried. In 087a, there's no line 203 with that variable in that file. Are you running plugin arch?Feldmann wrote:Jan 3 11:58:02 NetGraph httpd: PHP Notice: Undefined variable: local_graph_id in /var/www/html/cacti/graphs.php on line 203
Cacti ver 0.8.7a on RHEL v4
Reinhard
Re: Problem Changing Graph details - error
removed text - bad info.
Last edited by Feldmann on Mon Jan 14, 2008 12:26 pm, edited 1 time in total.
Re: Problem Changing Graph details - error
Removed text - bad info.
Last edited by Feldmann on Mon Jan 14, 2008 12:26 pm, edited 1 time in total.
Re: Problem Changing Graph details - error
Something went wrong there. Pevious posts have wrong code block, and I don't see how to edit post.
Yes I have the Plugin Arch installed.
Line 203 is in this block:
if (sizeof($input_list) > 0) {
foreach ($input_list as $input) {
update_graph_data_query_cache($local_graph_id);
}
of function form_save()
Sorry for the confusion, and thanks for the help
Yes I have the Plugin Arch installed.
Line 203 is in this block:
if (sizeof($input_list) > 0) {
foreach ($input_list as $input) {
update_graph_data_query_cache($local_graph_id);
}
of function form_save()
Sorry for the confusion, and thanks for the help
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Again, I'm sorry. There's no such bit of code in 087a graphs.php file. Even plugin arch should not have changed that piece of code, at least when installing plugin arch via patch. Did you install plugin arch by replacing files or by patching?
You may provide a larger bit of code to help me identifying what's going on here
Reinhard
You may provide a larger bit of code to help me identifying what's going on here
Reinhard
Re: Problem Changing Graph details - error
Attached is my graphs.php file.
Thanks again
Thanks again
- Attachments
-
- graphs.php.txt
- (49.22 KiB) Downloaded 321 times
Re: Problem Changing Graph details - error
When I create a new graph via:
Graph Management
-> Add
-> Template = SNMP -Generic OID Template
-> Host = MyDevice
-> Create
I then get a window with the Supplemental Graph data Fields at their defaults.
-> Select my data source snmp_oid
-> Modify title
-> Set vert Label and Legent Text
See attachment 1 ImgBeforeSave
-> Click Save
See attachment 2 ImgAfterSave
Note: Some of the settings take. The Datasource must be working because it shows the graph. The legend Text is right, but the Vertical Label is still defaulted to 0, and the Title is the default without my changes
Graph Management
-> Add
-> Template = SNMP -Generic OID Template
-> Host = MyDevice
-> Create
I then get a window with the Supplemental Graph data Fields at their defaults.
-> Select my data source snmp_oid
-> Modify title
-> Set vert Label and Legent Text
See attachment 1 ImgBeforeSave
-> Click Save
See attachment 2 ImgAfterSave
Note: Some of the settings take. The Datasource must be working because it shows the graph. The legend Text is right, but the Vertical Label is still defaulted to 0, and the Title is the default without my changes
- Attachments
-
- ImgBeforeSave.jpg (234.73 KiB) Viewed 10873 times
-
- ImgAfterSave.jpg (212.66 KiB) Viewed 10875 times
Re: Problem Changing Graph details - error
Same thing if I followed you right. Ultimately I get to the same page to modify the info, and it throws the error on save.gandalf wrote:Ok. Will try to reproduce this, but not before tomorrow. What happens, if you create a graph from the host edit view:
Devices -> select device -> associate graph template if not already there -> Create graphs for this Host -> check graph template -> create
Reinhard
Thanks again for you help on this!
I've exactly the same problem than you Feldmann.
When I create the graph from an existing data source, I fill out all the field and I obtain this damn message :
Error: Save Failed: Field Input Error (Check Red Fields)
However, the graph is created, and everything is working!!
I think the problem come from Title field : If I add argumment to the default field (|host_description|), they aren't taken in consideration after having created graph.
So, it appears to be a big problem in my case, because I'm using several graph for a single device, so all the created graphs have the same name (the default field).
I think, I haven't the same problem when I using a last version of cacti without plugin Architecture.
I would be very great, Gandalf, if you could come in help.
Thanks
When I create the graph from an existing data source, I fill out all the field and I obtain this damn message :
Error: Save Failed: Field Input Error (Check Red Fields)
However, the graph is created, and everything is working!!
I think the problem come from Title field : If I add argumment to the default field (|host_description|), they aren't taken in consideration after having created graph.
So, it appears to be a big problem in my case, because I'm using several graph for a single device, so all the created graphs have the same name (the default field).
I think, I haven't the same problem when I using a last version of cacti without plugin Architecture.
I would be very great, Gandalf, if you could come in help.
Thanks
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard
Reinhard
Re: Problem Changing Graph details - error
Entered as bug. ID 0001145gandalf wrote:Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard
Who is online
Users browsing this forum: No registered users and 1 guest