Pfsense dev version crash on easy rule
-
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc
Happens when you create an easy rule from firewall log.
Current version 2.7.0.a.20221024.0600
-
J jimp moved this topic from General pfSense Questions on
-
Confirmed, php bug:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc:60 Stack trace: #0 /etc/inc/easyrule.inc(370): easyrule_find_rule_interface('lan') #1 /usr/local/www/easyrule.php(49): easyrule_parse_block('lan', '192.168.167.50', 'inet') #2 {main} thrown in /etc/inc/easyrule.inc on line 60 PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc:60 Stack trace: #0 /etc/inc/easyrule.inc(370): easyrule_find_rule_interface('lan') #1 /usr/local/www/easyrule.php(49): easyrule_parse_block('lan', '192.168.167.50', 'inet') #2 {main} thrown
Tested in 2.7.0.a.20221103.0600
https://redmine.pfsense.org/issues/13627
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.