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

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

Files: 
CommentFileSizeAuthor
#5 1363686-5_site_offline.patch589 byteswojtha
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]
#3 1363686-3_site_offline.patch558 byteswojtha
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]
#1 1363686-1_site_offline.patch550 byteswojtha
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1363686-1_site_offline.patch. See the log in the details link for more information.
[ View ]

Comments

wojtha’s picture

Status:Active» Needs review
StatusFileSize
new550 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1363686-1_site_offline.patch. See the log in the details link for more information.
[ View ]

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
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]
earnie’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
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]

Ok

Dave Reid’s picture

Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

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