Posted by egarias on March 24, 2011 at 11:16pm
22 followers
| Project: | XML sitemap |
| Version: | 7.x-2.x-dev |
| Component: | xmlsitemap.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Dave Reid |
| Status: | active |
| Issue tags: | 404 page not found, i18n |
Issue Summary
I have a site with some 1.800.000 nodes
sitemap has now 150.000
i frequently have this error of sitemap not found and the sitemap.xml is not there
also the other sitemaps (3) get wrong after some time
I have to update cache files and then the sitemap is ok, but after some time again it disapears.
Comments
#1
Seeing similar behavior on my server.
The sitemap is created, works ok for a while, then at some point requests start to return 404.
The sitemap cache file still exists and seems fine. When I execute "Update cached files" the sitemap comes back on, and after a while the 404s return - with the cache file still in place.
#2
I forgot to update this issue.
I noticed that if when new nodes are added to sitemap and there's some error in the process, then you lost the sitemap and have to rebuild.
My error was in the watchdog and in my case were mostly because short of space on /tmp
I solved that but i am following the indications in this thread: http://drupal.org/node/1134480
Hope it helps
#3
Have the same problem in our installation. The module seems to works fine, sitemap is created/updated according to the stored configuration. I've checked this also directly in file system. File is correct and there is no error message displayed in admin area.
But it is not possible to access sitemap.xml (http://[serverip]/drupal/sitemap.xml). Status 404 Not Found.
The standard XSL stylesheet is reachable (http://[serverip]/drupal/sitemap.xsl). Status 200 OK.
I can confirm that the problem occurs only after a while (@see niryariv). But I still have no idea how to solve.
#4
Resetting version meta-data. No need to have a tag for sitemap.xml.
#5
Same here 404 :| :|
using 7 dev
Disabling internationlization resolves the 404 ...
#6
I suspect this issue is related to #920062: XMLWriter::openUri(): Unable to resolve file path as returned from xmlsitemap_sitemap_get_file. which has a patch that needs reviewed.
#7
i had the same problome; when the file was rebuild under the cron command, a 404 error was display. on the other hand, when i built it my self(click on the rebuild) i could access sitemap.xml with no problome.
a little research gave me the answer: cron built it with a root owner, and when i did that through the ui i got the www-data(apache) owner.
in other words: after the file is rebuild, we need to give him a www-data owner.
Best regards,
Roy.
#8
@#7 Uh, if the file is owned by root then something is amiss in your execution of cron. I don't know how you even managed to get a file owned by root since the web server is the one that is supposed to be executing the cron hook implementations.
#9
In my case the problem does not disappear and is CLEARLY caused by the i18n support!
#10
I am having the same problem and have already checked file permissions, also rebuilt the links and updated the cache and nothing changes.
I keep getting 404 (not found) error when trying to access: http://mysite.com/sitemap.xml
My site is also multilingual and I am using i18n... is that the problem?
Thanks for your support.
#11
Fresh install of xmlsitemap on 7.8
PHP Version 5.2.17
Install went fine.
Cron says sitemap created successfully
No warnings or errors.
mysite.com/sitemap.xml results in a 404 - page not found.
With no errors, it is difficult to determine what went wrong.
#12
This seems to happen when the cache files are being regenerated. Therefore at times you will see sitemap.xml not found. IIRC someone posted a patch in some issue for this case. Also see #1134480: Regenerating after error for another cause of issues and a remedy for it.
#13
No errors or warning displayed here and only 80 nodes, but also using the i18n module. I will see if the patches in the issues linked here will help but I have some doubts.
#14
Found that in fact it was only the default sitemap that was problematic. In my test setup there are 3 languages, each with a path prefix, /de, /fr and /en. The default sitemap had an empty context in the database, and the xmlsitemap_sitemap_load_by_context function returned nothing.
So I removed the default sitemap and recreated it. It turns out that it was enough to fix the issue.
Attached two screenshots of the xmlsitemap_sitemap database:
#15
It sounds as if xmlsitemap needs to recognize that it needs to rebuild the "default sitemap" in this case. Dave?
#16
the trix works for me.
#17
I have the same problem I think.
I have i18n activated and 2 languages active. Default is Swedish, the other is English. If I go to the files/xmlsitemap folder I can see the 1.xml sitemap file and it looks fine if I open it, but I still get The requested page "/sitemap.xml" could not be found.
#19
Use the tricks in #14 to work around it.
#20
Ah yes, somehow I missed that. I deleted the row in xmlsitemap_sitemap and generated a new one in /admin/config/search/xmlsitemap then updated it. Now it works.
#21
I experienced the same thing. #14 solved it for me.
#22
tagging
#23
i've solved it...
when you have not one language, just use this add new XML for every of your lang-s and after that, of course, run cron
#24
Dave, please take a look at #14 and answer #15.
#25
#14 fixed problem
Duplicate issue #1948480: Language subdomains gives '"Page not found"
#26
Hi there,
I´ve have the same problem, but after trying #14, the problem remains.
I´ve got a spanish site. Not two languages, just a site in spanish.
At /admin/config/search/xmlsitemap I´ve got one sitemap file.
When I click "edit" it just says "There are currently no XML sitemap contexts available". I click "Save".
I´ve the updated cached files for that sitemap (Message: Updated 1 XML sitemap.)
After clicking the sitemap link: Not Found The requested URL was not found on this server.
What´s wrong?
Thanks for your help and insight!