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

    Getting PHP error when editing/adding group

    Scheduled Pinned Locked Moved pfBlockerNG
    4 Posts 2 Posters 428 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
      anishkgt
      last edited by

      Hey All,

      I am trying add a domain to unblock when i received the following errors multiple times.

      PHP {$errortype}s
      PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng_category_edit.php, Line: 391, Message: 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 {main}
      thrown @ 2024-05-10 14:33:39
      
      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @anishkgt
        last edited by

        @anishkgt said in Getting PHP error when editing/adding group:

        pfblockerng_category_edit

        Like this : 24.03-DEVELOPMENT - PHP Fatal error: Uncaught ValueError: range(): Argument #3 ?

        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 Reply Quote 1
        • A
          anishkgt @Gertjan
          last edited by

          @Gertjan Thanks !
          I had install nano as well to edit the file

          pkg install nano
          

          then edit this config file

          /usr/local/www/pfblockerng/pfblockerng_category_edit.php
          

          ctrl+'/' lines 391 and 1517 replace '-1' with '1' as mentioned in the above link. Hopefully this should be included in the next release.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @anishkgt
            last edited by

            @anishkgt

            Metoo, I love nano, use it since day one.

            But you could also use the Patches pfSense package (a must have !)
            Just create a patch, as is proposed in the other thread. No need to edit a file.

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

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