Issue:
Google Sitemap generating but when I open the link its blank.
when I open it in Firefox then getting the below error:
Error loading stylesheet: Parsing an XSLT stylesheet failed.
But, Default Magento sitemap working perfectly. below is the default Magento sitemap
Solution:
The style issue with the file XML site map happens when enabling Nginx page speed module.
The module Nginx page speed adds some tags on the page xmlsitemap/index/style, so it breaks style of our module.
To fix this conflict, we would like to give the hot-fix as follows:
Step 1: Edit this file app/code/Bss/XmlSiteMap/Model/Sitemap.php
Step 2: add file /var/www/codearrow/pub/style-sitemap.xsl (the attachment file)
Step 3: Flush the cache.
If you need any further assistance, please feel free to contact us.
We are more than happy to support you.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article