Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    23.01-RELEASE and pfBlocker 3.2.0_1 - php throw

    Scheduled Pinned Locked Moved pfBlockerNG
    2 Posts 2 Posters 688 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by A Former User

      This post is deleted!
      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @A Former User
        last edited by

        @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.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.