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 trying to find the best index to use, a 'must implement Countable' warning appears #2857

Closed
bmfmancini opened this issue Jul 29, 2019 · 1 comment
Labels
bug Undesired behaviour
Milestone

Comments

@bmfmancini
Copy link
Member

Hello everyone

I noticed that after running a network scan on 1.2.5 I see these errors in the log
I don't see any impacts everything seems to be running fine but thought id report it to you

I don't see these errors on my 1.2.4 instance

2019/07/29 19:51:53 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[60]:form_save(), /host.php[227]:api_device_save(), /lib/api_device.php[779]:api_device_update_host_template(), /lib/api_device.php[861]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[727]:get_best_data_query_index_type(), /lib/data_query.php[2029]:sizeof(), CactiErrorHandler())

2019/07/29 19:51:53 - ERROR PHP WARNING: sizeof(): Parameter must be an array or an object that implements Countable in file: /var/www/html/cacti/lib/data_query.php on line: 2029
2019/07/29 19:51:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/host.php[60]:form_save(), /host.php[227]:api_device_save(), /lib/api_device.php[779]:api_device_update_host_template(), /lib/api_device.php[861]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[727]:get_best_data_query_index_type(), /lib/data_query.php[2029]:CactiErrorHandler())
2019/07/29 19:51:53 - ERROR PHP NOTICE: Undefined index: fields in file: /var/www/html/cacti/lib/data_query.php on line: 2029
2019/07/29 19:51:53 - CMDPHP PHP ERROR WARNING Backtrace: (/host.php[60]:form_save(), /host.php[227]:api_device_save(), /lib/api_device.php[779]:api_device_update_host_template(), /lib/api_device.php[861]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[727]:get_best_data_query_index_type(), /lib/data_query.php[2029]:sizeof(), CactiErrorHandler())
2019/07/29 19:51:53 - ERROR PHP WARNING: sizeof(): Parameter must be an array or an object that implements Countable in file: /var/www/html/cacti/lib/data_query.php on line: 2029
2019/07/29 19:51:53 - CMDPHP PHP ERROR NOTICE Backtrace: (/host.php[60]:form_save(), /host.php[227]:api_device_save(), /lib/api_device.php[779]:api_device_update_host_template(), /lib/api_device.php[861]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[727]:get_best_data_query_index_type(), /lib/data_query.php[2029]:CactiErrorHandler())
2019/07/29 19:51:53 - ERROR PHP NOTICE: Undefined index: fields in file: /var/www/html/cacti/lib/data_query.php on line: 2029

@bmfmancini bmfmancini reopened this Jul 29, 2019
@netniV netniV changed the title 1.2.5 get_best_data_query_index_type() errors when using AutoM8 When trying to find the best index to use, a 'must implement Countable' warning appears Aug 1, 2019
netniV added a commit that referenced this issue Aug 1, 2019
@netniV
Copy link
Member

netniV commented Aug 1, 2019

This should now be resolved in the 1.2.x branch.

@netniV netniV closed this as completed Aug 1, 2019
@netniV netniV added the bug Undesired behaviour label Aug 1, 2019
@netniV netniV added this to the v1.2.6 milestone Aug 1, 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