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

Sometimes I cannot create an easyrule

Scheduled Pinned Locked Moved General pfSense Questions
7 Posts 2 Posters 559 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.
  • P
    p_bear
    last edited by p_bear Mar 15, 2023, 9:05 AM Mar 15, 2023, 8:58 AM

    Hello,

    Sometimes I cannot create an easyrule, I get a error message like that:

    Fatal error: Uncaught TypeError: getprotobynumber(): Argument #1 ($protocol) must be of type int, string given in /etc/inc/easyrule.inc:510 Stack trace: #0 /etc/inc/easyrule.inc(510): getprotobynumber('icmpv6') #1 /usr/local/www/easyrule.php(52): easyrule_parse_pass('wan', 'icmpv6', '2001:41d0:701:1...', '2a01:e0b:b01:1d...', '', 'inet6') #2 {main} thrown in /etc/inc/easyrule.inc on line 510 PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 510, Message: Uncaught TypeError: getprotobynumber(): Argument #1 ($protocol) must be of type int, string given in /etc/inc/easyrule.inc:510 Stack trace: #0 /etc/inc/easyrule.inc(510): getprotobynumber('icmpv6') #1 /usr/local/www/easyrule.php(52): easyrule_parse_pass('wan', 'icmpv6', '2001:41d0:701:1...', '2a01:e0b:b01:1d...', '', 'inet6') #2 {main} thrown
    

    Is it a known bug or I have something wrong with my pfsense ?

    KR,

    P 1 Reply Last reply Mar 15, 2023, 9:00 AM Reply Quote 0
    • P
      p_bear @p_bear
      last edited by Mar 15, 2023, 9:00 AM

      @p_bear

      In the Notifications:

      PHP errors
      
      PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 510, Message: Uncaught TypeError: getprotobynumber(): Argument #1 ($protocol) must be of type int, string given in /etc/inc/easyrule.inc:510
      Stack trace:
      #0 /etc/inc/easyrule.inc(510): getprotobynumber('icmpv6')
      #1 /usr/local/www/easyrule.php(52): easyrule_parse_pass('wan', 'icmpv6', '2001:41d0:701:1...', '2a01:e0b:b01:1d...', '', 'inet6')
      #2 {main}
      thrown @ 2023-03-15 09:48:38
      
      1 Reply Last reply Reply Quote 0
      • P
        p_bear
        last edited by Mar 16, 2023, 12:38 PM

        Here is the crash report
        PHP_errors.log.zip

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Mar 16, 2023, 1:17 PM

          https://redmine.pfsense.org/issues/14037

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          P 1 Reply Last reply Mar 16, 2023, 3:10 PM Reply Quote 1
          • P
            p_bear @jimp
            last edited by Mar 16, 2023, 3:10 PM

            @jimp
            I can apply it ? I must switch on beta branch ?

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Mar 16, 2023, 6:22 PM

              You can install the System Patches package and then create an entry for be6d44179f8a82b7adbdf95336d68ee491963ae0 to apply the fix.

              Or you can install the package and apply it from the Recommended Patches list when it shows up there later today (pkg version 2.2)

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              P 1 Reply Last reply Mar 16, 2023, 7:44 PM Reply Quote 1
              • P
                p_bear @jimp
                last edited by Mar 16, 2023, 7:44 PM

                @jimp

                Wow
                I knew nothing about this patches system ! It's nice.
                I just did what you said.

                I learned many new stuff about my pfsense today, thanks to you !
                I love it even more :D

                Thank you !

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