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

    pfBlockerNG producing PHP errors on cron

    Scheduled Pinned Locked Moved CE 2.7.0 Development Snapshots (Retired)
    8 Posts 6 Posters 1.3k 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
      Anaerin
      last edited by

      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
      
      S 1 Reply Last reply Reply Quote 1
      • S
        sochart @Anaerin
        last edited by

        @anaerin Same exact trouble, even with all GeoIP lists disabled and logging disabled too.

        S 1 Reply Last reply Reply Quote 0
        • S
          sochart @sochart
          last edited by

          @sochart So any update please ?

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @sochart
            last edited by

            @sochart FWIW the package maintainer just posted in another thread there would be a new version in the next week or two.

            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!

            BBcan177B N 2 Replies Last reply Reply Quote 0
            • BBcan177B
              BBcan177 Moderator @SteveITS
              last edited by

              Can you try to edit:
              /usr/local/pkg/pfblockerng/pfblockerng.inc

              Reference:
              https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG-devel/files/usr/local/pkg/pfblockerng/pfblockerng.inc#L8366-L8379

              Line #8372 from:

              array_init_path($list, ['row']);
              

              to:

              array_init_path($list, 'row');
              

              Then report back if that fixed the issue?

              "Experience is something you don't get until just after you need it."

              Website: http://pfBlockerNG.com
              Twitter: @BBcan177  #pfBlockerNG
              Reddit: https://www.reddit.com/r/pfBlockerNG/new/

              A 1 Reply Last reply Reply Quote 2
              • A
                Anaerin @BBcan177
                last edited by

                @bbcan177 Looks like that fixed the cron errors.

                1 Reply Last reply Reply Quote 0
                • GertjanG Gertjan referenced this topic on
                • GertjanG Gertjan referenced this topic on
                • N
                  nicobike @SteveITS
                  last edited by

                  @steveits i have this patch already in my config, but didn't fix anything :(

                  1 Reply Last reply Reply Quote 0
                  • Y
                    yuryk
                    last edited by

                    My version of include file already has this fix, but the issue persists.

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