The activity time limiter mentioned in the module's settings page is not functional. Despite choosing any time limit, the module will still record and display all activity, even duplicate entries.
The problem is in activity_insert(), where a check is attempted on an integer from a column that doesn't exist.
Attached is a patch to fix this problem.
(Note this is a problem in version 5.x-3.0-beta2 and may have already been fixed in the development version.)
| Comment | File | Size | Author |
|---|---|---|---|
| activity_time_limit_fix.patch | 960 bytes | remi |
Comments
Comment #1
jaydub commentedThe current code should work without requiring the COUNT(*) function needing an alias.
What version of PHP are you using?
You can add in this as a test:
You should see the PHP debug dump for the query object with a single object attribute of 'count' with a numeric value.
Can you do this and return the result here along with the details of your setup?
Comment #2
sirkitree commentedComment #3
minesota commentedWill test.
Comment #4
remi commentedI'm sorry I didn't reply sooner. I was working with the Activity module on a project that has been completed since a while now. I'll wait for minesota's results and see if I can test it afterwards.
Comment #5
plan9 commentedAny news on the patch? My activity streams are full of duplicate actions.
Comment #6
sirkitree commented5.x unsupported please see 6.x-2
Comment #7
josh@pixael.com commentedsame problem in 6.x-1.2
Comment #8
sirkitree commentedclosing. 1.x no longer supported.