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.

Installing SilverStripe /

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

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

XML declaration allowed only at the start of the document


Reply


3 Posts   22355 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, 787 Posts

15 January 2009 at 9:42pm

Please refer to :
http://www.silverstripe.org/archive/show/1436

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.