sitemap.xml is not found
Pibu - January 5, 2009 - 12:24
| Project: | XML sitemap |
| Version: | 5.x-2.x-dev |
| Component: | xmlsitemap.module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
| Issue tags: | error, sitemap, system error, XML parsing error, xmlerror, xmlsitemap |
Description
I'm having trouble on my multisite Drupal 5 installation with XML Sitemap. After I installed xmlsitemap and xmlsitemap_node, I get a 404 error on /sitemap.xml . I have tried the dev version too, and several install/deinstalls, but it doesn't work. I figure it won't be a bug, since I don't see any mention of it in the issue list, but would appreciate a bit of help on this one.
Thanks

#1
5.x-1.6 version doesn't get any modifies to the code, nor bug fixes.
#2
I am changing the referring version to 5.x-2.x-dev.
If the issue is not confirmed for this release too, the report will be close between 3 weeks.
#3
#4
Excuse me, 5.x-2.x-dev is correct.
#5
If the issue is not present in 5.x-2.x-dev, then I will set the report status to fixed.
The 5.x-2.x-dev version is the only version in the Drupal 5 branch which is being modified.
#6
#7
Automatically closed -- issue fixed for two weeks with no activity.
#8
I too have this issue. I'm using version 5.x-2.x-dev, 2009-01-28. I have tried several uninstall and install actions, but the problem remains: returning a 404 not found error on both /sitemap.xml and /?q=sitemap.xml.
I have installed this wonderful module in /sites/all/modules/xmlsitemap/
If you need me to give more information, I'd be glad to do so.
#9
Try with the latest tarball archive, and check if it works.
Disable, and re-enable the project modules; before to enable them, clear the page cache used by Drupal.
#10
#11
Thanks Kiam, I deinstalled the previous version and installed the lastest archive ( XML Sitemap 5.x-2.x-dev, 2009-02-07 ). Still it returns a 404 error on both /sitemap.xml and /?q=sitemap.xml. The weird thing is, I've enabled the submodule for nodes, but don't see any settings anymore (see the attachment). Any idea what I should do? Greatly appreciate any help.
#12
It's not clear to me what you mean by but don't see any settings anymore; in the screenshot you attached I do see the settings.
What are you expecting to see that you don't see?
#13
I'm sorry, I got confused with another module. Still, the xitemap cannot be found on /sitemap.xml and /?q=sitemap.xml. Is there anything I can doublecheck to make sure it is installed correctly?
#14
What is the address of the site where you are having this issue?
#15
I'm switching it to the bug report
* Failed to send file /tmp/fileHSdjpL, because destination folder files/xmlsitemap/sitemap.xml.gz isn't configured appropatedly
* Unable to load site map. Make sure that there is an xmlsitemap directory in your files directory and that it is writable by Drupal.
There is no such directory files/xmlsitemap nor file sitemap.xml.gz Since I don't understand why is files directiory mentioned I can't change that. Maybe it is a bug in a description. Shouldn't it be modules directory?
edit: sorry for making it critical. i dont want to change it now, should be normal
#16
I am changing the category, as I am not able to reproduce this issue in the test site I use; if it would be a bug, then I would have the same issue on my test site.
@spookypld: Pass to the 5.x-2.x version.
To say the truth, I don't understand the error messages you reported, and why you get them. The content of the site map is given directly from the module, and it's not taken from a file.
Don't change the issue settings if you don't understand what they mean; the component for this report is xmlsitemap.module because it's that the module which outputs the site map, and the status cannot be changed to patch (code needs review) because there aren't patches attached to any comments present in this report.
#17
I'm getting a similar error message. Mine says
* The file could not be created.
* Unable to load site map. Make sure that there is an xmlsitemap directory in your files directory and that it is writable by Drupal.
The xmlsitemap directory is in my files directory and it is writeable. Is there a way to check to see if it's writable specifically by Drupal?
#18
The 5.x-2.x-dev version doesn't create files in the files directory.
#19
Hi!
The problem exists in the 6.x-1.x-dev (2009-02-23) version too. I've got the same problem. I create manually the xmlsitemap directory under the files, but I still got 404 error from drupal, when I try to access to the sitemap.xml. What I am making wrong?
#20
@xmarket: It should be better to open a different report for that. I can tell you that XML Sitemap doesn't need any xmlsitemap directory under files for the simple fact it doesn't create (so far) files on that directory.
#21
Thanks for the reply. The last well working version for me from the 6.x-1.x-dev is released on 2008-12-18. Thanks for the developing and I hope the stable release coming soon.
#22
Hi,
I get a similar problem. I think it might have been unclear above exactly what was happening.
I have just tried to upgrade from 5.x-1.6 to 5.x-2.dev. I thought I had disabled and deleted all the files from 5.x-1.6 before I installed 5.2. However, on installing 5.2 and running update.php I find that there are a couple of problems.
There is no sitemap.xml
I get this error: XML Parsing Error: no element found
Location: http://www.xxxx.com/sitemap.xml
Line Number 1, Column 1:
The link to sitemap.xml no longer appears at the top of the admin page: /admin/settings/xmlsitemap as it did in 5.1.6.
The third tab 'Additional' that allowed specific url prioritising was there on 5.1.6 is no longer there anymore. (this may be intentional - I'm just noting everything I see that's different in case it helps identify the problem).
I hope that helps clarify a bit what the problems were mentioned above. Any help would be greatly appreciated, as I'm keen to try the new xmlsitemap without the memory issues which sounds ace!!!
I'll try uninstalling/deleting and starting over. If it makes a difference I'll let you know.
thank you so much in advance
Thomas
#23
Hi again.
I disabled, uninstalled, deleted the xml sitemap in all it's forms and then replaced it in the sites/all/modules folder and reenabled just the xmlsitemap module. I then updated.php'd and ran cron and now
http://www.2012tube.com/sitemap.xml gives me:
<?xml version="1.0" encoding="UTF-8" ?>
-
-
http://www.2012tube.com/
2009-03-06T11:20:52+00:00
always
1.0
Is that what I'm meant to see? It's just it's a bit different from before.
Then I enabled sitemap node, sitemap menu, sitemap term and sitemap engine.
In the settings it now reflects that with the settings for menu and search engines available.
But, the sitemap.xml gives the error detailed in the post above.
I then disabled sitemap node - error continues
Then I disabled sitemap term and the error disappeared and it returned to this:
<?xml version="1.0" encoding="UTF-8" ?>
-
-
http://www.2012tube.com/
2009-03-06T11:20:52+00:00
always
1.0
which looks like a sitemap that just has the main url in it. It seems unable to create a sitemap of the rest of the site.
if I enable sitemap node, menu or term I get an error.
thanks
THomas
#24
Which error do you get?
#25
hi sorry I haven't been clear enough.
When I have just XML Sitemap and XML Engines enabled and visit http://www.2012tube.com/sitemap.xml I get this:
−
http://www.2012tube.com/
2009-03-07T07:59:54+00:00
always
1.0
when I enable XML Sitemap Nodes and visit the same page I get:
XML Parsing Error: no element found
Location: http://2012tube.com/sitemap.xml
Line Number 1, Column 1:
thanks so much for your help
thomas
#26
#27
Do you get the error on a specific browser, or in all browsers? May you report thr URL of the site map giving you the problem?
#28
I am setting the report as fixed because it didn't get any feedback in more than 2 weeks.
#29
I had the same error where /sitemap.xml gave access denied / 403
The issue was because the menu callback required an anon user to access it:
xmlsitemap.module:line 142
change access to TRUE for unrestricted sitemap access
$items[] = array('path' => 'sitemap.xml',
'title' => t('Site map index'),
'callback' => 'xmlsitemap_output',
'type' => MENU_CALLBACK,
'access' => TRUE,
);
hope it helps,
DT
#30
The topic of the issue was different, and who opened the report was not talking of any access denied errors.
The access is restricted to the anonymous user to avoid that the links in the site map are not accessible to the anonymous users (search engines are Drupal anonymous users). Please, don't suggest changes in the code which could cause unwanted issues (especially if you don't understand why the code has been changed).
#31
Automatically closed -- issue fixed for 2 weeks with no activity.
#32
Hi,
I am getting below errors on different browsers when navigating to the sitemap file: http://chiprv.org/sitemap.xml. Help me resolve the problem please. Thanks
Error details on Fire Fox:
==================
XML Parsing Error: not well-formed
Location: http://chiprv.org/sitemap.xml
Line Number 58, Column 9:
<ul ="links primary-links"><li class="menu-166 first"><a href="/about-us" title="About Us">About Us</a></li>
--------^
Error details for IE:
===============
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
System error: -2146697204. Error processing resource 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'.
#33
XML sitemap doesn't output such line code. That seems the output of a normal Drupal page.
You first made the same comment for version 6.x-1.1, and then for the Drupal 5 branch. Which version are you exactly using?