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

Creating graphs from templates may sometimes result in errors #4352

Closed
cafetera opened this issue Jul 20, 2021 · 6 comments
Closed

Creating graphs from templates may sometimes result in errors #4352

cafetera opened this issue Jul 20, 2021 · 6 comments
Assignees
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@cafetera
Copy link

I'm getting the following error int the logs everytime I add a new graph

2021-07-20 17:38:19 - ERROR PHP NOTICE: Undefined index: cg in file: C:\inetpub\wwwroot\cacti\lib\template.php on line: 1723
2021-07-20 17:38:19 - CMDPHP PHP ERROR NOTICE Backtrace: (C:\inetpub\wwwroot\cacti\graphs_new.php[42]:form_save(), C:\inetpub\wwwroot\cacti\graphs_new.php[150]:html_graph_new_graphs(), C:\inetpub\wwwroot\cacti\lib\html_graph.php[465]:host_new_graphs_save(), C:\inetpub\wwwroot\cacti\graphs_new.php[243]:create_save_graph(), C:\inetpub\wwwroot\cacti\lib\template.php[1723]:CactiErrorHandler())

2021-07-20 17:38:19 - ERROR PHP NOTICE: Undefined index: cg in file: C:\inetpub\wwwroot\cacti\lib\template.php on line: 1723
2021-07-20 17:38:19 - CMDPHP PHP ERROR NOTICE Backtrace: (C:\inetpub\wwwroot\cacti\graphs_new.php[42]:form_save(), C:\inetpub\wwwroot\cacti\graphs_new.php[150]:html_graph_new_graphs(), C:\inetpub\wwwroot\cacti\lib\html_graph.php[465]:host_new_graphs_save(), C:\inetpub\wwwroot\cacti\graphs_new.php[243]:create_save_graph(), C:\inetpub\wwwroot\cacti\lib\template.php[1723]:CactiErrorHandler())

THANks

Cafetera

@bmfmancini
Copy link
Member

bmfmancini commented Jul 21, 2021 via email

@cafetera
Copy link
Author

cafetera commented Jul 21, 2021 via email

@netniV
Copy link
Member

netniV commented Jul 21, 2021

Wow, you're posting from the future ;-)

Joking aside, I think you meant 1.2.18. We will take a look at this, though I am a little tied up until the weekend myself.

@netniV netniV self-assigned this Jul 21, 2021
@cafetera
Copy link
Author

cafetera commented Jul 21, 2021 via email

@lichtl
Copy link

lichtl commented Aug 2, 2021

I'm also able to replicate the error message on a fresh installed 1.2.18 (linux - mariadb) when change the local device to cacti poller

02.08.2021 07:59:10 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[42]:form_save(), /graphs_new.php[150]:html_graph_new_graphs(), /lib/html_graph.php[465]:host_new_graphs_save(), /graphs_new.php[243]:create_save_graph(), /lib/template.php[1723]:CactiErrorHandler())
02.08.2021 07:59:10 - ERROR PHP NOTICE: Undefined index: cg in file: /opt/www/cacti/lib/template.php on line: 1723

image

@netniV
Copy link
Member

netniV commented Aug 13, 2021

@lichtl can you supply the exact steps you took to replicate the issue, so I can try and track this down?

@TheWitness TheWitness changed the title UNdefine INdex Undefined indexes experienced when attempting to create graph from template Sep 15, 2021
@TheWitness TheWitness added this to the 1.2.19 milestone Sep 15, 2021
@TheWitness TheWitness added the bug Undesired behaviour label Sep 15, 2021
TheWitness added a commit that referenced this issue Sep 15, 2021
Undefined indexes experienced when attempting to create graph from template
@TheWitness TheWitness added the resolved A fixed issue label Sep 15, 2021
TheWitness added a commit that referenced this issue Sep 15, 2021
Second attempt after testing
@netniV netniV changed the title Undefined indexes experienced when attempting to create graph from template Creating graphs from templates may sometimes result in errors Oct 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2022
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