4576 Posts in 1387 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 18851 Views |
-
XML declaration allowed only at the start of the document

15 January 2009 at 9:22pm Last edited: 15 January 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 documentmy sites:http://www.rubber-plastic.cn
Seems to be the problem of the codes
<?xml version="1.0" encoding="UTF-8"?> -
Re: XML declaration allowed only at the start of the document

15 January 2009 at 9:42pm
Please refer to :
http://www.silverstripe.org/archive/show/1436 -
Re: XML declaration allowed only at the start of the document

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.
| 18851 Views | ||
|
Page:
1
|
Go to Top |


