This is a fresh install of XML Sitemap on a fairly new Drupal 7 site. After install XML Sitemap, the module seems to work as expected, except to add pages to the sitemap.

I first visit admin/config/search/xmlsitemap/settings and set the content types that I want to be included in the sitemap with default priority. I do the same for my Menu Links I want included.

I then save the configuration and go back to the "list" of sitemaps. Finally, I run cron to generate the new sitemap. At this point, on admin/config/search/xmlsitemap, I see my default sitemap, /sitemap.xml. Under Links, I see 19, but under pages, I only see 1. This is consistent when I actually open the sitemap to view it (I only see 1 url in the sitemap).

No amount of rebuilding the links or editing and re-saving the configuration, or running cron seems to fix this issue.

Finally, I've tried completely disabling and then uninstalling the XML Sitemap files, and then enabling and configuring them again, which also has not resolved the issue.

CommentFileSizeAuthor
#6 xml_sitemap_cap0.PNG6.61 KBmjt772
#6 xml_sitemap_cap1.PNG8.92 KBmjt772
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Fixed

You need to visit the administration of each content type. There is a fieldset in each of those for xmlsitemap.

DavidWhite’s picture

Status: Fixed » Active

I first visit admin/config/search/xmlsitemap/settings and set the content types that I want to be included in the sitemap with default priority.

I can confirm that this has been done. For example, if I visit admin/structure/types/manage/page for my Page content type, I can confirm it is set to be included in the sitemap.

DavidWhite’s picture

For further information & additional troubleshooting steps taken:

  1. Reviewing other issues in the queue, I've noticed that sometimes the $base_url needs to be set for sites that don't want to use "www" in their domain - so http://domain.com, and not http://www.domain.com. I'm using http://domain.com, so went ahead and put that into the $base_url. (That didn't fix the problem)
  2. I also tried downloading the latest 7.x-2.x-dev release (as of last night), which didn't seem to work either. So either I'm badly confused and doing something terribly wrong, or there does seem to be a bug somewhere.
patrick5668’s picture

I have the same problem, could it have anything to do with clean Url's?
I can not create clean url's on the server aswell.
Did you find a for it fix jet?

patrick5668’s picture

Have done some testing and it looks like the content type pages are defined as a link instead of a page.
When I only include a content type page and no menu links, I get to see only Url's instead of pages.
When I include the main_menu, the Url count add's the menu links, but still no pages.

mjt772’s picture

Issue summary: View changes
FileSize
8.92 KB
6.61 KB

I think I've had the same question/situation as the OP (screenshot 0), but I now suspect that everything is fine, and that this is just a matter of awkward verbiage. Note the help text (screenshot 1) from the settings page. I think that "pages", within the context of this module, refers to XML sitemap pages (i.e., XML files containing up to 50,000 links each), not to the website's pages/nodes/entities/etc. I should therefore expect to only see 1 page listed in my XML sitemap until such time as my site contains more than 50,000 links.

Update: I've successfully tested this hypothesis by manually changing "Number of links in each sitemap page" to 100 instead of "automatic" and rebuilding the sitemap. As expected, my sitemap now lists 2 pages instead of 1.

KoshaK’s picture

The same here... only One page and sitemap...

425Media’s picture

Has anyone found a solution to this issue? I have a number of sites that have multiple links, but only one page listed.

cpollinger’s picture

I am having the same issue. Anyone find any solutions?

425Media’s picture

I am still having this issue on one of my sites. Has anyone found a solution or workaround?

Rajeshreeputra’s picture

xmlsitemap is now working on my site drupal 8 site.