Sitemap Not Working

#950178
  • Resolved Mayur
    Rank Math free

    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”?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with your sitemap. The error message you are seeing indicates that there is an empty space or blank line before the XML declaration in your sitemap file. This can happen if there are extra spaces or lines in your wp-config.php file or your theme’s functions.php file.

    To resolve this issue, please follow these steps:

    1. Check for Blank Spaces: Open your wp-config.php and functions.php files and ensure there are no blank lines or spaces before the “ line.
    2. Plugin Conflict: If you do not find any blank spaces, it might be a plugin conflict. You can use the Health Check plugin to identify any conflicting plugins.
    3. Clear Cache: Make sure to clear any caching that might be interfering with the sitemap functionality.

    If the problem persists after checking these areas, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    You will have to check all the PHP files present in your site’s root directory and see if any one of those has an unwanted whitespace after the opening PHP tag. You can also use the hint available in the following guide to track down which file is causing the issue: https://wejn.org/stuff/wejnswpwhitespacefix.php.html

    That should fix the issue.

    Please let us know if that does not. We are here to assist.

    Mayur
    Rank Math free

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

    Hello,

    We are glad that you managed to resolve the issue.

    Can you please confirm if you still need our assistance with anything else or we can close the ticket?

    Looking forward to hearing back from you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Sitemap Not Working’ is closed to new replies.