Closing as a duplicate of #3412 since the TicketStatsMacro is being merged into the TracTicketStatsPlugin. However, there are other possibilities as to the cause of the problem. For one, the plugin doesn't utilize the Trac database API correctly, so you are likely to encounter problems when using a database other than SQLite.

Add Comment

This ticket has been modified since you started editing. You should review the
other modifications which have been appended above,
and any conflicts shown in the preview below.
You can nevertheless proceed and submit your changes if you wish so.