23.01-RELEASE and pfBlocker 3.2.0_1 - php throw
-
This post is deleted! -
@rehtael Hmm, I had a similar sounding error during pfBlocker (not -devel) installation, but it seems to be working fine. This was a bit of an odd scenario, I installed 22.05 new, restored the config (which had pfB in it), pfSense said it had installed the packages, I upgraded to 23.01 (forgetting to uninstall pfB as I usually do), and found neither pfB nor apcupsd were installed. After installing I got:
Executing custom_php_install_command()... Rebuilding GeoIP tabs...grep: /usr/local/share/GeoIP/cc/Africa_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Africa_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Antarctica_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Antarctica_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Asia_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Asia_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Europe_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Europe_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/North_America_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/North_America_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Oceania_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Oceania_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/South_America_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/South_America_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Proxy_and_Satellite_v4.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Proxy_and_Satellite_v6.txt: No such file or directory grep: /usr/local/share/GeoIP/cc/Top_Spammers_v4.info: No such file or directory grep: /usr/local/share/GeoIP/cc/Top_Spammers_v6.info: No such file or directory Fatal error: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng.php:1980 Stack trace: #0 /usr/local/www/pfblockerng/pfblockerng.php(1980): sort(NULL, 2) #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries() #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): include_once('/usr/local/pkg/...') #3 /etc/inc/pkg-utils.inc(781): eval() #4 /etc/inc/pkg-utils.inc(899): eval_once('include_once('/...') #5 /etc/rc.packages(76): install_package_xml('pfBlockerNG') #6 {main} thrown in /usr/local/www/pfblockerng/pfblockerng.php on line 1980 PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 1980, Message: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng.php:1980 Stack trace: #0 /usr/local/www/pfblockerng/pfblockerng.php(1980): sort(NULL, 2) #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries() #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): include_once('/usr/local/pkg/...') #3 /etc/inc/pkg-utils.inc(781): eval() #4 /etc/inc/pkg-utils.inc(899): eval_once('include_once('/...') #5 /etc/rc.packages(76): install_package_xml('pfBlockerNG') #6 {main} thrownpkg-static: POST-INSTALL script failed =====
...so maybe because the files didn't exist yet/I hadn't run an update yet?
There is a 3.2.0_2 version on the way, per other posts.