• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 231 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.
  • B
    beerguzzle
    last edited by Apr 25, 2024, 11:24 PM

    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
    • B
      beerguzzle
      last edited by Apr 25, 2024, 11:51 PM

      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 Apr 26, 2024, 6:21 PM Reply Quote 0
      • J
        jrey @beerguzzle
        last edited by Apr 26, 2024, 6:21 PM

        @beerguzzle

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

        J 1 Reply Last reply Apr 26, 2024, 6:35 PM Reply Quote 1
        • J
          juanzelli @jrey
          last edited by Apr 26, 2024, 6:35 PM

          @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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received