After rebuilding my links, the content tab shows 682 Available and Indexed nodes and 0 Visible. The actual sitemap.xml shows no links, how to make my links visible? I can surely access them.

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Have you set some content types to be visible in the sitemap? By default you have to go and tell XMLsitemap which content types to include, it does not include them by default.

dtolj’s picture

The XMLsitemap is set to "included" and priority level is set to "0.5 normal" in my custom content type but after re-building index, value still shows as zero in "visible" column.

lee luyanda’s picture

I'm having the same issue, the site map is invisible in my footer and all links needed exist and have been included in options.

dtolj’s picture

I only have a File field type in my content type as a multiupload widget. These files are not picked up by sitemap.

ikeigenwijs’s picture

same issue,
taxonomy is added, but no content nodes.

beccapossible’s picture

I'm having the same issue. 206 available Articles, 206 indexed Articles, 0 visible Articles. I've gone in to the Article Content Type and set the inclusion to Included with a priority of 0.5 as well. I've run cron as well, still no visible Articles.

megansh’s picture

I ran into this issue as well. All taxonomy terms were indexed and visible. All content nodes were indexed but not visible. I had properly configured all of the XML sitemap settings for each content type and taxonomy term, so that wasn't the issue.

This was my third drupal 7 sitebuild in as many months, and I had not had the issue on my last two builds, so I gave it some thought and I believe I have identified the issue.

In the meantime, here's a workaround that fixed the issue for me:

1) completely uninstall the XML sitemap module

2) verify anonymous users have permission to "View published content"

3) re-enable XML sitemap module

4) reconfigure XML sitemap settings on the content nodes and taxonomy terms

5) rebuild sitemap (should now include both content nodes and taxonomy terms)

My theory is that when you build the XML sitemap before anonymous users have permission to "View published content" and later turn on the permission, somehow XML sitemap still doesn't want to include the content nodes that would have been previously hidden by that permission. On the other hand, when you start building the XML sitemap with that permission enabled, the module works as designed.

I haven't really dug into it a lot, but I hope this helps in identifying the issue.

megansh’s picture

Status: Postponed (maintainer needs more info) » Active
dalguete’s picture

Better late than never. The problem gets fixed by Rebuilding permissions (/admin/reports/status/rebuild), then rebuild sitemap link (/admin/config/search/xmlsitemap/rebuild) and all back to normal.

er11’s picture

The same issue for drupal8.
after rebuilding it's shown, that content types are indexed, but not visible
sitemap.xml doesn't have anything in it
1 year left and no changes, excellent))

proweb.ua’s picture

#7 works