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

PHP error thrown #136

Closed
postilion opened this issue Mar 9, 2023 · 2 comments
Closed

PHP error thrown #136

postilion opened this issue Mar 9, 2023 · 2 comments

Comments

@postilion
Copy link

Upon installing latest scripts on pfSense+ v23.01 got this error:

PHP ERROR: Type: 1, File: /root/scripts/pfsense_zbx.php, Line: 978, Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /root/scripts/pfsense_zbx.php:978
Stack trace:
#0 /root/scripts/pfsense_zbx.php(1024): pfz_dhcp_get('failover')
#1 /root/scripts/pfsense_zbx.php(1037): pfz_dhcp_check_failover()
#2 /root/scripts/pfsense_zbx.php(1338): pfz_dhcp('failover', NULL)
#3 {main}
thrown @ 2023-03-09 16:19:00

Still investigating.
-nic

@rbicelli
Copy link
Owner

rbicelli commented Mar 9, 2023

Hello, this is a known behavior. It's because in pfsense+ functions related to dhcp leases are changed.
For now this could be mitigated disabling the item "DHCP Failover Pool Problems".

@postilion
Copy link
Author

Thanks! Done.
-nic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants