FIx conflict between Bss_XML Sitemap with module Nginx page speed

Created by Support Agent, Modified on Tue, 21 Apr at 11:59 PM by Support Agent

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)


In case you want to change the style page sitemap.xml, you could customize it on this file. Or if that style is not important on your site, you also could remove line <?xml-stylesheet type="text/xsl" in file sitemap.xml. 


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.


Why choosing BSS Commerce?


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


Our top-tier extensions:






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article