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

    PHP Crash: pfBlockerNG/DNSBL/DNSBL Groups, attempt to add list

    Scheduled Pinned Locked Moved webGUI
    4 Posts 3 Posters 225 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.
    • beerguzzleB
      beerguzzle
      last edited by

      PfSense 24.03_1, pfblockerng 3.2.0_9.

      I had two reproducible crashes in the path pfBlockerNG/DNSBL/DNSBL Groups when I clicked "add" to add a list. PHP coughs up this hairball:

      PHP Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must be greater than 0 for increasing ranges in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:391
      Stack trace:
      #0 /usr/local/www/pfblockerng/pfblockerng_category_edit.php(391): range(1, 17, -1)

      Reported as redmine bug 15443 (me, today) and previously as bug 15365 (Christopher Cope, 29 days ago). Sorry, I missed Mr. Cope's report at first.
      Mr Cope gave a possible fix to the PHP code. It appears that the PHP crew fixed a misfeature of the range() function between version 8.2 and 8.3.

      Netgate 1100 and Netgate 2100, latest pfsense+ version

      1 Reply Last reply Reply Quote 0
      • beerguzzleB
        beerguzzle
        last edited by

        FWIW, I applied Mr Cope's fix to the file (actually I made a copy of the file, then edited the original and fixed the two lines by hand). Then I retried adding a list and everything worked. I did this on my 2100, which is still in testing mode.
        The Powers That Be need to get this fix out the door.

        Netgate 1100 and Netgate 2100, latest pfsense+ version

        J 1 Reply Last reply Reply Quote 0
        • J
          jrey @beerguzzle
          last edited by

          @beerguzzle

          The fix is actually in 3.2.0_10 which should be showing as an update in installed packages.

          juanzelliJ 1 Reply Last reply Reply Quote 1
          • juanzelliJ
            juanzelli @jrey
            last edited by

            @jrey Yep. The 3.2.0_10 update resolved the PHP error for me 👍

            Netgate 4100 and HPE InstantOn network at home

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