Fatal error importing dhcpd config
-
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
-
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^
-
Great, thanks very much.
Running xmllint let me know that I wasn't closing a hostname tag.
Thanks!
–Matt