- 🇮🇳India keshavv India
I am encountering the same issue on Version 4.1.9. In my local DDEV environment, everything works perfectly without any issues.
However, on the production server hosted on AWS, a blank page is displayed on
/sitemap.xml
. If I uncheck the option Add styling and sorting to sitemaps in the module settings, then the XML file is displayed.Could someone please look into this?
- 🇮🇳India kuldeepbarot
Updated the patch mentioned here 🐛 Sitemap not displaying if site in subdirectory Fixed to make it compatible with version 4.2.2
- 🇩🇪Germany gbyte Berlin
@kuldeepbarot
Bug reports can only be opened against the dev version of the module - Can't change an existing release.
I just had a brief look at your patch; what happens when base URL is not set in the module settings?
Can anyone else confirm this to still be an issue?
- 🇧🇷Brazil luizsgpetri Campinas
#18 worked for me.
Disabling the styling option fixed my issue. - Status changed to Postponed: needs info
about 1 month ago 2:05am 15 August 2025 - 🇺🇸United States aubjr_drupal
I just ran into this issue from the CLI.
If I rebuild the queue and generate the sitemap from /admin/config/search/simplesitemap, it worked out of the box... but I was trying to get the experimental Config Actions API working with a recipe to install the modules, set up the sitemap configs, AND generate the desired sitemap with those settings in one shot.
I got a recipe to mostly work using
php core/scripts/drupal recipe ../recipes/simple_sitemap
, but the base URL wasn't being set properly so I was getting a sitemap with "http://:core/scripts" in the XSL file (and included image) URLs (with "no XSL stylesheet" found error).Setting simple_sitemap.setting.yml -> base_url config fixes the image URLs, but the xml-stylesheet href tag still had the bad base_URL.
And this patch → was causing the problem. I removed that base_url() and added a '/' in front of $xsl_url in the writePI(), and the XSL stylesheet started working from the CLI.
(There's probably a way to locally get a correct base_url value when running the drupal script (CLI), but it should be dealt with at the module level.)