• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Oct 13, 2022, 11:08 PM

    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 Oct 15, 2022, 2:37 PM Reply Quote 1
    • S
      sochart @Anaerin
      last edited by Oct 15, 2022, 2:37 PM

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

      S 1 Reply Last reply Oct 18, 2022, 1:42 PM Reply Quote 0
      • S
        sochart @sochart
        last edited by Oct 18, 2022, 1:42 PM

        @sochart So any update please ?

        S 1 Reply Last reply Oct 18, 2022, 2:41 PM Reply Quote 0
        • S
          SteveITS Galactic Empire @sochart
          last edited by Oct 18, 2022, 2:41 PM

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

          B N 2 Replies Last reply Oct 18, 2022, 3:33 PM Reply Quote 0
          • B
            BBcan177 Moderator @SteveITS
            last edited by Oct 18, 2022, 3:33 PM

            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 Oct 20, 2022, 2:14 AM Reply Quote 2
            • A
              Anaerin @BBcan177
              last edited by Oct 20, 2022, 2:14 AM

              @bbcan177 Looks like that fixed the cron errors.

              1 Reply Last reply Reply Quote 0
              • G Gertjan referenced this topic on Oct 20, 2022, 7:05 AM
              • G Gertjan referenced this topic on Oct 20, 2022, 7:05 AM
              • N
                nicobike @SteveITS
                last edited by Nov 2, 2022, 2:26 AM

                @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 Nov 29, 2022, 9:34 AM

                  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.
                    This community forum collects and processes your personal information.
                    consent.not_received