pfBlockerNG producing PHP errors on cron
-
Having updated to 2.7.0.a.20221013.0600 I'm noticing the following error in the logs:
Oct 13 17:01:11 router php[23890]: /usr/local/www/pfblockerng/pfblockerng.php: PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 3380, Message: Uncaught TypeError: array_init_path(): Argument #2 ($path) must be of type ?string, array given, called in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 8372 and defined in /etc/inc/util.inc:3380 Oct 13 17:01:11 router php[23890]: Stack trace: Oct 13 17:01:11 router php[23890]: #0 /usr/local/pkg/pfblockerng/pfblockerng.inc(8372): array_init_path(Array, Array) Oct 13 17:01:11 router php[23890]: #1 /usr/local/www/pfblockerng/pfblockerng.php(544): sync_package_pfblockerng('cron') Oct 13 17:01:11 router php[23890]: #2 /usr/local/www/pfblockerng/pfblockerng.php(145): pfblockerng_sync_cron() Oct 13 17:01:11 router php[23890]: #3 {main} Oct 13 17:01:11 router php[23890]: thrown
-
@anaerin Same exact trouble, even with all GeoIP lists disabled and logging disabled too.
-
@sochart So any update please ?
-
@sochart FWIW the package maintainer just posted in another thread there would be a new version in the next week or two.
-
Can you try to edit:
/usr/local/pkg/pfblockerng/pfblockerng.incReference:
https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG-devel/files/usr/local/pkg/pfblockerng/pfblockerng.inc#L8366-L8379Line #8372 from:
array_init_path($list, ['row']);
to:
array_init_path($list, 'row');
Then report back if that fixed the issue?
-
@bbcan177 Looks like that fixed the cron errors.
-
-
-
@steveits i have this patch already in my config, but didn't fix anything :(
-
My version of include file already has this fix, but the issue persists.