Sitemap couldn’t fetch

#994310
  • Resolved Vishal
    Rank Math free

    Hello,

    I am facing the some issue on my sitemap from Google Search Console. Get an error that the sitemap couldn’t fetch. When I click on this status it shows Sitemap could not be read.

    As you have seen on my shared screenshot, there are contains 5 sitemaps. Which one sitemap name: post-sitemap.xml is able to index but the other 4 sitemaps are unable to fetch?

    Now, if I am submitting the sitemap it shows only post-sitemap.xml, which is already a success, and the rest of the 4 sitemaps are not showing.

    When I put my sitemap URL on Google Search Console inspection, and go through to live test, the Page fetch status shows – Successful.

    I have already done everything that is written on blogs & articles by RankMath, but still problem is still not solved.

    I request you please suggest to me how to resolve this problem. I am glad for your response.

    Thankyou.

    https://imgur.com/a/9Iy4wHe

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

    We apologize for the issue you are facing with your sitemap in Google Search Console. It sounds like you’ve already taken several steps to troubleshoot the problem, which is great.

    Here are some additional steps you can take to resolve the "Couldn’t fetch" error for your sitemaps:

    1. Validate Your Sitemap: Use the Validate XML Sitemap tool to check if your sitemaps are correctly configured. This will help identify any issues that may be causing the fetch error.
      An example displaying how to validate a sitemap

    2. Ensure the Sitemap is Located in the Root Folder: Make sure your sitemap is located in the root folder of your WordPress installation. The URL should look like this: https://yourdomainname.com/sitemap_index.xml.

    3. Flush the Cache: If your sitemap appears outdated, try flushing the sitemap cache by navigating to Rank Math SEO → Sitemap Settings and increasing the value of Links Per Sitemap by one, then save your settings. After that, go to Settings → Permalinks and click Save Changes to ensure the current settings are applied.
      Flush Permalinks

    4. Exclude the Sitemap From Caching: Ensure that your sitemap is not being cached by any caching plugins. You can refer to this knowledgebase article on ensuring that your sitemaps are excluded from caching.

    5. Check Robots.txt File: Make sure there are no rules in your robots.txt file that might be blocking access to your sitemaps. You can check this under Rank Math SEO → General Settings → robots.txt.

    6. Add the Correct Sitemap to Google Search Console: Ensure you are submitting the correct sitemap URL in Google Search Console. If you have multiple variations of your site (http vs https, www vs non-www), make sure you have added all variations as properties in Google Search Console.

    If you have tried all these steps and are still experiencing issues, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and provide more specific guidance.

    Thank you for raising this concern, and we hope to help you resolve it soon!

    Vishal
    Rank Math free

    I have done everything which you have told me.

    Hello,

    Since the issue persists, try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to your site:

    
    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.

    After you add the code, please clear any cache on your site or server, then remove all the sitemaps you added to GSC and only re-add the main sitemap (/sitemap_index.xml).

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

    Thank you.

    Vishal
    Rank Math free

    Please suggest!

    Hello,

    Please note that Google can take some time to recrawl your sitemaps. You can monitor the “Last read/crawl date” column in the sitemap index as it will update the date when Google crawls your sitemap.

    Also, please note that the ‘Discovered Pages’ on the Google Search Console only shows the number of pages that were discovered using the sitemap, and since the sitemap is not the only tool Google uses to discover pages, the number of ‘Discovered Pages’ might differ from your number of pages on your sitemap.

    Let us know how it goes. Looking forward to helping 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Sitemap couldn’t fetch’ is closed to new replies.