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 running a data query, the result may come back as undefined #2922

Closed
interduo opened this issue Sep 3, 2019 · 6 comments
Closed

When running a data query, the result may come back as undefined #2922

interduo opened this issue Sep 3, 2019 · 6 comments
Labels
bug Undesired behaviour

Comments

@interduo
Copy link
Contributor

interduo commented Sep 3, 2019

Describe the bug

2019/09/03 13:05:35 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_commands.php[139]:run_data_query(), /lib/data_query.php[130]:CactiErrorHandler())
--
2019/09/03 13:05:35 - ERROR PHP NOTICE: Undefined variable: result in file: /var/www/html/cacti/lib/data_query.php on line: 130

I get this from time to time but I cannot reproduce this by hand.

@netniV netniV changed the title cacti 1.2.6 Undefined variable 'result' in lib/data_query.php Sep 3, 2019
@cigamit
Copy link
Member

cigamit commented Sep 5, 2019

Are you using the WMI plugin by chance?

cigamit added a commit that referenced this issue Sep 5, 2019
Undefined variable 'result' in lib/data_query.php
@cigamit cigamit added the bug Undesired behaviour label Sep 5, 2019
@interduo
Copy link
Contributor Author

interduo commented Sep 5, 2019

Are you using the WMI plugin by chance?

No.

@cigamit
Copy link
Member

cigamit commented Sep 6, 2019

This should be resolved in the 1.2.x branch. But I'm concerned. Can you tell me about the Data Query? Share an export of the entire device template?

@interduo
Copy link
Contributor Author

interduo commented Sep 6, 2019

Thanks for resolving this issue.

Can you tell me about the Data Query?

Yes, what do You would like to know?

Share an export of the entire device template?

Yes - how to do the export all of the templates? Do I need to click one by one?

@cigamit
Copy link
Member

cigamit commented Sep 8, 2019

I only need the one in question that was generating this error. The path that you were going should never have been followed, and that is concerning. It's for a data query data input method type that does not exist.

That section of the code if reserved for plugins that define their own data input types, and the only plugin that I know of right now is the WMI plugin.

@cigamit
Copy link
Member

cigamit commented Sep 8, 2019

I'm going to close. If you want, just dump your databbase and email it to developers@cacti.net

@cigamit cigamit closed this as completed Sep 8, 2019
@netniV netniV changed the title Undefined variable 'result' in lib/data_query.php When running a data query, the result may come back as undefined 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
Projects
None yet
Development

No branches or pull requests

2 participants