Cannot access offset of type string on string in /etc/inc/filter.inc
-
Upon opening Firewall->Rules:
I encountered the following fatal error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099 PHP ERROR: Type: 1, File: /etc/inc/filter.inc, Line: 5099, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown
Here's the crash report details:
Crash report begins. Anonymous machine information:
amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #1 plus-devel-main-n256087-b483c4a1074: Tue May 2 06:33:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/obj/amd64/fsFOb4nc/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/sources/FreeBS
PHP Errors: [03-May-2023 00:43:17 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099 [03-May-2023 00:43:46 Asia/Kolkata] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/filter.inc:5099 Stack trace: #0 /usr/local/www/firewall_rules.php(602): separator_rows(Array) #1 {main} thrown in /etc/inc/filter.inc on line 5099
-
That looks like it would be from something in rule separators. Can you check in your
config.xml
file and see what is present in terms of separator config/tags? -
I was able to reproduce it (though I had to hand edit a bad entry into my
config.xml
)https://redmine.pfsense.org/issues/14338
Fix is already committed and will be the next snapshots that we put out.
-
Thanks. Fixed on new snapshot.