/product-sitemap3.xml works normal, but /product-sitemap2.xml shows blank

#683095
  • Resolved Up Fuel
    Rank Math free

    question
    1 /product-sitemap2.xml shows blank
    2 /product-sitemap2.xml can’t view the HTML source code

    situation
    1 already add “add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);” in my theme’s functions.php file
    2 already resave WP’s setting: Permalink and Rank Math’s setting Links Per Sitemap
    3 but when i see [/product-sitemap2.xml ]chrome webtool’s network, there shows status 200,and response with xml content([/product-sitemap3.xml] response with html(contain xml) content)

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

    I’m sorry to hear that you are experiencing issues with your sitemap. It seems that the /product-sitemap2.xml is showing a blank page and you are unable to view the HTML source code.

    Based on the information you have provided, it seems that you have already taken some troubleshooting steps such as adding the filter to enable caching and resaving the settings in WordPress and Rank Math.

    Since you are seeing a status 200 and a response with XML content in the network tab of Chrome, it indicates that the sitemap is being generated correctly by Rank Math.

    Given the situation, it’s possible that there might be a conflict with another plugin or theme causing this issue. To identify the conflicting plugin or theme, you can use the Health Check plugin to perform a conflict check.

    If the issue persists, please provide more details about your website’s setup, such as the list of plugins and the theme you are using, so that we can further assist you in resolving this issue.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this matter for you.

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Remove Blank Lines From Sitemaps » Rank Math

    Hello,

    Apologies for the inconvenience.

    Upon checking the product-sitemap2.xml, there’s an invalid character on the image file name/title that’s why the issue occurs.

    Please refer to the affected URL in the sensitive data section. You may update the image file name for the invalid character and check again the sitemap.

    Regarding the product-sitemap3.xml, the source code is showing fine, however, due to the links per sitemap (set to 1000), your browser may be unable to load it.

    Please note that Google crawls small-sized sitemaps faster. With this in mind, Rank math uses the links per sitemap limit to break down sitemaps into smaller parts. You can also check Google’s guidelines for sitemaps:
    https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap

    You may set your Links per sitemap between 200 and 500 as recommended.

    Let us know how this goes.

    Thank you for your reply.
    “There is an invalid character in the filename/title, which is the cause of the problem.”
    Can you help me point out which character is invalid so I can avoid similar situations in the future?
    Or can you tell me how to troubleshoot these invalid characters, I want my product-sitemap2.xml to work again!
    Looking forward to rankmath’s reply!
    Have a nice weekend!

    Hello,

    You can view these characters when you hover your mouse on the product images and wait a few seconds. This character is present in all four product images.

    Edit the title of these images and check your sitemap again.

    Let us know how this goes.

    thanks a lot
    i got it

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘/product-sitemap3.xml works normal, but /product-sitemap2.xml shows blank’ is closed to new replies.