Tested on the:
2.7.0-DEVELOPMENT (amd64)
built on Fri Oct 14 06:04:12 UTC 2022
FreeBSD 14.0-CURRENT
I can confirm this behavior.
The same happens if you try to change the gateway from the console using Option 2) Set Interface(s) IP Address
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 devel-main-n255799-28f6f5e488e: Fri Oct 14 06:28:01 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/5sNqxS3O/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev
Crash report details:
PHP Errors:
[15-Oct-2022 07:36:52 Etc/UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /etc/inc/config.lib.inc:1205
Stack trace:
#0 /etc/inc/config.lib.inc(1205): implode('/', 'gateways')
#1 /etc/rc.initial.setlanip(248): init_config_arr('gateways')
#2 /etc/rc.initial.setlanip(361): add_gateway_to_config('wan', '192.168.33.1', 'inet', false)
#3 /etc/rc.initial.setlanip(375): console_configure_ip_address(4)
#4 {main}
thrown in /etc/inc/config.lib.inc on line 1205
[15-Oct-2022 07:40:26 Etc/UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /etc/inc/config.lib.inc:1205
Stack trace:
#0 /etc/inc/config.lib.inc(1205): implode('/', 'gateways')
#1 /etc/rc.initial.setlanip(248): init_config_arr('gateways')
#2 /etc/rc.initial.setlanip(361): add_gateway_to_config('wan', '192.168.33.1', 'inet', false)
#3 /etc/rc.initial.setlanip(375): console_configure_ip_address(4)
#4 {main}
thrown in /etc/inc/config.lib.inc on line 1205
No FreeBSD crash data found.
It works fine if you choose DHCP to assign an IP address and gateway.