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

PFBlockerNG PHP Error

Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
7 Posts 2 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
    ancjr
    last edited by Feb 9, 2023, 5:27 AM

    PHP error when attempting to save configuration in PfBlockerNG

    Crash report begins.  Anonymous machine information:
    
    amd64
    14.0-CURRENT
    FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256016-ee43ebe4124: Wed Feb  8 14:43:16 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/B5BT22YU/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS
    
    Crash report details:
    
    PHP Errors:
    [09-Feb-2023 00:00:51 US/Eastern] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php:192
    Stack trace:
    #0 {main}
      thrown in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php on line 192
    [09-Feb-2023 00:02:22 US/Eastern] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php:192
    Stack trace:
    #0 {main}
      thrown in /usr/local/www/pfblockerng/pfblockerng_Top_Spammers.php on line 192
    
    
    
    No FreeBSD crash data found.
    
    G 1 Reply Last reply Feb 9, 2023, 7:23 AM Reply Quote 0
    • G
      Gertjan @ancjr
      last edited by Feb 9, 2023, 7:23 AM

      @ancjr

      Can you show what you tried to save on that page ?

      fdb27743-1afb-40d9-98c8-a329e776c83f-image.png

      pfBlockerNG-devel version 3.2.0_1
      What pfSense version ? The RC that came out this morning (for me) : 2301_BETA_20230202-20230209075316

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      A 1 Reply Last reply Feb 9, 2023, 12:17 PM Reply Quote 0
      • A
        ancjr @Gertjan
        last edited by ancjr Feb 9, 2023, 12:34 PM Feb 9, 2023, 12:17 PM

        @gertjan Sure:

        23.01.r.20230208.1414

        Screenshot_2023-02-09_07-15-52.png

        G 1 Reply Last reply Feb 9, 2023, 1:15 PM Reply Quote 0
        • G
          Gertjan @ancjr
          last edited by Feb 9, 2023, 1:15 PM

          @ancjr said in PFBlockerNG PHP Error:

          23.01.r.20230208.1414

          Probably not related, but a newer version is available.

          I just selected these same countries a you, and clciked on Save.
          No errors whatsoever for me.

          b9ad698f-3b22-4ce0-a3da-e041d28d5129-image.png

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          A 1 Reply Last reply Feb 9, 2023, 1:31 PM Reply Quote 0
          • A
            ancjr @Gertjan
            last edited by Feb 9, 2023, 1:31 PM

            @gertjan

            All up to date here.

            Screenshot_2023-02-09_08-29-26.png

            Screenshot_2023-02-09_08-30-01.png

            I may try to reset config and see what happens.

            G 1 Reply Last reply Feb 9, 2023, 1:47 PM Reply Quote 0
            • G
              Gertjan @ancjr
              last edited by Feb 9, 2023, 1:47 PM

              @ancjr said in PFBlockerNG PHP Error:

              reset config and see what happens.

              Wait ....

              9930d6c1-c2c8-452f-b60c-0cb31430f97f-image.png

              so pfSense is ok.

              Anyway your issue is "pfblocker", non pfSense.

              From what I recall, the GEOIP pages are auto generated (scripts making scripts).
              You could :
              Make a config backup (just in case).
              Remove the check from :

              a696b77e-2a91-425e-a16e-d38615832768-image.png

              and then remove pfBlocker.
              Re install pfBlocker.
              Set up your settings manually.

              Test if all is ok.
              If so, import your backup up settings (or don't, and call it a day).
              If the issue comes back : you know what to do.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              A 1 Reply Last reply Feb 9, 2023, 9:43 PM Reply Quote 0
              • A
                ancjr @Gertjan
                last edited by ancjr Feb 9, 2023, 9:45 PM Feb 9, 2023, 9:43 PM

                @gertjan

                After starting over with clean install of PFBlockerNG I have discovered that all of the GeoIP / Top Spammer pages will crash with a PHP error when saving, no matter the settings I choose.

                The rest of PFBlocker seems completely funtional as far as the features/settings I normally use.

                1 Reply Last reply Reply Quote 0
                4 out of 7
                • First post
                  4/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received