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.
I have a drupal 7.52 website, I noticed that the number of entries in the sitemap.xml file constantly reduces with time even if the number of nodes on the websites is the same or increases. It seems that while nodes being deleted are correctly removed from sitemap new nodes are added to the 'xmlsitemap' table but all with access =0. Even if new nodes are accessible to anonymous user (node_access table gid=0 grant_view=1) function xmlsitemap_node_view_access returns false, function exits at line 321 and the result of the query seems to be empty.
Any help appreciated. Thanks.
Comments
Comment #2
oppure CreditAttribution: oppure commentedComment #3
oppure CreditAttribution: oppure commentedComment #4
oppure CreditAttribution: oppure commentedComment #5
oppure CreditAttribution: oppure commentedComment #6
oppure CreditAttribution: oppure commentedNoone able/interested in reproducing/investigating this issue?
Comment #7
oppure CreditAttribution: oppure commentedComment #8
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedSee https://www.drupal.org/project/xmlsitemap/issues/690120 for a similar issue and possible workaround.
See longstanding issue in core https://www.drupal.org/project/drupal/issues/690520
Comment #9
rahim123 CreditAttribution: rahim123 commentedI'm not sure of the cause, but I'm experiencing the same issue. Every time I regenerate the sitemap there are *less* links. Only rebuilding it completely makes new nodes appear. I tried clearing the caches and made sure that there is no "Minimum sitemap lifetime" while testing. I also tested the most current 2.x-dev version, but it behaves the same. I also tried adding the recommended workaround to xmlsitemap_node.module:
(The patches no longer apply, but I manually added the relevant lines in the context shown above)
Unfortunately, that also doesn't fix anything.
Any other suggestions?