• colindm

    (@colindm)


    I am having problems with the sitemaps on two on my websites. Site 1. colinmunrophotography.com Site 2. colinmunrophotography.com/blog They are designed to appear as separate sites but are two different WP installs. Both use same theme (Evolve). Both share the same domain. They have slightly different plugins installed in each. On both sites I get the following error for xml sitemaps:

    This page contains the following errors:

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

    I have tried disabling all plugins, changing the active theme, checked theme functions.php and all theme php files for extra lines at start of file. I’m currently running WP ver. 6.7.1 (but issue was present in earlier versions).

    I’m not exactly sure when the issue arose as have only recently checked. I’m running other sites (same host, same shared CPanel) but separate domains. They don’t have this issue.

    All suggestions welcome.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry you’ve not received a response until now.

    Something is injecting script tags for cdn.csyndication.com into the file. Scripts have no place in XML files. XHTML maybe, but not XML. Whatever code, theme, or plugin is responsible for this needs to be corrected to at least exclude XML file requests.

    Even in HTML files where scripts might rightfully belong, the tags are being injected in the wrong place in the file. Should be placed within the <head> section, not before the <!DOCTYPE html> tag. The quality of this injection code is questionable IMO.

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