PFBlockerNG PHP Error
-
PHP error when attempting to save configuration in PfBlockerNG
Crash report begins. Anonymous machine information: amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256016-ee43ebe4124: Wed Feb 8 14:43:16 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/B5BT22YU/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS Crash report details: PHP Errors: [09-Feb-2023 00:00:51 US/Eastern] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php:192 Stack trace: #0 {main} thrown in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php on line 192 [09-Feb-2023 00:02:22 US/Eastern] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php:192 Stack trace: #0 {main} thrown in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php on line 192 No FreeBSD crash data found.
-
Can you show what you tried to save on that page ?
pfBlockerNG-devel version 3.2.0_1
What pfSense version ? The RC that came out this morning (for me) : 2301_BETA_20230202-20230209075316 -
@gertjan Sure:
23.01.r.20230208.1414
-
@ancjr said in PFBlockerNG PHP Error:
23.01.r.20230208.1414
Probably not related, but a newer version is available.
I just selected these same countries a you, and clciked on Save.
No errors whatsoever for me. -
-
@ancjr said in PFBlockerNG PHP Error:
reset config and see what happens.
Wait ....
so pfSense is ok.
Anyway your issue is "pfblocker", non pfSense.
From what I recall, the GEOIP pages are auto generated (scripts making scripts).
You could :
Make a config backup (just in case).
Remove the check from :and then remove pfBlocker.
Re install pfBlocker.
Set up your settings manually.Test if all is ok.
If so, import your backup up settings (or don't, and call it a day).
If the issue comes back : you know what to do. -
After starting over with clean install of PFBlockerNG I have discovered that all of the GeoIP / Top Spammer pages will crash with a PHP error when saving, no matter the settings I choose.
The rest of PFBlocker seems completely funtional as far as the features/settings I normally use.