Community Documentation

Known Issues

Last updated June 22, 2012. Created by Dave Reid on June 5, 2009.
Edited by earnie, sivaji, anoopjohn, jbrauer. 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 http://example.com/?q=sitemap.xml 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 http://bugs.php.net/bug.php?id=36599.

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

If your site's URLs normally look like http://example.com/ but they are generated in the sitemap as http://www.example.com/ (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 http://drupal.org/node/562404 or http://drupal.org/node/505232.

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 http://drupal.org/node/448000#comment-1534704 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 http://drupal.org/node/534460.

6.x-2.x branch

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

Comments

Drupal 7; only 1 URL!

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

I have exactly the same

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?

its a bug

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.

Like the arrow in the hands of a mighty man............

Same problem- very easy fix!!!

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.

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... http://www.example.com 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

Update cached files

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

loc'tar o'Gar For The HORDE -- :D not any more since Blizzard has restricted Iran

I 'had' this issue too...

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!

Only two search engines are listed

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
Aware Hosting, Go Daddy, LimeDomains, Rackspace, Tata Instacompute

When hosting on Nginx...

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

Any idea how to do this? I am

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

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Programmers, Site administrators, Site builders
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.