• Resolved dimthomos

    (@dimthomos)


    Hello,

    I see these issues in Ahrefs “3XX redirect in sitemap” and “Noindex page in sitemap“. How can I fix them?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dimthomos,

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

    For initial troubleshooting, please make sure that your sitemap is not getting cached. 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/

    3. If the above steps don’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 filters/hooks to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters

    If the issue persists, please share your sitemap URL alongwith the affected URLs that shouldn’t be in the sitemap. So that we can take a look.

    Looking forward to helping you.

    Thread Starter dimthomos

    (@dimthomos)

    Hello and thank you for the quick reply!
    I restored a backup version of my website from a while ago and it fixed the problem.

    However, there is a different issue I need to fix: Sitemap in the wrong format

    The file local-sitemap.xml which is found in sitemap_index.xml gives the following error message:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function RankMathPro\WooCommerce::remove_hidden_products(), 2 passed in /home/customer/www/thomoschartoplastiki.gr/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 3 expected in /home/customer/www/thomoschartoplastiki.gr/public_html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/woocommerce/class-woocommerce-pro.php:69 Stack trace: #0 /home/customer/www/thomoschartoplastiki.gr/public_html/wp-includes/class-wp-hook.php(308): RankMathPro\WooCommerce->remove_hidden_products(Array, ‘local’) #1 /home/customer/www/thomoschartoplastiki.gr/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/thomoschartoplastiki.gr/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array(‘rank_math/sitem…’, Array) #3 /home/customer/www/thomoschartoplastiki.gr/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/local-seo/class-kml-file.php(106): in?/home/customer/www/thomoschartoplastiki.gr/public_html/wp-content/plugins/seo-by-rank-math-pro/includes/modules/woocommerce/class-woocommerce-pro.php?on line?69

    Can you help me fix it?

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dimthomos,

    We released a quick Beta update with a fix for this issue.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates

    If you are unable to see an update, please clear Rank Math’s transients from the WordPress Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients:
    https://rankmath.com/kb/rank-math-status-and-tools/#rank-math-transients

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

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘3XX redirect in sitemap’ is closed to new replies.