PHP Warning /sitemap_index.xml failed to open stream: No such file or directory

#382499
  • Resolved James
    Rank Math free

    Hi,

    I keep getting this error in my logs when bots scan my site:

    file_get_contents(/wp-content/uploads/rank-math/rank_math_a104ac03548cac58d2dcd551e7d1a014.xml): failed to open stream: No such file or directory

    I don’t have any caching plugin active.

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

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

    Please note that our plugin doesn’t create a physical file for the sitemap so if you try to get the contents with that function it’s normal to see that error.

    ​​​​​​​We generate the sitemaps dynamically to make sure they are always updated and with the latest articles and pages so that Search Engines can crawl the correct version of the website consistently.

    Hope this helps clarify your doubts.

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

    James
    Rank Math free

    Hi Miguel,

    I don’t understand your explanation. I understand your plugin gets the sitemap dynamically but surely there shouldn’t be any errors. The file in the uploads folder is not being found.

    Regards,
    James

    Hello,

    Our plugin doesn’t create any physical file for the sitemap. It’s all generated automatically and on the fly.

    The cURL command tried to fetch a physical file but that doesn’t exist, but if you try to access the sitemap URL directly you’ll see it loading and so does Google.

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

    James
    Rank Math free

    The CURL command was from my Bugsnag report. The actual fail was from a bot scan. Sorry for the confusion. I have 2 errors from Google bots

    Hello,

    The sitemap is loading fine but it’s not accessible to Google because of some sort of blockage on your website.

    When Googlebot tries to load the sitemap it encounters a 403 error which is an indication that something is blocking access to that file.
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

    You can check your firewall or contact your hosting provider about this situation.

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

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

The ticket ‘PHP Warning /sitemap_index.xml failed to open stream: No such file or directory’ is closed to new replies.