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

Receiving undefined index errors when working with some Data Queries #3180

Closed
karkaaa opened this issue Jan 12, 2020 · 4 comments
Closed

Receiving undefined index errors when working with some Data Queries #3180

karkaaa opened this issue Jan 12, 2020 · 4 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@karkaaa
Copy link

karkaaa commented Jan 12, 2020

Hello,

Then i add MikroTik - Device - Queues

get this error:

2020.01.12 08:51:28 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[219]:CactiErrorHandler())
--
2020.01.12 08:51:28 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /opt/cacti/lib/html_form_template.php on line: 219
2020.01.12 08:51:28 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[181]:CactiErrorHandler())
2020.01.12 08:51:28 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /opt/cacti/lib/html_form_template.php on line: 181
2020.01.12 08:51:28 - CMDPHP PHP ERROR NOTICE Backtrace: (/graphs_new.php[41]:form_save(), /graphs_new.php[149]:html_graph_new_graphs(), /lib/html_graph.php[434]:html_graph_custom_data(), /lib/html_graph.php[547]:draw_nontemplated_fields_graph_item(), /lib/html_form_template.php[180]:CactiErrorHandler())
2020.01.12 08:51:28 - ERROR PHP NOTICE: Undefined index: task_item_id in file: /opt/cacti/lib/html_form_template.php on line: 180

How to fix?

Mikrotik RBD52G-5HacD2HnD
Cacti version: 1.2.8
Spine version: 1.2.2
Mikrotik plugin version: 2.4

Thank you.

@cigamit
Copy link
Member

cigamit commented Jan 12, 2020

Can you be more specific as to what you are doing?

@cigamit cigamit transferred this issue from Cacti/plugin_mikrotik Jan 12, 2020
@cigamit
Copy link
Member

cigamit commented Jan 12, 2020

Turns out this is a Cacti bug.

@cigamit cigamit added the bug Undesired behaviour label Jan 12, 2020
@cigamit cigamit changed the title Error MikroTik - Device - Queues Receiving undefined index errors when working with some Data Queries Jan 12, 2020
cigamit added a commit that referenced this issue Jan 12, 2020
Receiving undefined index errors when working with some Data Queries
@cigamit cigamit added the resolved A fixed issue label Jan 12, 2020
@cigamit cigamit added this to the v1.2.9 milestone Jan 12, 2020
@cigamit
Copy link
Member

cigamit commented Jan 12, 2020

This issue is resolved. Update the file in question from the 1.2.x branch and you will stop receiving this warning.

@cigamit cigamit closed this as completed Jan 12, 2020
@karkaaa
Copy link
Author

karkaaa commented Jan 12, 2020

i update graphs_new.php, html_form_template.php and get same error,

@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

2 participants