Navigation

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

    Sometimes I cannot create an easyrule

    General pfSense Questions
    2
    7
    154
    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

      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 Reply Quote 0
      • P
        p_bear @p_bear last edited by

        @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

          Here is the crash report
          PHP_errors.log.zip

          1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate last edited by

            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 Reply Quote 1
            • P
              p_bear @jimp last edited by

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

              1 Reply Last reply Reply Quote 0
              • jimp
                jimp Rebel Alliance Developer Netgate last edited by

                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 Reply Quote 1
                • P
                  p_bear @jimp last edited by

                  @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
                  • First post
                    Last post