Last updated June 22, 2012. Created on June 5, 2009.
Edited by earnie,, Dave Reid, anoopjohn. Log in to edit this page.

View known issues by version:

All versions

xmlsitemap_user module is borked
Ugh, there's lots of crappy stuff going on about when to save the XML sitemap data from the user account form and when to save it because the $account object changes. I'm looking into this right now, but currently the per-user settings are not working on 7.x-2.x or 6.x-2.x.

This means you should not enable xmlsitemap_users until this is resolved. See issue #708078: user submodule is borked for summary.

I get the following warning in my web browser when viewing my XML sitemaps:
This XML file does not appear to have any style information associated with it. The document tree is shown below.

This just means that you are viewing the raw XML page. There is nothing wrong and you can ignore this warning. If you would like to enable a nicer viewing style for your XML sitemaps, you can enable the "Include a stylesheet in the sitemaps." option in admin/settings/xmlsitemap.

If I don't have clean URLs enabled, can I still submit my sitemap to search engines?

Use as your sitemap's URL or enable clean URLs. Please note that using clean URLs is highly recommended.

I get the following error from Google Webmaster Tools:
Invalid date - An invalid date was found. Please fix the date or formatting before resubmitting.- Parent tag: url

Most likely you are using PHP 5.1.1 or PHP 5.1.2, which introduced the new date/time constant DATE_W3C but doesn't include the required semicolon in the timezone separator. This bug has been fixed in PHP 5.1.3 and higher. See

My site's URLs are generated incorrectly in the sitemap.

If your site's URLs normally look like but they are generated in the sitemap as (or something other than expected) you probably need to set the $base_url variable in your site's settings.php file. The 6.x-2.x version has an option to set this variable at admin/settings/xmlsitemap. Clear the cache and run the cron to rebuild sitemap with new $base_url. See or

I get the following error when viewing my sitemap.xml when the "Include a stylesheet in the sitemaps." option is enabled:
Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype

See the previous answer about setting the $base_url variable in your site's settings.php.

I get the following error when checking Google Webmaster Tools:
Verification failed. Your verification file has the wrong content.

Google changed the method for verification which is not compatible with the 5.x and 6.x-1.x version of the XML sitemap engines sub-module. You should install and enable the Site verification module for your search engine verifications. This functionality is being deprecated from the XML sitemap engines sub-module.

6.x-1.x branch

Performance issues

The current recommended 6.x-1.x and 5.x versions cause serious performance issues on sites that have large amounts of content to index into sitemap data. Disabling the module usually resolves the performance issues. See for details. Also note that the 6.x-2.x branch is a complete refactoring with considerations for performance, scalability, and reliability.

Access Denied (403) errors when submitting to search engines.

Use of the "Submit the sitemap when content changes" checkbox can cause the search engines to give you Access Denied (403) or other errors because of the rate of submission. If your content is mostly static you may use this feature safely but if you have content that is changing with every cron.php run or user entry then the content will be submitted at the next user's page refresh. This was discussed at

6.x-2.x branch

Other than the issues specified in the All versions section there are no other known issues.

Looking for support? Visit the forums, or join #drupal-support in IRC.


Polyspiral’s picture

It seems to only list 1 URL. doesn't seem to be any options to fix this whilst in admin/config/search/xmlsitemap

dotmagic’s picture

I have exactly the same problem.
You have to enable and configure additional modules, like XML sitemap menu, XML sitemap node. This isnt covered in the docs, maybe because its outdated?

Web Design Ghana’s picture

I think its a little bug which needs to be solved. I'm just trying to see if I can do it.

If you look at the url, you'll realize that it starts with ww instead of www.
So it generates a bad url and thus cannot access any link inside that url except for the url itself.

jackokorn’s picture

Hi all, I had the same problem of only showing 1 URL. After some searching, I found I needed to enable the checkbox option for XML sitemap node in the Modules page.

Once enabled, you can then go to the xml sitemap settings (in Configuration » Search and metadata > Settings > Content ) and choose which nodes you want to include in the sitemap. Note* from there, you will be jumped to the actual content type where you must switch the default setting of "Excluded" to "Included" and save.

Once you've identified which nodes/content types to include in your sitemap, select the Rebuild Links tab from the configuration settings- and your links will be generated.

leandrosnow’s picture

I followed your explanation I see a site map has been added and has 418 links, but when i click on it I only get a page with 1 URL on it... that if click takes you to my page... is this normal? or it should see all the links listed on the xml sitemap url?

Please help using drupal 7

Exlord’s picture

u should Update cached files in [ur site]/admin/config/search/xmlsitemap ...

Elijah Lynn’s picture

Go to admin/config/search/xmlsitemap/settings, then click the "content" vertical tab at the bottom. Then click the name of each content type you want to include, it will take you to the config settings for that content type, then click the "XML sitemap" vertical tab and change Inclusion field from Excluded to Included. Now go to admin/reports/status and run cron manually, by default it indexes 100 per run, do that as much as you need to.

The Future is Open!

sridharpandu’s picture

My installation only lists Bing and Google. I don't see Ask and Yahoo. I am missing something?

Acer Aspire 5745
[i5 430M, 3GB, 320GB]
Ubuntu 12.04 (Precise Pangolin)
Drupal 6.15, 7.x
DigitalOcean, Go Daddy, Rackspace,

allenfantasy’s picture

No you didn't miss anything. For 7-x there are only Google and Bing!.

Cyantist69’s picture

...for this module to work, make sure you do not have XML files set to be served as static files.

AntiNSA’s picture

Any idea how to do this? I am using Barracuda / Nginx.... thanks!

annestahl’s picture

I'm experiencing the exact issue described in the installation page - however, the solution described to fix it, is not valid for my installation of Druapl 6 : There is no "XML Sitemap tab under Structure/Content Types for each content type". screeshot here:

Subcitizen’s picture

Hi, love this module. Thanks for all your hard work. I'm having an issue with Google. After I update the cache file, check the page to see if the xml file was generated, and send it to Google, I receive this error:

Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.

Is there a fix for this?