All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
My Shopify store using the website/sitemap.xml doesn’t work. I get a http 500 error. I think this is due to millions of products on my website.
Hey @danielsntg,
You are correct, one possible reason for the error could be that the server is having difficulty generating the sitemap.xml file due to the large number of products on your site. You may need to optimize your website's performance by reducing the number of products.
Another possibility is that there is an issue with the code of your sitemap.xml file itself. You can try to validate your sitemap.xml file using a tool such as the W3C Markup Validation Service to see if there are any errors that need to be fixed.
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hello @danielsntg,
This is Gina from flareAI app.
A 500 error is a server-side error, which means there is an issue with your server or website code that is preventing the sitemap.xml file from being generated correctly. The large number of products on your website may be contributing to the issue.
Here are a few possible reasons why your sitemap.xml file is not working:
1. Server resources
The server may not have enough resources to generate a sitemap.xml file for such a large number of products. You may need to upgrade your server or optimize your code to reduce the load on the server.
2. Code issues
There may be an issue with the code that is generating the sitemap.xml file. You should check your code for any syntax errors or logical issues that may be preventing the file from being generated correctly.
3. Plugin or app conflict
If you are using any third-party plugins or apps on your Shopify store, they may be conflicting with the sitemap.xml file generation process. Try disabling them temporarily to see if the sitemap.xml file starts working.
4. File size limit
Sitemap.xml files have a maximum file size limit of 50MB. If your sitemap.xml file exceeds this limit, it may not be generated correctly. Consider splitting the file into smaller parts if this is the case.
5. Caching issues
The sitemap.xml file may be cached by your browser or server, preventing any changes from being reflected. Clear your browser cache and server cache to see if this resolves the issue.
Hope this helps
Gina