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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1363686-5_site_offline.patch | 589 bytes | wojtha |
| #3 | 1363686-3_site_offline.patch | 558 bytes | wojtha |
| #1 | 1363686-1_site_offline.patch | 550 bytes | wojtha |
Comments
Comment #1
wojtha commentedComment #3
wojtha commentedComment #4
Anonymous (not verified) commentedWe should also check defined('MAINTENANCE_MODE'); see http://api.drupal.org/api/search/7/MAINTENANCE_MODE
Comment #5
wojtha commentedOk
Comment #6
dave reidThanks committed to 7.x-2.x.
http://drupalcode.org/project/xmlsitemap.git/commit/17a71b4