• Resolved mayurindia

    (@mayurindia)


    Hi,

    There is error on sitemap_index.xml page. The Error –

    This page contains the following errors:

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

    Problem – There is empty space before the first line <?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//www.geekman.in/main-sitemap.xsl”?>

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mayurindia,
    ?
    Thank you for contacting Rank Math support.
    ?
    There must be some white spaces before the XML Sitemap’s source code. This might be added by a blank line/space in your wp-config.php file or your theme’s functions.php file. If there is no such blank space in your wp-config.php or functions.php file, check for a plugin conflict using the?Health Check plugin.
    ?
    Also, ensure your cache is disabled, as it is highly likely that the cache is interfering with the working of the Sitemap functionality of Rank Math.?https://rankmath.com/kb/exclude-sitemaps-from-caching/
    ?
    Let us know how that goes. Looking forward to helping you.

    Thread Starter mayurindia

    (@mayurindia)

    Hi,

    Before posting I tried everything, the problem is with your plugin! I using rankmath in 7-8 different website and all this website have same problem!

    vaka2vaka

    (@vaka2vaka)

    Hi, (@mayurindia)
    There was such a problem. It turned out that the problem was related to the site theme. I advise you to switch the site to another theme, clear the cache and see what happens

    Thread Starter mayurindia

    (@mayurindia)

    I tried that, all my 7 websites with different themes have same problem

    • This reply was modified 2 months ago by mayurindia.
    Thread Starter mayurindia

    (@mayurindia)

    Ok, I found the error, there is malware through plugin on all my site that is the reason behind this

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mayurindia,

    This is not an issue from the Rank Math plugin. If you check any other pages of your website, you’ll see the same space. Here’s a screenshot for your reference: https://i.rankmath.com/i/MmVDbt

    Because of this space on your website, Rank Math is unable to properly generate the XML file. If you’re not able to find the space in your wp-config.php or functions.php file, you can follow this guideline to fix this: https://wejn.org/stuff/wejnswpwhitespacefix.php.html

    Let us know how it goes. Looking forward to helping you.

    Thank you.

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