Hi,
I am running the latest version of D6, and just installed xmlsitemap module. I have tried both

After manually running cron a few times, it seems that all nodes have been inserted into xmlsitemap_node table. I can also confirm that the /sites/default/files/xmlsitemap directory was created, and that there is a file called xsm-en.xml

The above-mentioned file contains nothing other than the default header.

Also, no xml file is ever created in the root of my site.

I am not sure what else to try, am I mising something obvious? Any help greatly appreciated.

Comments

john.kenney’s picture

if you working on localhost on windows vista machine, might be same problem i had which had to do with file permissions in the root directory.

solution was to fiddle with windows permissions for the entire site directory to make it inherit from parent and then apply to all subfolders.

JonoB’s picture

Thanks for the reply, but this is a live server

JonoB’s picture

OK, so I manually created a sitemap.xml file (from some other online generator), and placed this in my root. I then noticed on the drupal status page a warning:
XML sitemap : Existing sitemap.xml file found.
The XML sitemap module cannot display its XML output if there is an existing sitemap.xml file in your website root.

I removed this file, re-ran cron...but still no sitemap.xml from the drupal module.

manfer’s picture

I don't think xmlsitemap would ever create a sitemap.xml on your root folder. If I'm not mistaken it is not how it works.

There is not a file contact.html, home.html, blog.html..., anyway they are served by drupal, aren't they? The same happens for sitemap.xml it is going to be served by drupal but don't expect a sitemap.xml file being created in your root folder.

Just visit that node on your domain as anonymous user.

www.example.com/sitemap.xml

(replace example.com with your own domain).

And look if you see a sitemap that way.

Anonymous’s picture

  • There is no sitemap.xml file created on the server.
  • What is the link to your site?
  • What modules do you have installed?
  • How often do you execute cron.php?
  • What settings do you have for admin/settings/xmlsitemap?
JonoB’s picture

Status: Active » Closed (works as designed)

Well, chalk that one up to inexperience or stupidity. I thought that an actual xml file would be created. Doh.

Consider this fixed, not an issue, or just vaporised into the ether.

Chris11’s picture

aha - at last. I have been struggling with this for ages. Before converting my site to Drupal I had a file sitemap.xml in my root directory. If you have such a file then this module does not work. You need to delete sitemap.xml from your server.

Tiggsy’s picture

Issue summary: View changes

So what this means is that it isn't possible to update the sitemap to deal with the ancient and frequently reported but never dealt with bug where the change frequency is wrong everywhere, and cannot be changed in the settings.

I'm seriously considering writing a program to produce this map myself.