sitemaps doesn’t appear for urls that are over 200 items_per_page

#507164
  • Resolved Tala Vision
    Rank Math free

    Hi and special thanks for your nice plugin…
    If I set items_per_page on 200 (or another value), then other urls that are over this threshold not appear on sitemap and google not detect theme…
    For example, I have about 600 product tags (I set settings to display tags with 0 product on sitemap), your plugin just listed 200 urls in product_tag-sitemap.xml
    I can see other urls if enter product_tag-sitemap2.xml and product_tag-sitemap3.xml in address bar manually, but these addresses not linked and not appeared in main sitemap (on under product_tag-sitemap.xml)

    Can you please help me?

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Can you please try following the steps below to see if that works for you?

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks Sir for your fast apply!
    I tested 1 and 2 without any positive result, but after applying 3, when I click on https://mysite.com/product_tag-sitemap.xml , url redirects to https://mysite.com/product_tag-sitemap1.xml , But any pagination to product_tag-sitemap2.xml or product_tag-sitemap3.xml

    Sorry but problem didn’t fixed….

    I set different values for the number of items on the page and the problem seems to exist in WooCommerce categories and tags.
    For example, I have 18 pages, and when I set the value to 5 or 6, sufficient number of page-sitemap.xml are created, but for example, for a tag or product category, a few are generated, but not enough and do not cover all of them.

    I disable my plugins and it seems there is no conflict between theme and Rank Math. My theme is Woodmart.

    Thanks

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Hi
    Many thanks for your attention, but I can’t share login info to you, sorry…
    I’m not a newbie person in WP and WooCommerce. It seems that the priorities in the functions need to be checked or something like that.

    Regard

    Hello,

    Can you please try clearing any server-level caching services from your end?

    Also, please head over to your website directory and locate the folder wp-content > uploads > rank-math and delete all the XML files inside.

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

    Hi and thanks for reply.

    I was disabled my plugins one to one with changing items per pages & updating permalinks each times, and didn’t find any conflict between Rank Math and my plugins:
    All of my plugins and theme are latest version and famous…
    Plugins:
    Woocommerce
    Persian Woocommerce
    Dokan
    Dokan pro
    Akismet
    LiteSpeed cache
    Smush
    YITH WooCommerce Wishlist
    Facebook for WooCommerce
    Slider Revolution
    Wayra – Click to Order or Chat
    Woodmart Core
    Classic Widgets
    &
    One personol plugin for dynamic price
    &
    Rank Math

    I was swiched my theme to 2023 default WP theme with changing items per pay & updating permalinks, But without any positive effects.
    Theme: Woodmart + child theme (with any special codes for cashing or other things, just Woocommerse templates and CSS)

    I was changed famous Autoptimize plugin (https://wordpress.org/plugins/autoptimize/) to LiteSpeed Cache (with your instructions in https://rankmath.com/kb/exclude-sitemaps-from-caching/#litespeed-cache), but without any positive results.

    I have checked my codes in deep yesterday, but without any positive results…
    —————————————————–
    Dear support staffs, My problem just is “The sub-maps are not listed in the main address of the site map (https://mysite.com/sitemap_index.xml)”, The items listed are less than the original number (problem seems to exist in WooCommerce categories and tags.)
    If I set items per page on 2 (!),so I can find all generated sitemaps by entering the desired map address in the address bar manually, Even for example https://mysite.com/product_tag-sitemap299.xml !
    The only thing about my site is that I have changed the default contents directory of WordPress to another address since the beginning of my site, which I have been doing for years and in the standard WordPress way. I don’t think this is the problem at all!

    Thanks for your time…
    Regard

    Hello,

    We deeply apologize for the delay in response.

    Please make sure you’ve followed the instruction mentioned above. If the issue persists, please disable the Sitemap module from Rank Math > Dashboard and re-enable it again to see if that works.

    If that doesn’t work, most likely this is happening due to caching issue. Please get in touch with your hosting provider to re-check from their end if something is caching sitemap anyhow.

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

    Thank you.

    Hi
    No problem and I know I shouldn’t expect fast support as a free user… Thanks…

    I was cleared all of cache, tmp, lscache, Rank Math cache and any old folder & db tables of old cache plugins…, but without any results..

    If the problem was due to caching, the map should not have been updated, and this problem does not exist in the pages and products, and only happens in the categories and tags of the products, where the maps are created but not listed.
    In my opinion, the problem is probably in the function or script that doesn’t run independently… I don’t know…

    Regard

    Hello,

    Can you please share some of the tag pages that weren’t included in the sitemap?

    Also, can you please ask your hosting provider to increase the limits of these values to the one listed below?

    PHP Memory Limit: 512M
    Max input time: 150
    PHP time limit: 120
    PHP max input variables: 1000

    After that, please clear the website cache again and check the sitemap.

    If that doesn’t help, then the only way for us to move forward is for us to check your website settings.

    Hi
    Thanks for your reply

    I was checked that server info, and saw may max input time and php time limit was configured on 60!
    I changed them and in this time, my setting is:
    PHP Memory Limit: 1000M
    Max input time: 300
    PHP time limit: 300
    PHP max input variables: 1000

    Cleared all of server cache and resave Rank math settings and permalinks, but without any positive results…
    —————–
    Samples of my sitemap urls that isn’t listed in main sitemap_index.xml is in Sensitive Data section, please see them.

    Instead of product_tag-sitemap1, 2 & 3, just listed product_tag-sitemap.xml (directed to product_tag-sitemap1.xml)

    Thanks again

    Hello,

    I can check that most of the tags on your site are empty. The sitemaps are not added to the main sitemap when the tag archives are empty to avoid the thin content and soft 404 errors that can cause issues with the indexing and ranking of the other pages of your site.

    However, some of the tags have the product and that’s why one sitemap is generated and includes all other URLs up to the links per sitemap limit. You should disable the Include Empty Terms option in WP Dashboard > Rank Math > Sitemap Settings > Product Tags to generate the sitemap only for the tags that have at least one product assigned to them to fix the issue. As you start assigning products to the other tags, they will also be included in the sitemap.

    Hope that helps. Let us know if you need any other assistance.

    Hi and thanks for your guidance…
    But this is a bug, because we have an option for enable indexing free tags and categories. Therefore, we can also index empty tags for certain reasons.
    Currently, the rest of the sitemap tags are being created, but they are not listed in the main sitemap.
    You can see the other pages of the sitemap that are not listed but are created in the Sensitive Data section.
    And for example if I set the items per page to 2, a lot of sitemaps will be generated that violate your comment…
    Thanks anyway

    Hello,

    Thank you for your patience.

    Please check if there are any XML files in the uploads folder of our plugin and delete those.

    Otherwise, we would need access to change the plugin files and see where the failure is happening, since just by looking at the sitemap, we’re unable to debug the files.

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

The ticket ‘sitemaps doesn’t appear for urls that are over 200 items_per_page’ is closed to new replies.