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

    Fatal error importing dhcpd config

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 1.4k 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.
    • M
      MPSimmons
      last edited by

      Hi,

      When I import a dhcpd config that I created, I'm getting the following error:

      Fatal error: Cannot create references to/from string offsets nor overloaded objects in /etc/inc/xmlparse.inc on line 69

      I've looked through the file (which I created programmatically), but I don't see anything suspicious. Can anyone here help me out?

      I'm attaching the XML as a text file to this post so you can check it out.

      Thanks,

      –Matt

      ia5150_dhcp_spring-2013.xml.txt

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        xmllint is helpful for such things.

        xmllint ia5150_dhcp_spring-2013.xml.txt
        ia5150_dhcp_spring-2013.xml.txt:29: parser error : Opening and ending tag mismatch: hostname line 26 and staticmap

        ^
        ia5150_dhcp_spring-2013.xml.txt:36: parser error : Opening and ending tag mismatch: hostname line 33 and staticmap

        ^
        ia5150_dhcp_spring-2013.xml.txt:43: parser error : Opening and ending tag mismatch: hostname line 40 and staticmap

        ^
        ia5150_dhcp_spring-2013.xml.txt:50: parser error : Opening and ending tag mismatch: hostname line 47 and staticmap

        ^
        ia5150_dhcp_spring-2013.xml.txt:1312: parser error : Opening and ending tag mismatch: hostname line 47 and lan

        ^
        ia5150_dhcp_spring-2013.xml.txt:1313: parser error : Opening and ending tag mismatch: staticmap line 44 and dhcpd

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag hostname line 40

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag staticmap line 37

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag hostname line 33

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag staticmap line 30

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag hostname line 26

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag staticmap line 23

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag lan line 2

        ^
        ia5150_dhcp_spring-2013.xml.txt:1314: parser error : Premature end of data in tag dhcpd line 1

        ^

        1 Reply Last reply Reply Quote 0
        • M
          MPSimmons
          last edited by

          Great, thanks very much.

          Running xmllint let me know that I wasn't closing a hostname tag.

          Thanks!

          –Matt

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.