There are errors if comment module disabled. Added case module_exists.
Patch in attached file.

CommentFileSizeAuthor
#1 user_stats_comments_disable.patch1011 bytesigor.ro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

igor.ro’s picture

Status: Active » Needs review
FileSize
1011 bytes
Liam McDermott’s picture

Thanks very much for the bug report, apologies it has taken such a long time to get to it. I'm just having a think now about the best way to deal with this, as it raises a few fundamental questions about how we do things.

In the meantime, I'm marking #1678540: SQL error - User Stats assumes Comment module is enabled. a duplicate of this issue (just for reference: there's a patch on that issue, too).

Liam McDermott’s picture

Title: sql Errors if module comment disabled » User Stats has undocumented dependency on comment.module
geoff’s picture

Issue summary: View changes

This also causes an error in the D7 version

PlayfulWolf’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Can confirm this on D7. When disabling "Comment stats" check-box it seems to work fine. I think the requirement of Comment module is not necessary if no comment stats are needed