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
Saving the settings when no entity has been defined (showing only frontpage) generates an error "Error
The website has encountered an error. Please try again later"
This is due to the subtype field being null for the frontpage.
Proposed resolution
Simply add a 'subtype' => '' to the link save.
Remaining tasks
Upload the patch.
Comment | File | Size | Author |
---|---|---|---|
#1 | xmlsitemap-error_saving_settings-2485859-1.patch | 1.26 KB | camoa |
Comments
Comment #1
camoa CreditAttribution: camoa at Camo Advanced Tech commentedThe patch, it seems to be working now.
Comment #2
MichelleI confirmed this patch does the job.
Comment #3
MichelleNote, this fix is included in #2479629: Generating sitemap of entities doesn't work .
Comment #4
swentel CreditAttribution: swentel commentedComment #5
Dave ReidCommitted and pushed #1 to 8.x-1.x.