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

Data Sources troubleshooter generates warning that each() function is deprecated #2610

Closed
gbonny1982 opened this issue Apr 3, 2019 · 1 comment
Assignees
Labels
bug Undesired behaviour
Milestone

Comments

@gbonny1982
Copy link

When Troubleshooting - Data Sources I see two error messages in the logging:

ERROR PHP DEPRECATED: The each() function is deprecated. This message will be suppressed on further calls in file: /opt/cacti/data_debug.php on line: 171
CMDPHP PHP ERROR Backtrace: (/data_debug.php[41]:form_actions(), /data_debug.php[171]:each(), CactiErrorHandler())

On Ubuntu 18.04 LTS + PHP7.2 with latest patches.

https://www.php.net/manual/en/migration72.deprecated.php
https://www.php.net/manual/en/function.each.php
The function "foreach()" is suggested as a solution.

@netniV
Copy link
Member

netniV commented Apr 3, 2019

Hmm, I thought we'd removed all of those, this appears to have been introduced afterwards.

@netniV netniV added the bug Undesired behaviour label Apr 3, 2019
@netniV netniV added this to the v1.2.4 milestone Apr 3, 2019
@netniV netniV changed the title Cacti 1.2.3 - ERROR PHP DEPRECATED: The each() function is deprecated Data Sources troubleshooter generates warning that each() function is deprecated Apr 4, 2019
@netniV netniV self-assigned this Apr 4, 2019
@netniV netniV closed this as completed Apr 4, 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
Projects
None yet
Development

No branches or pull requests

2 participants