When rebuilding the sitemap via Batch API, it hangs, although it generates an XML-sitemap correctly.
Tried to figure out the reason from the code, but the only thing I found out is that the rebuild batch set just doesn't make it to the _batch_finished, so the variable $xmlsitemap_rebuild_needed is always TRUE, which makes this "The XML sitemap data is out of sync and needs to be completely rebuilt." message appear.
Since I did not figure out the reason myself, maybe I should mention, that I the website I'm trying it on is in multi-site installation with the shared codebase, and xmlsitemap module is located in sites/all/modules. Although I think it's not the reason of this issue.

Comments

evgeny.chernyavskiy’s picture

StatusFileSize
new4.18 KB

FOrgot about the screenshot...

andrewfn’s picture

Are you running php 5.1?
If so, see: http://drupal.org/node/770044

evgeny.chernyavskiy’s picture

Nope, 5.2

anne_g’s picture

The problem was fixed for me (on php 5.1) by this commit: http://drupal.org/node/770044
Are you still getting the problem?

SWMdave’s picture

Issue tags: +xml sitemap hangs

We are running PHP 5.2.17 anyone have a fix for this? Should i try the patch for 5.1?

Anonymous’s picture

Status: Needs review » Postponed (maintainer needs more info)

What does the admin/reports/status page tell you? Do you have the PHP XML extension enabled?

rayray’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta3
Priority: Minor » Major
Status: Postponed (maintainer needs more info) » Active

Same problem here, on 6.x-2.0-beta3 on Drupal 6.20. Running PHP 5.2.6-2 with XML libraries installed.

This is a critical problem in terms of this plugin, as it won't let me get anywhere by merely running cron, it insists I have to regenerate from scratch and nothing I attempt will get me past this busy indicator. I see no related errors being reported in Drupal, and its directory is writeable.