I first upgraded from 6.x-1.x to 6.x-2.0-rc1. Got no working URL to sitemap.xml
I then uninstalled and installed 6.x-2.0-rc1. Still got no working URL to sitemap.xml

I only enabled the sitemap module which would give me a sitemap of only the front page.
I also need the i18n component but did not enable it since I think its better to get the basis to work first.

From reports:
XML sitemap cache directory - writable
I see the 1.xml file.

I tried most suggestions I found in the issue queue:
1) Installed element module and updated cache sitemap xml files (I saw they were written)
2) Saved the settings at /admin/settings/xmlsitemap/settings

I am not sure what else to do.
Either I missed something obvious or its not working.

All the best,
Guy Saban

Comments

Anonymous’s picture

I first upgraded from 6.x-1.x to 6.x-2.0-rc1.

Did you install over top of the existing folder? You should always with all modules remove the module folder before extracting the tar contents.

Got no working URL to sitemap.xml
I then uninstalled and installed 6.x-2.0-rc1. Still got no working URL to sitemap.xml

I'm assuming that this is due to not removing xmlsitemap folder before extracting 6.x-2.0-rc1.

I only enabled the sitemap module which would give me a sitemap of only the front page.

Uh, the front page is a node, you need to also install the XML sitemap node module.

I see the 1.xml file.

What is in the file?

EARNIE'S SUGGESTION:

  1. Disable the xmlsitemap modules you have installed.
  2. Go to the Delete tab on the modules administration page and delete the xmlsitemap modules.
  3. Review the database and remove any remnant tables beginning with xmlsitemap.
  4. Review the variable table and remove any elements whose name begins with xmlsitemap.
  5. Remove the xmlsitemap folder from the disk.
  6. Extract the xmlsitemap-6.x-2.0-rc1 file again.
  7. Enable the XML Sitemap module.
  8. Enable the XML Sitemap node module.
  9. Go to each content type and enable the types you want listed in the sitemap.xml virtual file.
  10. Execute cron (maybe several times depending on the number of hook_cron implementations *)
  11. You should now have a working /sitemap.xml URL.

* Use Elysia Cron module to control the hook_cron implementations execution.

guysaban’s picture

Did you install over top of the existing folder? You should always with all modules remove the module folder before extracting the tar contents.

I did uninstall the module and removed the files before downloading with Drush.

Uh, the front page is a node, you need to also install the XML sitemap node module.

I did try it with the XML sitemap node module later one. It did not work.

1.xml file

What is in the file?

It had the record of the front page.

based on you instructions.
1) I disabled and uninstalled the XML sitemap module along with its submodules.
2) I deleted the xmlsitemap module folder
3) I deleted the xmlsitemap directory at /sites/default/files/xmlsitemap
4) I checked the DB - I did not find any XML sitemap tables
5) drush dl xmlsitemap (downloaded rc1 version)
6) drush en xmlsitemap xmlsitemap_node (enable these modules)
7) enabled the page content type

Did not work.
Still get "Not Found".

Could this be rated to boost module?

All the best,
Guy

Anonymous’s picture

Could this be rated to boost module?

Yes, it could be. Others have had issue with boost caching. Try deleting your browser cache and cookies to see if it helps. If not then try another browser. If that doesn't work try turning off boost.

guysaban’s picture

I cleared boost cache and turned of boost.

Cleared browser cache and cookies.

Still get a 404 error.

I am not sure what the issue is.

Anonymous’s picture

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

Thanks Earnie,

I tried that but the DB entries looked good.

Still getting the 404 error.

All the best,
Guy

Anonymous’s picture

Did you try with boost disabled?

guysaban’s picture

Yes. Boost is disabled and cache removed.

fbau’s picture

Not sure if this info may be any help.

I noticed a D6.25 site with 6.x-2.0-rc1 was 404 for the sitemap.xml a week ago through webmaster tools. It had worked previously.

Tried all the steps above, not using boost but have Advanced CSS/JS Aggregation 6.x-1.8 instead which was disabled and all caches cleared. still seeing 404 for sitemap.xml

Have reverted to using domain.com/sites/default/files/xmlsitemap/****/1.xml which works on the live site.

I went back to a local backed up copy of the site which was pre installation of Advanced CSS/JS Aggregation 6.x-1.8 and sitemap.xml was working as expected.

Installed Advanced CSS/JS Aggregation 6.x-1.8 on that copy and sitemap.xml returned 404 but domain.com/sites/default/files/xmlsitemap/****/1.xml works.

In this case compression seems to be the reason for the sitemap.xml 404

edit: actually it was this code in settings.php as described at http://2bits.com/drupal-planet/reducing-server-resource-utilization-busy... and mentioned in the Advanced CSS/JS Aggregation readme

rss.xml was also returning a 404 until the above was removed

guysaban’s picture

Thanks fbau,

Your edit helped me.

fbau: "edit: actually it was this code in settings.php as described at http://2bits.com/drupal-planet/reducing-server-resource-utilization-busy... and mentioned in the Advanced CSS/JS Aggregation readme"

I disabled Advagg and removed the 404 code (thats the 2bits.com 404 code).

I was able to get the sitemap.xml working (no 404 error). For the other languages I had to save the sitemap settings again at /admin/settings/xmlsitemap/list and then run cron before I could see links in the sitemaps.

Thank you for taking the time to add your helpful comments.

Anonymous’s picture

Component: xmlsitemap.module » Documentation
Category: support » task
Status: Postponed (maintainer needs more info) » Active

Thanks for the detail posts guysaban and fbau. I've changed this to a task to update the documentation regarding known issues.

mattwmc’s picture

what was the code at 2bits?

That 2bits page has been removed and gives a 404 error, lol.

I'm having the same issue. Main site's sitemap not found; however, all the subdomains are there.

guysaban’s picture

Hi Matt,

The following is the code from 2bits (modified according to some instructions in the Advagg module README.txt). It works but some modules have problems with it. I don't recommend using it. It could be that 2bits removed it from their site for good reason(s).

All the best,
Guy

// http://2bits.com/drupal-planet/reducing-server-resource-utilization-busy...
// modified according to advagg README.txt instructions
//
// List of extensions for static files

$exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp|xml';

// It is not an imagecache path, which we allow to go through Drupal
if (!strpos($_SERVER['QUERY_STRING'], 'imagecache') && !strpos($_SERVER['QUERY_STRING'], '/advagg_')) {
// It is not our main feed page
if ($_SERVER['QUERY_STRING'] != 'rss.xml') {
// Is it a static file?
if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING']))
// Just send a 404 right now ...
{
header('HTTP/1.0 404 Not Found');
print '';
print '404 Not Found';
print '
Not Found

';
print '

The requested URL was not found on this server.

';
print '';
exit();
}
}
}