Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When editing a graph, variable validation errors may prevent changes from being saved #2926

Closed
broxio opened this issue Sep 5, 2019 · 6 comments
Labels
bug Undesired behaviour resolved A fixed issue

Comments

@broxio
Copy link

broxio commented Sep 5, 2019

Describe the bug
Navigate to single graph item and try to update description as picture and SAVE button , then cacti show up error

(/graphs.php[45]:validate_graph_request_vars(), /graphs.php[1818]:validate_store_request_vars(), /lib/html_utility.php[682]:die_html_input_error(), /lib/html_validate.php[64]:cacti_debug_backtrace())
Validation error for variable host_id with a value of xxxxxx . See backtrace below for more details.

To Reproduce
Steps to reproduce the behavior:

  • Go to 'Console > Management > Devices > Graph List > Pick the graph and try to edit and save"

Expected behavior

  • Updated description of graph.

Screenshots
###figure1
Screen Shot 2562-09-05 at 17 26 13

###Figure2
Screen Shot 2562-09-05 at 17 24 24

Desktop (please complete the following information):

  • OS: macOS (Mojave) / Ubuntu 18.04 LTS
  • Browser Opera
  • Version Opera 62 macOS (Mojave)

Additional context
Happen after update from 1.2.4 to 1.2.6 , Cacti is manual install from source on Ubuntu 16.04 LTS

Cacti-info
Date | Thu, 05 Sep 2019 17:30:44 +0800
Cacti Version | 1.2.6
Cacti OS | unix
RSA Fingerprint | f1:b2:0a:ac:1a:2f:9e:97:f9:da:4c:70:1a:bc:15:f4
NET-SNMP Version | NET-SNMP version: 5.7.3
RRDtool Version Configured | 1.6.0+
RRDtool Version Found | 1.6.0
Devices | 805
Graphs | 9934
Data Sources | Script/Command: 10SNMP Get: 1082SNMP Query: 6497Script Query: 66Script Server: 28Script Query - Script Server: 778Total: 8461

@netniV
Copy link
Member

netniV commented Sep 5, 2019

What was the value of host_id? I am assuming it was not an integer.

cigamit added a commit that referenced this issue Sep 6, 2019
Cacti 1.2.6 failed to update graph
@cigamit
Copy link
Member

cigamit commented Sep 6, 2019

Okay, it was ugly, but I have resolved this one. Please pull the latest graphs.php from branch 1.2.x and give it a shot.

@cigamit cigamit added bug Undesired behaviour resolved A fixed issue labels Sep 6, 2019
@broxio
Copy link
Author

broxio commented Sep 6, 2019

I had pull from 1.2.x and it resolved the issue.

@broxio broxio closed this as completed Sep 6, 2019
@bmcintosh
Copy link

Hey Guys - I am really new to Cacti - can you share some step-by-step details on how to solve this issue? i am having the same issue. Really appreciate.

@shakilahmed13
Copy link

shakilahmed13 commented Sep 25, 2019

Hi could you please provide more details . Having the same problem

Annotation 2019-09-25 212329

@cigamit
Copy link
Member

cigamit commented Sep 27, 2019

You can wait for 1.2.7 released this weekend, or download the branch 1.2.x right now. Either way, it'll be fixed real soon.

@netniV netniV changed the title Cacti 1.2.6 failed to update graph. When editing a graph, variable validation errors may prevent changes from being saved Sep 28, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

5 participants