Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » XML Parsing Error: xml declaration not at start of external entity

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1086 Views
  • Stefdv
    Avatar
    Community Member
    110 Posts

    XML Parsing Error: xml declaration not at start of external entity Link to this post

    UncleCheese,

    My site is working fine on IE, but now i ran into a problem on Firefox and Google Chrome.

    On those browsers i get this error ;

    XML Parsing Error: xml declaration not at start of external entity
    <?xml version="1.0" encoding="UTF-8"?>
    -^

    Now i tracked it down, the problem seems to be in my config file where i have

    <CODE> SortableDataObject::add_sortable_classes(array('Personeel','Bekendmaking')); <END CODE>

    If i remove this line (That makes some functionality of my site kind of useless, but for debugging it works) everything is working fine again.

    Any thoughts on this?

    tx

  • UncleCheese
    Avatar
    4085 Posts

    Re: XML Parsing Error: xml declaration not at start of external entity Link to this post

    I'm not sure.. but I would just get rid of the XML doctype. Those things are a nightmare to work with, and there's really no substantial reason to use them now that HTML 5 is coming to life.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • Stefdv
    Avatar
    Community Member
    110 Posts

    Re: XML Parsing Error: xml declaration not at start of external entity Link to this post

    Tx for your reply,

    Do you mean get rid of the lines in my templates ? like

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    would that fix the problem?

    <EDIT> And offcourse you are right. That did the trick . Thank u UncleCheese

    1086 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.