Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove first empty line in document
#1
I am working on a simple RSS feed for my site but this error keeps coming up:
error on line 2 at column 6: XML declaration allowed only at the start of the document

This is from Chrome with the correct Content-Type headers set for xml. Apparently XML doesnt like it when the declaration isn't at the very top. All the other pages have a newline as the first line in the markup as well (right before the doctype declaration). Is there any way to remove this so it validates? Im guessing it's something in the core because I can't find anything else.

[Image: mN6oWDm.png]
Reply
#2
This happens if you include a file that has white space at end of the file after closing php tag.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
Does this use core files, or is this a plugin having this issue?
What version of gs?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)