4
The reason that happened is the statistics module has a commonly used variable that collides with one used by XoopsGallery.
You might try patching the included file by wrapping it with something like this:
function AccumulateStatistics() {
[original include file here]
}
AccumulateStatistics();
That would change the scope of the variables used in the include file to not collide with page-level variables XoopsGallery or any other module uses.
Let me know if it works. I checked out the module breifly because coreace was trying to use the same thing. Another thing I noticed with that module is that it looks like it won't record any statistics on pages that aren't resulting from a POST query.
[edit] I had this backwards, posting to the database is correct in that include file.
If you could, please confirm both that the suggested patch helps and the statistics do only seem to update on post queries and I'll send the suggestions on to the module author.
P.S. The update Luxus mentioed that I am developing is complete--you can get it at
http://www.sciox.org/xoops/, the announcement should be posted here shortly.