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

Avatar
minmax

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:http://www.rubber-plastic.cn

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

Avatar
Fuzz10

Community Member, 791 Posts

15 January 2009 at 9:42pm

Avatar
employboy

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:

http://www.silverstripe.org/archive/show/1436

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:

\s<\?php

Hope this helps someone.