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
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedDid you install over top of the existing folder? You should always with all modules remove the module folder before extracting the tar contents.
I'm assuming that this is due to not removing xmlsitemap folder before extracting 6.x-2.0-rc1.
Uh, the front page is a node, you need to also install the XML sitemap node module.
What is in the file?
EARNIE'S SUGGESTION:
* Use Elysia Cron module to control the hook_cron implementations execution.
Comment #2
guysaban CreditAttribution: guysaban commentedI did uninstall the module and removed the files before downloading with Drush.
I did try it with the XML sitemap node module later one. It did not work.
1.xml 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
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedYes, 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.
Comment #4
guysaban CreditAttribution: guysaban commentedI 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.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedDo the tricks at #1104746-14: sitemap.xml not found (Error 404) help?
Comment #6
guysaban CreditAttribution: guysaban commentedThanks Earnie,
I tried that but the DB entries looked good.
Still getting the 404 error.
All the best,
Guy
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedDid you try with boost disabled?
Comment #8
guysaban CreditAttribution: guysaban commentedYes. Boost is disabled and cache removed.
Comment #9
fbau CreditAttribution: fbau commentedNot 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
Comment #10
guysaban CreditAttribution: guysaban commentedThanks 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.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks for the detail posts guysaban and fbau. I've changed this to a task to update the documentation regarding known issues.
Comment #12
mattwmc CreditAttribution: mattwmc commentedwhat 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.
Comment #13
guysaban CreditAttribution: guysaban commentedHi 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();
}
}
}