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 creating a graph, undefined function prevents confirmation from appearing #2457

Closed
stormonts opened this issue Feb 26, 2019 · 3 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@stormonts
Copy link

stormonts commented Feb 26, 2019

With Cacti 1.2.1 and 1.2.2, I am seeing an error in the logs and not seeing a confirmation window when I create a new graph via Create-> New Graphs. The graph is created, however if I place a check box in multiple boxes to create multiple graphs, only the very first checked graph is created.

The error in the logs is:

2019/02/25 10:36:43 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/02/25 10:36:43 - ERROR PHP ERROR: Uncaught Error: Call to undefined function api_tree_branch_exists() 
in /usr/local/cacti-1.2.2/lib/api_automation.php:2683 
Stack trace:
 #0 /usr/local/cacti-1.2.2/lib/api_automation.php(2657): create_header_node('3CX-BTP-01', Array, Array, '8')
 #1 /usr/local/cacti-1.2.2/lib/api_automation.php(2624): create_multi_header_node('3CX-BTP-01', Array, Array, '8')
 #2 /usr/local/cacti-1.2.2/lib/api_automation.php(2374): create_all_header_nodes('11331', Array)
 #3 /usr/local/cacti-1.2.2/lib/api_automation.php(2131): automation_execute_graph_create_tree('11331')
 #4 /usr/local/cacti-1.2.2/lib/template.php(1319): automation_hook_graph_create_tree(Array)
 #5 /usr/local/cacti-1.2.2/lib/template.php(1619): create_complete_graph_from_template('25', 310, Array, NULL)
 #6 /usr/local/cacti-1.2.1/graphs_new.php(220): create_save_graph(310, 'sg', 1, Array, Array)
 #7 /usr/local/cacti-1.2.2/lib/html_graph.php(447): host_new_graphs_save(310)
 #8 /usr/local/cacti-1.2.1/graphs_new.php(126): html_graph_new_graphs('graphs_new.php', 310, 10, Ar 
in file: /usr/local/cacti-1.2.2/lib/api_automation.php on line: 2683

To reproduce, I go to Create, then New Graphs, check a box next to a graph, click Create. It doesn't matter what type of graph I select or which device I pick.

This is running on CentOS 6.10.

@netniV
Copy link
Member

netniV commented Feb 26, 2019

This was supposedly rectified in issue #2145 so it's curious that you seem to have it again.

@stormonts
Copy link
Author

Let me know what more you need from me.

@cigamit
Copy link
Member

cigamit commented Feb 28, 2019

Found it. The stack trace showed it all. Thanks!

cigamit added a commit that referenced this issue Feb 28, 2019
Not seeing confirmation when creating a new graph
@cigamit cigamit added bug Undesired behaviour resolved A fixed issue labels Feb 28, 2019
@cigamit cigamit added this to the v1.2.3 milestone Feb 28, 2019
@cigamit cigamit closed this as completed Mar 3, 2019
@netniV netniV changed the title Not seeing confirmation when creating a new graph When creating a graph, undefined function prevents confirmation from appearing Mar 30, 2019
@github-actions github-actions bot locked as resolved 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

3 participants