GSC not indexing

#403624
  • Resolved Ben Orange
    Rank Math pro

    Hi, I added my site (Glamcityz.com) to GSC and it index just fine and even showed discoverable urls. But after 1 hour it says ‘unknown’.

    Sitemap can be read, but has errors
    Parsing error
    1
    We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.
    Examples
    Line 1

    I have tried flushing the sitemap and clearing cache but nothing is changing.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please add this filter in the theme’s functions.php file?

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

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Once done, clear your website’s cache and check again.

    Let us know how this goes.

    Thank you.

    After adding the code you mentioned above, I keep seeing this at the top of my pages all over the site

    rank_math/sitemap/enable_caching’, ‘__return_false’);
    Warning: Cannot modify header information – headers already sent by (output started at /home/glam/public_html/wp-content/themes/zoxpress/rank-math.php:1) in /home/glam/public_html/wp-admin/includes/misc.php on line 1380

    Warning: Cannot modify header information – headers already sent by (output started at /home/glam/public_html/wp-content/themes/zoxpress/rank-math.php:1) in /home/glam/public_html/wp-includes/functions.php on line 6878

    Warning: Cannot modify header information – headers already sent by (output started at /home/glam/public_html/wp-content/themes/zoxpress/rank-math.php:1) in /home/glam/public_html/wp-admin/admin-header.php on line 9

    😔 I don’t know what to do again

    Hello,

    Can you please share a screenshot of how you have added to code to your theme file?

    Another troubleshooting method is to 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. After that, remove all your sitemaps from your GSC and resubmit only the primary sitemap (sitemap_index.xml).

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

    I added the code by creating a folder named “rank-math.php” in my theme folder via cPanel, then I added the scripts

    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.

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    I tried to login to your website, but the IP is blocked:
    blocked

    Please disable the Firewall or if you have geo-restrictions, you can temporarily disable them for India, Portugal, and the Philippines.

    We look forward to helping you.

    Hi, I have disabled the firewall, Can you please check further?

    Thanks

    Hello,

    We are able to open the URL. Thank you.

    However, I tried accessing your website admin dashboard but the login info you shared doesn’t seem to work. The username or password is incorrect. Can you please check on this one so we can further debug the issue?

    Looking forward to helping you on this one.

    Hello,

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

    Thank you.

    Hello,

    We added the filter to disable the sitemap caching and it should no longer show an error about that on Google Search Console.

    Please make sure that you remove the current sitemap from there and add it again following this guide: https://rankmath.com/kb/submit-sitemap-to-google/

    Don’t hesitate to get in touch if you have any other questions.

    Thanks for this.

    Regards 🥂

    Anas
    Rank Math business

    Hello,

    If you have any questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘GSC not indexing’ is closed to new replies.