Regression #13629
closedUncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcp.php
0%
Description
when switching a vlan related DHCP-server off there is a php crash (2.7 bsd 14)
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcp.php:454 Stack trace: #0 {main} thrown in /usr/local/www/services_dhcp.php on line 454 PHP ERROR: Type: 1, File: /usr/local/www/services_dhcp.php, Line: 454, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcp.php:454 Stack trace: #0 {main} thrown
Files
Related issues
Updated by Danilo Zrenjanin about 2 years ago
I couldn't replicate this issue on the:
2.7.0-DEVELOPMENT (amd64) built on Fri Nov 04 06:05:19 UTC 2022 FreeBSD 14.0-CURRENT
Did you have any specific DHCP server settings on the VLAN interface?
Updated by Louis B about 2 years ago
- File DHCPconfig.JPG DHCPconfig.JPG added
At this moment I am running the same version and did the test again. No problem to reproduce the problem at all.
I do not have any special thing defined. Never the less I attached a screenshot of the config (as far as used)
A few additional remarks which could be help full perhaps (I hope ....)
- I have defined 16 interfaces / vlans
- all having dhcp IPV4
- and all having dhcp6 and RA (mostly managed two assisted)
- some vlans have dhcp4 static mappings mac to ipv4
Updated by Louis B about 2 years ago
- File phperrors.JPG phperrors.JPG added
here a copy of the messages from a few minutes ago
Updated by Chris W about 2 years ago
Unable to reproduce on build 2.7.0.a.20221104.0600, upgraded from 2.6.
I created a new VLAN, gave it an allow all firewall rule, enabled the DHCP server. Once it started, dhcpd was running and I was able to disable the DHCP server on the VLAN like normal. Same result after a reboot, and nothing indicating any problems in Status > System Logs > DHCP.
Do you see this error only for the same VLAN each time, or is it not specific to any one?
Updated by Louis B about 2 years ago
No, the problem occurs probably on every vlan. More precise if I enable or disable the dhcp server and hit save its there.
Note that I did upgrade a few days ago from the old 2.7 (12.3) to the new 2.7 (14 stable) via a new install using the saved config on an usb during that install
Updated by Jim Pingle about 2 years ago
- Target version set to 2.7.0
- Parent task set to #13446
- Plus Target Version set to 23.01
- Release Notes changed from Default to Force Exclusion
Updated by Danilo Zrenjanin about 2 years ago
I tested again against the:
2.7.0-DEVELOPMENT (amd64) built on Wed Nov 09 06:04:35 UTC 2022 FreeBSD 14.0-CURRENT
I enabled dhcp6, RA, and dhcp4 static mappings as instructed. Yet, I couldn't reproduce the issue.
Can you provide us with the dhcpd.conf and dhcpdv6.conf files?
They are located in the /var/dhcpd/etc/ folder.
Updated by Louis B about 2 years ago
- File dhcpd.conf dhcpd.conf added
- File dhcpdv6.conf dhcpdv6.conf added
Here my DHCP configfiles
Updated by Jim Pingle about 2 years ago
- Status changed from New to Duplicate
- Target version deleted (
2.7.0) - Parent task deleted (
#13446) - Plus Target Version deleted (
23.01)
This was duplicated by #13719 and a fix was put in there.
Updated by Jim Pingle about 2 years ago
- Is duplicate of Regression #13719: PHP8.1 error when saving DHCP Server settings. added