• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Uncaught TypeError: Cannot access offset of type string on string

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 1.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    devin
    last edited by Mar 15, 2023, 10:15 PM

    [15-Mar-2023 17:44:36 Etc/UTC] PHP 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/rc.bootup(195): system_hosts_generate()
    #3 {main}
      thrown in /etc/inc/system.inc on line 422
    [15-Mar-2023 17:44:39 Etc/UTC] PHP 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/pkg/wireguard/includes/wg_service.inc(322): services_unbound_configure()
    #4 /usr/local/pkg/wireguard/includes/wg_service.inc(303): wg_restart_extra_services()
    #5 /usr/local/pkg/wireguard/includes/wg_service.inc(60): wg_service_cli_start(false)
    #6 {main}
      thrown in /etc/inc/system.inc on line 422
    

    This error occurred during an upgrade from 22.05 to 23.01. This error prevents all interfaces from coming up and router is completely unusable. Was able to repair from the console by editing the config.xml file. Empty entries created by the UI under <dhcpd> and <dhcpdv6> are incompatible with 23.01 code. Remove any empty tags manually from /config/config.xml and reboot and problem is gone

    1 Reply Last reply Reply Quote 0
    • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Mar 16, 2023, 12:27 PM
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 16, 2023, 12:28 PM

      https://redmine.pfsense.org/issues/13983

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received