Author Sitemap not being added into the sitemap.xml completely

#798358
  • Resolved The Gpbox
    Rank Math free

    Same error as this unresolved ticket: https://support.rankmath.com/ticket/author-sitemap-problem/

    Easy to replicate:
    – Sitemap HTML disabled site-wide.
    – Sitemap Author enabled

    If you don’t select any “Exclude User Roles”, the sitemap shows on sitemap_index and the author sitemap is as expected.

    As soon as you select just 1 “Exclude User Roles”, the author sitemap disappears completely. Regardless of the role selected.

    Error tracked in the MySQL query on “get_index_users()” in “class-author.php” that returns empty array of users so the sitemap is not added. The $exclude_roles_query” n lines :283 to :292 seems to be the culprit.

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

    Thank you for reaching out to us regarding the issue with the Author Sitemap not being added to the sitemap.xml completely. We apologize for the inconvenience this has caused.

    Based on the information provided, it seems like there is an error in the MySQL query on “get_index_users()” in “class-author.php” that returns an empty array of users when selecting “Exclude User Roles,” causing the author sitemap to disappear completely.

    To address this specific technical issue related to the MySQL query and the exclusion of user roles affecting the author sitemap generation, we recommend escalating this matter by replying to your existing ticket or creating a new one if necessary. Our dedicated support team will investigate the problem further and provide you with a solution.

    If you have any additional details or questions, please feel free to provide them in your reply to the ticket. We appreciate your understanding and patience as we work to resolve this issue promptly.

    Thank you for your cooperation.

    Sources:
    How to Exclude Content From Sitemap » Rank Math
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    How to Configure Sitemaps in Rank Math – Best Settings and Tips
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

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

    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/

    Looking forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    Hello,

    We will need FTP access to check this further. Please share so we can forward this to our developers for further investigation.

    Looking forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    We were able to reproduce this issue on our setup and added $exclude_roles = is_array($exclude_roles) ? array_values($exclude_roles) : $exclude_roles; after line 274 of the file wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/providers/class-author.php and it works as expected now.

    This changes do not appear to have any effects on your staging site. Could you please try and make this change in your production and share with us the outcome.

    Also if you re update the roles excluded at https://staging4.thegpbox.com/wp-admin/admin.php?page=rank-math-options-sitemap, will fix the value to the expected one. (You may try this on the production as well before trying to edit the file above)

    This issue has also been logged, so a permanent fix can be included in an upcoming release.

    Thank you.

    Hello,

    Thank you for your patience.

    Just a quick update that we have fixed this issue on one of our recent releases.

    Please update Rank Math & all other plugins, themes and WordPress to the latest version.

    The issue should be fixed.

    If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.

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

The ticket ‘Author Sitemap not being added into the sitemap.xml completely’ is closed to new replies.