• Resolved Natalya

    (@nalitana)


    Hi! After the last update, Google cannot scan the sitemap, error 404! When I open the map in the browser, it sometimes works, sometimes it doesn’t, also a 404 error.
    In addition, there is such a mistake:

    type	
    E_WARNING (2)
    info	
    file_get_contents(/wp-content/uploads/rank-math/rank_math_ba1c41a9c0fb87ea966b2ca7a2c8c241.xml): Failed to open stream: No such file or directory
    file	
    /wp-admin/includes/class-wp-filesystem-direct.php
    line	
    39
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Natalya

    (@nalitana)

    Addition to the problem. The 404 error was also on another site. On both sites, I rolled back to the previous version of the plugin. This fixed the problem on one of the sites, but the problem remained on the other. It turned out that the conflict arose with the PWA plugin. I had to disable PWA. Now I can’t determine which of the two plugins creates a conflict – is PWA incompatible with Rand Math or vice versa? But we must take into account that there was also a 404 error on the second site before the rollback, but the PWA plugin is not installed there. I don’t see any errors in the logs, except 404. Turning on the debug mode showed only this problem, but it does not coincide with the time when the 404 error appeared.
    PHP Deprecated: The wp_no_robots function has been deprecated since version 5.7.0 <strong></strong>! Use wp_robots_no_robots(). in /wp-includes/functions.php on line 5211

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @nalitana,

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

    1. Site showing 404: In the cache folder, the Sitemap cache file is missing. Please clear the cache and update the Permalinks. That should fix the Sitemap issue. You can also use the following filter to disable the Sitemap cache:
    https://rankmath.com/kb/filters-hooks-api-developer/#enable-disable-sitemap-cache

    2. The wp_no_robots function error: We do not use this function anywhere in our plugin. Your theme or some other plugin must be using it.

    It seems to be working fine on our end.

    Assuming you are using the latest version of all the plugins, themes, and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    You can follow this video tutorial as well:

    Looking forward to helping you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sitemap error 404’ is closed to new replies.