XML Parsing Error – This page contains the following errors

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

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.

or

XML Parsing Error: XML or text declaration not at start of entity

This page contains the following errors

All in One SEO Pack generates a Google XML Sitemap dynamically by default. If you’re getting this error, this indicates headers have already been sent, usually caused by another PHP file outputting blank lines. Normally this happens when another PHP file is incorrectly outputting a closing PHP ?> tag, followed by some extra lines.

There are four possible culprits:

  1. Another plugin – You can use these instructions to narrow down the offending plugin/plugins. Once you find the plugin, you can either deactivate it, look for the file(s) with a closing PHP tag followed by blank lines and remove it, and/or contact the developer with the bug report.
  2. Your theme – Similar to #2,  use these instructions to determine if it’s your theme that’s the problem. Install a fresh and unmodified copy of one of the default themes (Twenty Fifteen, Twenty Sixteen, etc). If the problem goes away, you know it was your theme.
  3. WordPress core – This would only be a problem if either you’re on a really old version of WP (upgrade!) or else you’ve modified core files (don’t!).
  4. Prior to WordPress 2.8, wp-config.php ended with a closing PHP tag.

Closing PHP tag blank lines whitespace

Wherever you find this closing PHP tag, remove it.

[i]
[i]
Skip to toolbar