Support » Plugin: Google XML Sitemaps » Error in xml at line 1

  • Hi,

    I just begin to run the plugin.

    • Google answers that an error is into the xml file returned by the url
      <site>/sitemap.xml/
    • When executing the url from google-chrome you get the message :

      This page contains the following errors:
      error on line 1 at column 38: XML declaration allowed only at the start of the document
      Below is a rendering of the page up to the first error.

    To find the problem (invalid content returned) the good way should to get the content returned by sitemap as text (not interpreted as xml content). I don’t see how to do it.

    Thanks for a quick answer, because the site cannot be referenced until this problem is solved.

    Note 1 : before I had a robots.txt for development which was locking any motor on any content for development, and the structure has been developed to hide many contents (which must remain anyway hidden) by the use of the categories.

    Note 2 : Probably a plugin (of my development) displays some contents (html comments of execution) which are merged before the xml content into sitemap xml output (I must clear or avoid this contents before the run of sitemaps). It seems that this can be the same problem as contents output by accident into ob before the header for ajax transactions. The solution could then be an ob clean into sitemap before the display of xml content to ob.

    Best regards

    Trebly

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.