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

avpaderno’s picture

Title: Fatal error » Call to undefined function xmlsitemap_get_priority()

I 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.

avpaderno’s picture

Assigned: quixxel » avpaderno

For the second part of the report, I found an error in the code; I am opening a different issue report for that.

avpaderno’s picture

See #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.

avpaderno’s picture

Category: bug » support

I 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).

avpaderno’s picture

Status: Active » Postponed (maintainer needs more info)

I am changing the status of the report.

Anonymous’s picture

Try 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.

quixxel’s picture

Many 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?

avpaderno’s picture

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/

The 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.

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Fixed

I am setting this report as fixed.

quixxel’s picture

Status: Active » Fixed

But 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.

quixxel’s picture

Status: Fixed » Active
avpaderno’s picture

Anonymous’s picture

@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.

quixxel’s picture

Yes. Many Thanx for your great work!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.