FIx conflict between Bss_XML Sitemap with module Nginx page speed

Created by Rosa Truong, Modified on Mon, 20 Jul, 2020 at 4:14 PM by Rosa Truong

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.


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