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

Add support for Automation under PHP 8 #4554

Closed
TheWitness opened this issue Feb 15, 2022 · 0 comments
Closed

Add support for Automation under PHP 8 #4554

TheWitness opened this issue Feb 15, 2022 · 0 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@TheWitness
Copy link
Member

Describe the bug

When automation runs, Cacti throws a few DEPRECATION errors upon startup.

2022-02-15  00:32:34 - CMDPHP PHP ERROR Backtrace:   (/poller_automation.php[285]:automation_primeIPAddressTable(),  /lib/api_automation.php[3338]:automation_calculate_start(),  /lib/api_automation.php[3272]:automation_get_network_info(),  /lib/api_automation.php[3234]:automation_get_network_info(),  /lib/api_automation.php[3247]:CactiErrorHandler())
--
2022-02-15 00:32:34 - ERROR PHP DEPRECATED: Automatic conversion of  false to array is deprecated in file:  /var/www/html/cacti/lib/api_automation.php  on line: 3247
2022-02-15 00:32:34 - CMDPHP PHP ERROR Backtrace:   (/poller_automation.php[285]:automation_primeIPAddressTable(),  /lib/api_automation.php[3335]:automation_calculate_total_ips(),  /lib/api_automation.php[3284]:automation_get_network_info(),  /lib/api_automation.php[3234]:automation_get_network_info(),  /lib/api_automation.php[3247]:CactiErrorHandler())
2022-02-15 00:32:34 - ERROR PHP DEPRECATED: Automatic conversion of  false to array is deprecated in file:  /var/www/html/cacti/lib/api_automation.php  on line: 3247

Expected behavior

Cacti should be free of these backtraces.

@TheWitness TheWitness added the bug Undesired behaviour label Feb 15, 2022
@TheWitness TheWitness added this to the v1.2.20 milestone Feb 15, 2022
TheWitness added a commit that referenced this issue Feb 15, 2022
PHP 8.1 Causing Automation Deprecation Errors
@TheWitness TheWitness added the resolved A fixed issue label Feb 15, 2022
@netniV netniV changed the title PHP 8.1 Causing Automation Deprecation Errors Add support for Automation under PHP 8 Apr 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 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

1 participant