Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

XML Parsing Error: xml declaration not at start of external entity

Go to End

3 Posts   1666 Views


Community Member, 110 Posts

21 November 2010 at 11:32pm


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?



Forum Moderator, 4102 Posts

22 November 2010 at 5:11am

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.


Community Member, 110 Posts

22 November 2010 at 5:14am

Edited: 22/11/2010 5:19am

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" "">
<html xmlns="" lang="en" >

would that fix the problem?

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