DHCP Server PHP error on both Sept Snapshots
-
Crash report begins. Anonymous machine information: amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #0 devel-main-n255797-d8d104eec65: Tue Sep 27 06:28:02 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/rzTrzeyH/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev Crash report details: PHP Errors: [28-Sep-2022 00:15:59 US/Pacific] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcp.php:57 Stack trace: #0 {main} thrown in /usr/local/www/services_dhcp.php on line 57 No FreeBSD crash data found.
Also when trying to access DHCPv6 Server & RA:
Crash report begins. Anonymous machine information: amd64 14.0-CURRENT FreeBSD 14.0-CURRENT #0 devel-main-n255797-d8d104eec65: Tue Sep 27 06:28:02 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/rzTrzeyH/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev Crash report details: PHP Errors: [28-Sep-2022 00:15:59 US/Pacific] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcp.php:57 Stack trace: #0 {main} thrown in /usr/local/www/services_dhcp.php on line 57 [28-Sep-2022 00:21:44 US/Pacific] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcpv6.php:119 Stack trace: #0 {main} thrown in /usr/local/www/services_dhcpv6.php on line 119 No FreeBSD crash data found.
Trying to setup a new box with i226 NICs so fresh install of the ISO and update from fresh 2.6 install both have the same result.
-
I can't replicate that here on a fresh install with or without additional interfaces (static and dynamic).
I can see in the code how it might be a problem I just can't seem to make it happen here yet.
Did you alter the configuration in any way directly? Or was the configuration restored from an older system?
-
Completely fresh installs all around and initial setup done with a single NIC active with dynamic IP (I tried a USB NIC and one of the 4 i226s during separate attempts). When I tried installing 2.6 with the USB NIC and then updating to 2.7 the DHCP Server page loaded as expected on 2.6 but then had the error after updating.
-
OK, so you just had "wan" and no other interfaces assigned?
EDIT: Must be, if I remove all but the WAN I do see the errors you see.
I'll work on a fix, thanks!
-
Yeah that must have been it, because I just reset everything and made sure to setup a LAN interface as well and I was able to see everything now.
-
OK, the errors you saw should be fixed on future snapshots.
https://github.com/pfsense/pfsense/commit/0d121100f17790fe12a44ea0edb8026ad626fb4b