Sometimes I cannot create an easyrule
-
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,
-
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
-
Here is the crash report
PHP_errors.log.zip -
-
@jimp
I can apply it ? I must switch on beta branch ? -
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)
-
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 :DThank you !