Project

General

Profile

Regression #13983

Updated by Marcos M about 1 year ago

Seeing multiple pfSense 23.01 users having these PHP fatal error crashes. I got it in the DHCP Server tab by simply clicking the "save" button. 
 <pre> 
 

 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/system.inc:422 
 Stack trace: 
 #0 /etc/inc/system.inc(520): system_hosts_dhcpd_entries() 
 #1 /etc/inc/system.inc(551): system_hosts_entries(Array) 
 #2 /etc/inc/services.inc(2772): system_hosts_generate() 
 #3 /usr/local/www/services_dhcp.php(788): services_unbound_configure() 
 #4 {main} 
 thrown in /etc/inc/system.inc on line 422 
 </pre> 
 PHP ERROR: Type: 1, File: /etc/inc/system.inc, Line: 422, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/system.inc:422 Stack trace: #0 /etc/inc/system.inc(520): system_hosts_dhcpd_entries() #1 /etc/inc/system.inc(551): system_hosts_entries(Array) #2 /etc/inc/services.inc(2772): system_hosts_generate() #3 /usr/local/www/services_dhcp.php(788): services_unbound_configure() #4 {main} thrown 

 After that system is unresponsive with no connection. Rebooting via console works but while bootup more PHP errors (with the same "Cannot access offset of type string on string in" message) and the system fails to start. Only reverting config does help. 

 This issue happens with multiple clean installs on a Netgate 6100 MAX. 

Back