Issue with Image Sitemap – Incomplete Image Listing

#1005904
  • Resolved illiminium
    Rank Math free

    To the RankMath Support Team,

    I’ve been experiencing an issue with the image sitemap generated by RankMath. Initially, all images in my articles were correctly fetched and included in the sitemap, but recently, the sitemap no longer lists images completely. I often have to rebuild the index to temporarily resolve this, but the problem recurs.

    Could you please advise:

    What might be causing this inconsistency, and how can I ensure all images are consistently included?

    Are there any known conflicts (e.g., caching, CDN, or plugins) that could trigger this?

    Additionally, I’m using a small code snippet to convert CDN-based temporary image URLs in the sitemap back to their original URLs. Could this interfere with RankMath’s image detection?

    Thank you for your help! I appreciate any guidance to resolve this.
    Kind regards,
    Thuy Nguyen

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

    We apologize for the issue you are facing with the image sitemap generated by Rank Math. Thank you for raising this concern.

    Possible Causes for Incomplete Image Listings

    1. Caching Issues: If you are using a caching plugin, it might be caching the sitemap and not updating it with the latest images. Ensure that your sitemap is excluded from caching. You can find guidance on how to do this in our tutorial on excluding sitemaps from caching.

    2. CDN Conflicts: If you are using a CDN, it may also cache the sitemap or interfere with how images are fetched. Make sure that your CDN settings are configured correctly to allow Rank Math to access the original image URLs.

    3. Plugin Conflicts: There could be conflicts with other plugins that modify how images are handled or displayed. We recommend using the Health Check plugin to identify any potential conflicts.

    Code Snippet Interference

    Using a code snippet to convert CDN-based temporary image URLs back to their original URLs could potentially interfere with Rank Math’s ability to detect images correctly. If the URLs are not accessible or formatted incorrectly, it may lead to incomplete listings in the sitemap.

    Recommendations

    • Recheck Your Code Snippet: Ensure that the code snippet is functioning as intended and does not disrupt the image URLs.
    • Rebuild Index Regularly: While rebuilding the index temporarily resolves the issue, it’s essential to identify the root cause to prevent recurrence.
    • Monitor Plugin Updates: Keep all your plugins updated, as updates may resolve compatibility issues.

    If these suggestions do not resolve the issue, please reply to this ticket with your site URL so we can investigate further. A human agent from our support team will take over and assist you more thoroughly.

    Thank you for your patience, and we look forward to helping you resolve this issue!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math

    Thank you for your help. I’d appreciate the opportunity to speak with a human agent regarding an issue with my website, thuysthingies.com.

    Since the initial setup, my sitemap has been excluded from caching. Initially, all image links in the sitemap were fetched correctly, but recently, this behavior has changed—possibly due to a plugin update or the increasing number of images.

    I’d greatly appreciate your assistance in troubleshooting this issue. Could you kindly connect me with an agent who can help?

    Thank you in advance for your support.

    Hello,

    Please 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 and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Issue with Image Sitemap – Incomplete Image Listing’ is closed to new replies.