Hi,
1. if I try to open http://example.com/sitemap.xml as a unregistered user I get the following error:
Fatal error: Call to undefined function xmlsitemap_get_priority() in .../sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module on line 305
2. if I try to open http://example.com/sitemap.xml as a registered user I find in the logfiles the following:
»page could not be found«
and
fopen(sites/default/files/xmlsitemap/xsm-.xml) [function.fopen]: failed to open stream: No such file or directory in ...../includes/file.inc in Zeile 810
the folder sites/default/files/xmlsitemap/ actually is empty all the same whether the rights of that folder are 775 or 777.
I tried the versions from 7. and 8. May 2009.
What can I do?
Comments
Comment #1
avpadernoI checked the code, and there aren't any references to that function. For the reason of the error you are seeing, I can only think that maybe you have a mix of old, and new files.
I will investigate this.
Comment #2
avpadernoFor the second part of the report, I found an error in the code; I am opening a different issue report for that.
Comment #3
avpadernoSee #458132: xmlsitemap_output() references a not initialized variable for the other report.
The sitemap cache is generated only when the anonymous user access the sitemap; if you see it as authenticated user (in other words, if you are logged in), the sitemap could not be updated, or you could get a 404 error message.
Comment #4
avpadernoI am changing the category of this report because the code doesn't contain any reference to
xmlsitemap_get_priority(); the code contained a reference to that function, but it has been fixed (see #456288: xmlsitemap_get_priority() is not defined).Comment #5
avpadernoI am changing the status of the report.
Comment #6
Anonymous (not verified) commentedTry admin/settings/performance and click "Clear cached data" near the end of the page.
This issue is caused by cached menu data and that data contains a reference to this function. It occurs when replacing code from one -dev version to another -dev version without following the instructions listed in the INSTALL.txt file and given in detail at #379854-128: The site map is not being populated.
Comment #7
quixxel commentedMany Thanx for your comments !!!
Today I deactivated, deinstalled and deleted the 6.x-1.x-dev-version and tried the new beta.1-version.
No errors anymore.
But if I try to open http://example.com/sitemap.xml I get the »page could not be found«-message again.
I cleared the cache datas in admin/settings/performance: the same result.
Also I'm a little bit irritated: do I have to create the xmlsitemap-directory manually?
There wasn't any available in sites/default/files/
Any Ideas?
Comment #8
avpadernoThe directory is created from the code, if it doesn't exist already, in the moment it needs it; this usually happens one instant before the cache files are created.
Comment #9
avpadernoI am setting this report as fixed.
Comment #10
quixxel commentedBut were can I get advices how o get the module xmlsitemap working correct?
The sitemap itself isn't shown.
If I try to open http://example.com/sitemap.xml I get the »The page you requested does not exist.«-message again.
Comment #11
quixxel commentedComment #12
avpadernoComment #13
Anonymous (not verified) commented@quixxel: The entitled issue is fixed. Others have reported the page not found issue so you need to look at the rest of the issue queue for solutions.
Comment #14
quixxel commentedYes. Many Thanx for your great work!