Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+7 votes
in Q2A Core by
edited by

and get the following error:

This page contains the following errors:

error on line 2 at column 6: XML declaration allowed only at the start of the document

Below is a rendering of the page up to the first error.

It has been like this since version 1.6.

What could be the problem?

Q2A version: 1.8.6
It opens for me
No error for me

1 Answer

+1 vote
selected by
Best answer

According to the W3C, your RSS feed looks good:


The error is not showing up anymore, but if you read it carefully, you'll notice that the <?xml...  of the feed declaration was on line 2. Now it is at the start of the document, where it should be. That means you've added some additional content to the response. Maybe some unintentional whitespace. This could even happen with plugins generating unwanted content or you making modifications to files without noticing you were generating unwanted content.

I'd say the issue is fixed but be careful with modifying files and make sure to track those changes next time to simplify fixing the issues in the future.

Note if you still see the issue, then there must be a condition tied to your specific user or to logged in users which is not seen by anonymous users, like me :)