PHP Crash: pfBlockerNG/DNSBL/DNSBL Groups, attempt to add list
-
PfSense 24.03_1, pfblockerng 3.2.0_9.
I had two reproducible crashes in the path pfBlockerNG/DNSBL/DNSBL Groups when I clicked "add" to add a list. PHP coughs up this hairball:
PHP Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must be greater than 0 for increasing ranges in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:391
Stack trace:
#0 /usr/local/www/pfblockerng/pfblockerng_category_edit.php(391): range(1, 17, -1)Reported as redmine bug 15443 (me, today) and previously as bug 15365 (Christopher Cope, 29 days ago). Sorry, I missed Mr. Cope's report at first.
Mr Cope gave a possible fix to the PHP code. It appears that the PHP crew fixed a misfeature of the range() function between version 8.2 and 8.3. -
FWIW, I applied Mr Cope's fix to the file (actually I made a copy of the file, then edited the original and fixed the two lines by hand). Then I retried adding a list and everything worked. I did this on my 2100, which is still in testing mode.
The Powers That Be need to get this fix out the door. -
The fix is actually in 3.2.0_10 which should be showing as an update in installed packages.
-
@jrey Yep. The 3.2.0_10 update resolved the PHP error for me