I get this when viewing sitemap.xml as an anonymous user (since I get a 403 as admin, which is apparently by design).

Comments

webchick’s picture

And indeed, this function seems to not be defined anywhere. Well, that's a problem. :)

webchick’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

I'm going to go out on a limb and assume this is what these should be changed to.

I can't confirm that it fixes it because my computer is currently smouldering trying to load that page, but it at least didn't die right away with a fatal error. :)

avpaderno’s picture

The function has been renamed xmlsitemap_helper_cache_id(); the code should have been changed as well to call the correct function (but maybe the time frame given to me to use the PC was not enough to do a perfect work :-)).

avpaderno’s picture

Title: Fatal error: Call to undefined function _xmlsitemap_cache_id() in xmlsitemap.module on line 233 » Call to undefined function _xmlsitemap_cache_id()
Status: Needs review » Active

The patch correctly corrects the problem.

manoloka’s picture

Just uploaded the latest and I also get the same

Fatal error: Call to undefined function _xmlsitemap_cache_id() in /home/mysite/public_html/sites/all/modules/xmlsitemap/xmlsitemap/xmlsitemap.module on line 233

avpaderno’s picture

Status: Active » Fixed

I strangely remember I have already replaced any occurrence of _xmlsitemap_cache_id(), but it seems I have not saved the file after doing that.

The code has been fixed in CVS.
Thanks to webchick for the report.

Status: Fixed » Closed (fixed)

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