Sitemap not updating [Critical?]

#104344
  • Resolved Tobias
    Rank Math free

    Hi

    We’ve moved to RankMath (From Yoast), a few weeks back. A few days ago I spotted that the sitemap was not updated.

    Here’s what I’ve already secured:

    • Caching is disabled in LiteSpeed (Returning x-litespeed-cache-control: no-cache
    • Disabling cache at Cloudflare end, and secured the expected headers
    • Purged All cache from LS Cache, including Object, Pages and so on (Yep, the server had things to do, in the next two hours….)
    • Walked to “Settings > Permalinks”, and saved the page.

    Nothing changed. Same sitemap was returned…

    The only way I was able to fix it, was to change the “Links Per Sitemap” to something else (500 to 400, but other value(s) can do it, too).

    I can find A LOT of topics about this, but all users are pointed towards solutions like “clear own caching”, check X, Y and Z – and so on. But… That’s the real problem? Something must be wrong or conflicting, within the plugin – or in combination with another solution?. Are some custom hooks broken, so a new sitemap-gen are not triggered after post-edits?

    We’re running on the latest version of WordPress, with the latest version of Rank Math.

    Please look into this. It’s critical.

    Let me know, if I can do anything to provide debug data, or anything like that.

    • This topic was modified 3 years, 5 months ago by Tobias. Reason: Formatting issues
Viewing 14 replies - 1 through 14 (of 14 total)
  • Tobias
    Rank Math free

    1. Local setup
    I’ve tried to create a local instance of LiteSpeed including all our plugins. I’ve added two sitemap-plugins, just to do it even more complex.

    And… It’s updating like it should.

    What kind of things could be related to this? It’s working on the fresh local env., but not on the production-server?

    Our prod server are using LiteSpeed, too.

    2. Dev setup with staging-data
    I’ve a dev-staging site, which are not totally in sync, but where Yoast was still installed.

    I started by disabling it, installing RankMath, walked trough the wizard with “Easy”-mode turned on, and imported all the data from Yoast, too…

    Creating a new post….

    And…. It worked like it should, too.

    So I really need some inputs on how to debug this (very) wierd issue.

    Tobias
    Rank Math free

    Today I changed the value from 400 to 401, and a updated sitemap was generated right away. No need to change the cache, or anything like that.

    So it must be something with the hook to post changes/published or so?

    Please let me know, what I can do, to provide more details, related to this.

    _I’ve tried to change RankMath to advanced in both test-instances mentioned yesterday, but they are still working as they should. So I need some inputs, to provide more details. Feel free to contact me by mail._

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Can you please follow these steps?
    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/

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
    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.

    Tobias
    Rank Math free

    Hi

    Thanks for the standard reply. I’ve already provided answers to all the question, and technical details, too. I’ve already tested it myself, in two other instances, too.

    Caching are flushed, both locally (Compressed, Object, HTML, JS and CSS), Sitemaps ARE excluded in CF, and if i change the sitemap value to 401, instead of 400, the changes are shown right away….

    Therefore, it’s not anything related to the settings in the plugin, or on our blog.

    Please provide some insights om how I can debug?

    – Can I create a custom log with debug information (s) from RankMath?
    – Are RankMath saving sine run-time data, at the time of the Post-Update/Created are triggeree?
    – Are there anything which could impact the resultats, of the hook? As stated, the hook works just fine for our other sitemap-plugins. They are tested both site-by-site, and one by one. RankMath are failing in both scenarios, where all other sitemap-plugins are updating as they should.

    So, what’s the next step?

    Hello,

    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.
    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.

    Tobias
    Rank Math free

    You can’t find anything with FTP and the normal login. There’s a glitch/bug in the system, cause everything else are working just fine. I’ve provided plenty of details, and asked for inputs for the next step. Could you please help me out? Are there any useful loggings, I can turn on, or something simular? Last week i started to debug myself, to implement loggings in the logins flow, but there must be a better way of handling this?🤔

    Tobias I am going to confirm your findings also. I had it on a default setting of 200 per file and it had stopped updating on Dec 3rd.

    I went through all the guidance on ensuring WP Rocket, Cloudflare had the correct rules (though quite why I needed this specifically post Dec 3rd is beyond me when it was working fine before), as well as save permalinks with no changes and clearing all cache but no change.

    I noticed you changed the value to 401, so I went ahead and changed from 200 to 201 and it updated itself. Further, it’s not 201 per map page but goes from 200 to 300 when you make that change.

    I am going to monitor this on Friday as that’s our next publishing date to see if it automatically updates and feedback.

    Michael (first line Rank Math support), you are not really helping here by offering first-line scripted replies. We need a bit more of a response based on the feedback given. Better you simply escalate to the second line if you are not allowed to go any further.

    Tobias
    Rank Math free

    I’m also surprised to see no reaction, other than default messages, more or less. That’s sad.

    I would like to inform, that our problems have slowly decreased over time. So now its more of a 1 of every 10 posts or so, where the sitemap are “hanging”. But I’m still wondering what’s going on.

    Every other plugin are working as the should, but the RankMath’s Sitemap-function keeps failing (at least, that’s what I think?) over and over again.

    I’ve walked through the code, and down to the sitemap-logics, but I can’t really find any logic explications for, why it’s failing. But.. RankMath must at least have an idéa in their 2nd-level support or so. I mean… They created it from the buttom-up? I’m just trying to find a good answer, now that supports are really lagging. You sure need to serve the paying customers first, but more than 3 weeks with no answer, where you’re actually are trying to help me out, and read the details I’ve provided? That really limits the chance for me to consider a paid-version of RankMath as a good suggestion for my own dialog with other WP-users.

    So RankMath; What’s next? Should I just wait and see, or should I trash that part of the plugin, and just more to another? I don’t like that idea, but you aren’t really doing anything to help me out – or giving me other choices.

    Please bring something on the table?

    Tobias, I could not even load the new update today with critical errors all over the place – I think their coding lacks maturity and too many updates, fixes and rush rush rush.

    Hello,

    We do a good number of tests in multiple environments before releasing any updates keeping in mind we have thousands of users using our plugin whose sites we do not wish to mess by any means.

    Given we cannot replicate the issue from our end that the reason we ill normally require the access to the site with the issue.

    If you don’t wish us to check on your live site, you can create a staging site on which we can troubleshoot this and check what we might be missing from our end.

    We may also need a descriptive screencast to help us replicate this. You can use https://www.loom.com or a similar tool to create a screencast and share with us.

    Looking forward to helping you.

    Tobias
    Rank Math free

    Hi Michael,

    I fully understand that it’s hard to help out, without access to the server. Our page has a very large amount of content, so I can’t create a staging site, with a “real world”-experience. Did you check my details of all the testing, I’ve already done?

    But you can help me out.

    I’m asking if there’s anything which could impact the sitemap-generation? And if there’s any way to debug, too.

    I did look through the code-logics, but couldn’t really find any usefull information. But, people are reporting errors – so there must be something going in in the plugin.

    As mentioned in the last post, only 1/10 of the times, the sitemap aren’t updated now, so that’s great. But it’s still now the way to go, now that every other Sitemap-plugin are doing the job as it should.

    If I can help with any other thing, except creating a staging-clone for you, so please let me know? There must be something I can do with my own hands. As informed, I’ve already done plenty of things, to check what’s going on.

    Hi @Tobias,

    Could you please try disabling Rank math sitemap caching by adding the following filter to your theme functions.php:

    /**
     * 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 the issue still persists, please share your sitemap URL and some of the posts URLs not added in the sensitive section so we can check from our end.

    Tobias
    Rank Math free

    Hi Michael

    Thanks. Sure, I’ll do that. Also, we’ve not seen this issue for a week – so it’s pretty wierd. I’ll add the code next time we’re facing the issue, and let you know if that changes anything.

    Hi,

    We are glad we could help.

    Let us know if we can mark the issue as resolved or if you still further assistance on the same.

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

The ticket ‘Sitemap not updating [Critical?]’ is closed to new replies.