-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?

closed as too broad by Mołot, kiamlaluno Dec 15 '14 at 19:52

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0

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

  • 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.