Quote Originally Posted by a_berezin View Post
Hi,

Quick bug fix:
File includes/modules/pages/sitemapxml/sitemapxml_products.php
Find
Code:
mysqli_free_result($products->resource);
Replace by
Code:
//mysqli_free_result($products->resource);
Could go a little further with moving a few lines into the code bracket:

Changing:
Code:
  $sitemapXML->SitemapClose();
}
mysqli_free_result($products->resource);
unset($products);
unset($catsArray);
to:
Code:
  $sitemapXML->SitemapClose();
  mysqli_free_result($products->resource);
  unset($products);
}
unset($catsArray);
The variable $products is only set within that if statement group and therefore regarding the mysqli_free_result there wouldn't be anything to free if $sitemapXML->SitemapOpen('products', $last_date) returns false.