The bug resides in the usage of the site_offline setting which was migrated to maintenance_mode in Drupal 7 (see update.inc).

function xmlsitemap_engines_can_submit() {
  // Skip if the site is offline since search engines will not be able to
  // access the site's content.
  if (variable_get('site_offline', 0)) {
    return FALSE;
  }

  if (!variable_get('xmlsitemap_engines_engines', array()) && !variable_get('xmlsitemap_engines_custom_urls', '')) {
    return FALSE;
  }

  return TRUE;
}

See similar issue at Redirect module #1363630: Redirect uses site_offline variable which isnt used by Drupal 7 anymore

Comments

wojtha’s picture

Status: Active » Needs review
StatusFileSize
new550 bytes

Status: Needs review » Needs work

The last submitted patch, 1363686-1_site_offline.patch, failed testing.

wojtha’s picture

Status: Needs work » Needs review
StatusFileSize
new558 bytes
Anonymous’s picture

Status: Needs review » Needs work

We should also check defined('MAINTENANCE_MODE'); see http://api.drupal.org/api/search/7/MAINTENANCE_MODE

wojtha’s picture

Status: Needs work » Needs review
StatusFileSize
new589 bytes

Ok

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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