• Hi, the sitemap is not opening correctly. It shows this error message

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

    I have already excluded it from cache as recommended here.

    Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    if you look at the source code of your xml sitemap you will see 1 blank line.

    That’s the issue.

    This is probably due to a bad opening / closing PHP tag <?php

    Check your wp-config.php, header.php of your theme… to see if there is something wrong.

    Thread Starter Stefano Monteiro

    (@stemon)

    Hi @rainbowgeek .

    Thanks for replying. I do not see such issue happening. Is there any thing else that could be causing this?

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Try to switch to the default WP theme (TwentyTwentyThree).

    Try also to disable all plugins except SEOPress and reactivate them one by one to find the culprit.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Due to inactivity, we are now closing this topic. Thank you for your understanding.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sitemap.xml Contains Errors’ is closed to new replies.