There is a little bug. The module contains the following code:

function _xmlsitemap_user_frontpage() {
  static $uid;
  if (!isset($uid)) {
    $uid = 0;
    $frontpage = explode('/', drupal_get_normal_path(variable_get('site_frontpage', 'node')));
    if (count($frontpage == 2) && $frontpage[0] == 'user' && is_numeric($frontpage[1])) {
      $uid = $frontpage[1];
    }
  }
  return $uid;
}

The line

    if (count($frontpage == 2) && $frontpage[0] == 'user' && is_numeric($frontpage[1])) {

should be written

    if (count($frontpage) == 2 && $frontpage[0] == 'user' && is_numeric($frontpage[1])) {
CommentFileSizeAuthor
#1 xmlsitemap-284903-jmoy.patch1.47 KBjmoy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jmoy’s picture

Component: xmlsitemap_node » xmlsitemap
Status: Active » Needs review
FileSize
1.47 KB

The error is in both xmlsitemap_user and xmlsitemap_term. Attaching patch.

apaderno’s picture

Status: Needs review » Reviewed & tested by the community
apaderno’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Assigned: Unassigned » apaderno
Status: Reviewed & tested by the community » Fixed

Fixed in 6.x-1.x-dev.

Status: Fixed » Closed (fixed)

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