-2

I installed the xml sitemap module, when I go to my sitemap.xml page, it give me an error:

This page contains the following errors: error on line 1 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.

How can I find spaces that shouldn't be there? How to find spaces before <?php tag, but omit files where they are legitimate, like theme files?

0

I fixed the problem by deleting a white space before the php tag in the settings.php file.

| improve this answer | |
  • Not sure why the downvotes, this actually fixed my issue! – Sorin Jul 23 '18 at 19:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.