Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The symptom: white empty page.
Steps to reproduce
Install latest Tome and Simple Sitemap.
Generate the site.
The /sitemap.xml displays empty page.
Cause
This is caused by having the following line in the simple_sitemap:
<?xml-stylesheet type="text/xsl" href="/sitemap_generator/default/sitemap.xsl"?>
And this link is not being followed.
Proposed resolution
Follow the link in the xml.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | tome_fails_with_the_latest_simple_sitemap-3389768-5.patch | 3.01 KB | enchufe |
Issue fork tome-3389768
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
samuel.mortensonI saw this too - but the page isn't actually blank (you can verify this with curl), it's just that your browser/web server can't recognize the content type of the file. Since Tome doesn't control how files are served, this issue isn't fixable by Tome AFAIK.
Comment #3
samuel.mortensonActually I think I just realized what you were saying, sorry about that.
Comment #4
tormiAny ideas how to resolve this?
Comment #5
enchufeAdded to the event subscribers a specific one for the sitemap.
Comment #7
enchufeAs an alternative, I have created the submodule Tome Add Paths.
Comment #10
marcoliver@enchufe Even without your patch I am seeing the sitemap.xml file being created in the static folder.
I partially agree with @samuel.mortenson insofar that the "empty" display of the XML seems to be a server issue, not necessarily Tome-related.
But the module is nevertheless lacking a way to discover and save the XSL stylesheet for the sitemap.
I have created a first attempt at a solution for this in MR 24, kindly asking for review / feedback.