• Resolved khushbru

    (@khushbru)


    Hello,

    The https://halfpanthippo.com/sitemap_index.xml page is not working in our site.

    It gives the following error:
    “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’ve tried to change the theme and deactivated all the plugins one by one.
    >Even tried to remove the extra space in functions.php and wp-config file.
    But the issue still occurs.

    Please help me with this issue.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    We do know that this error typically happens when a plugin or theme function incorrectly adds an empty whitespace at the beginning of the sitemap.

    The Yoast SEO plugin does not cause this issue. You may refer to this document for more information about the issue — https://kb.yoast.com/kb/xml-sitemap-error/

    Most often, the cause is an empty line at the end of the functions.php file. If there is no empty line in this file, we highly recommend running a conflict check to identify what outputs the empty white space.

    You may also need to clear your cache from your plugins/theme/CDN such as Cloudflare/server caching etc. If you are not sure how to clear the cache, please speak with your developers or contact your host provider. Once you have identified whether your theme or a plugin causes the issue, please contact the developers of the theme or plugin for assistance in finding and removing the whitespace.

    Plugin Support Jerlyn

    (@jerparx)

    Closed. No further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sitemap_index.xml page not working’ is closed to new replies.