This question may be related to a resolved thread.
This issue persists in v2.2.1 - Build: date 20110705. Turning off “Online User Tracking” shuts down <lastmod>{exp:stats}{last_entry_date format="{DATE_W3C}”}{/exp:stats}</lastmod> in /sitemap.xml
Please replicate. Thanks!
Also,
Yep, I can replicate this and we’ll get a fix into the next release. For now you can change line 147 (not 177) of system/expressionengine/modules/stats/mod.stats.php to
if ($this->EE->stats->statdata('current_names') AND count($this->EE->stats->statdata('current_names') > 0))does not resolve the isssue for me.