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    


Problem Changing Graph details - error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
Feldmann



Joined: 26 Sep 2007
Posts: 10

PostPosted: Thu Jan 03, 2008 1:08 pm    Post subject: Problem Changing Graph details - error Reply with quote

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.



GraphSaveError.jpg
 Description:
 Filesize:  209.12 KB
 Viewed:  6237 Time(s)

GraphSaveError.jpg


Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Thu Jan 03, 2008 3:15 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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

PostPosted: Thu Jan 03, 2008 3:20 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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

PostPosted: Thu Jan 03, 2008 3:21 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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

PostPosted: Thu Jan 03, 2008 3:24 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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

PostPosted: Thu Jan 03, 2008 3:51 pm    Post subject: Reply with quote

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

PostPosted: Thu Jan 03, 2008 3:59 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

Attached is my graphs.php file.

Thanks again



graphs.php.txt
 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

PostPosted: Thu Jan 03, 2008 4:09 pm    Post subject: Reply with quote

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

PostPosted: Thu Jan 03, 2008 4:23 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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



ImgBeforeSave.jpg
 Description:
 Filesize:  234.73 KB
 Viewed:  6192 Time(s)

ImgBeforeSave.jpg



ImgAfterSave.jpg
 Description:
 Filesize:  212.66 KB
 Viewed:  6194 Time(s)

ImgAfterSave.jpg


Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Thu Jan 03, 2008 4:56 pm    Post subject: Reply with quote

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

PostPosted: Thu Jan 03, 2008 5:14 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

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

PostPosted: Thu Jan 10, 2008 11:10 am    Post subject: Reply with quote

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

PostPosted: Thu Jan 10, 2008 3:41 pm    Post subject: Reply with quote

Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard
Back to top
Feldmann



Joined: 26 Sep 2007
Posts: 10

PostPosted: Mon Jan 14, 2008 12:28 pm    Post subject: Re: Problem Changing Graph details - error Reply with quote

gandalf wrote:
Please file a bug as given by http://www.cacti.net/bugs.php.
Reinhard


Entered as bug. ID 0001145
Back to top
patrick



Joined: 20 May 2008
Posts: 8

PostPosted: Thu May 22, 2008 11:33 am    Post subject: Reply with quote

Has this been fixed? I am getting this as well....
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group