GetSimple Support Forum

Full Version: Remove first empty line in document
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
This happens if you include a file that has white space at end of the file after closing php tag.
Does this use core files, or is this a plugin having this issue?
What version of gs?