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:

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

XML declaration allowed only at the start of the document

Go to End

3 Posts   26209 Views


Community Member, 12 Posts

15 January 2009 at 9:22pm

Edited: 15/01/2009 9:24pm

when i use firefox,i have a error.(IE no problem)
error on line 2 at column 6: XML declaration allowed only at the start of the document

my sites:

Seems to be the problem of the codes
<?xml version="1.0" encoding="UTF-8"?>


Community Member, 791 Posts

15 January 2009 at 9:42pm


Community Member, 9 Posts

8 February 2011 at 11:36pm

Right, it's a late reply to this but to all others looking for the same solution refer to this post:

I'd also like to add that The problem could also be with your opening <?php declaration as well as possibly your closing ones (which you shouldn't be using in silverstripe.)

I'm using eclipse and this regex found the problem:


Hope this helps someone.