|
|
| Author |
Message |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 1:08 pm Post subject: 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.
| Description: |
|
| Filesize: |
209.12 KB |
| Viewed: |
6237 Time(s) |

|
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 17009 Location: Muenster, Germany
|
Posted: Thu Jan 03, 2008 3:15 pm Post subject: Re: Problem Changing Graph details - error |
|
|
| 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 | I'm a bit worried. In 087a, there's no line 203 with that variable in that file. Are you running plugin arch?
Reinhard
|
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 3:20 pm Post subject: 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 |
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 3:21 pm Post subject: 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 |
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 3:24 pm Post subject: 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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 17009 Location: Muenster, Germany
|
Posted: Thu Jan 03, 2008 3:51 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 3:59 pm Post subject: Re: Problem Changing Graph details - error |
|
|
Attached is my graphs.php file.
Thanks again
| Description: |
|
 Download |
| Filename: |
graphs.php.txt |
| Filesize: |
49.22 KB |
| Downloaded: |
194 Time(s) |
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 17009 Location: Muenster, Germany
|
Posted: Thu Jan 03, 2008 4:09 pm Post subject: |
|
|
This code should only be executed when changing the Graph Template of an exting graph. But that's not what you did, eh?
Reinhard
|
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 4:23 pm Post subject: 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
| Description: |
|
| Filesize: |
234.73 KB |
| Viewed: |
6192 Time(s) |

|
| Description: |
|
| Filesize: |
212.66 KB |
| Viewed: |
6194 Time(s) |

|
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 17009 Location: Muenster, Germany
|
Posted: Thu Jan 03, 2008 4:56 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Thu Jan 03, 2008 5:14 pm Post subject: Re: Problem Changing Graph details - error |
|
|
| 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 |
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.
Thanks again for you help on this!
|
|
| Back to top |
|
 |
djule
Joined: 10 Jan 2008 Posts: 1
|
Posted: Thu Jan 10, 2008 11:10 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 17009 Location: Muenster, Germany
|
|
| Back to top |
|
 |
Feldmann
Joined: 26 Sep 2007 Posts: 10
|
Posted: Mon Jan 14, 2008 12:28 pm Post subject: Re: Problem Changing Graph details - error |
|
|
Entered as bug. ID 0001145
|
|
| Back to top |
|
 |
patrick
Joined: 20 May 2008 Posts: 8
|
Posted: Thu May 22, 2008 11:33 am Post subject: |
|
|
| Has this been fixed? I am getting this as well....
|
|
| Back to top |
|
 |
|