hi, i know that this is already a known item (i believe) but activity appears to clear itself out constantly, both while logged in and moving about as well as when logging out and back in (resets to zero recent activity)

this is only happening on my demo test site in which i'm the only user, and the site is in offline mode (not sure how this impacts activity, but should it matter?)

any insights would be appreciated, happy to also test any current versions or tweaks for you

Comments

jaydub’s picture

Do you have a setting for the 'Activity log purge' from the Activity
settings page or is it the default value of 0 seconds?

zilla’s picture

i have it set to 26 weeks - won't it get huge if left to 'forever'? also set to 30 second intervals (and 50 per page for full page and 20 on user profile)

also, are there dependencies related to things like statistics, system log, core drupal log stuff and so on (as in, if i have database logging turned off, will it screw this up? just changed that today to 'off' though seems unrelated...i think...)

jaydub’s picture

well how big the activity tables will get depends on traffic. For some sites, a half-year
of records wouldn't be that big but for others, a few days would be big.

There are no other dependencies related to the pruning the activity log. I'll just have
to take another look at the code and do some testing.

Do you have access to your database so that you could verify that your records
are not only not showing but in fact have also been deleted?

zilla’s picture

i have access to the database but don't know exactly where to look - if you can offer some clear instructions on what table/thing to look at, then i'll certainly pop in and look it over...

btw, i've also got this block enabled that shows popular content, recently viewed content and new content (this is a popular views blocks that i see on a lot of sites) - could it be that whatever it's doign to show 'recently viewed' is conflicting?

zilla’s picture

hmm....latest version of activity seems to resolve this, including leaving it in place when i log out and back in! fixed? perhaps just a glitch on my end? who knows...

jaydub’s picture

well there's a bug with the activity log purge that I have committed
a fix to just now but if your initial problem is not appearing now
then great!

szy’s picture

Hi there,

I have the same, with the latest 5.x-4.x-dev version. The same
as observed here blank 'new' entry of vote (from Fivestar module),
and the same empty log in the next browser session - *without*
logging out, being logged in with uid=1.

What can be important for you: 'activity' table was cleared,
but 'activity_history' still kept activity records.

Szy.

PS. I really like this module.

jaydub’s picture

#7 when did you download the 5.4-x-dev snapshot? There was a change added on 10/07 affecting the activity log flushing so it's possible that fix would address your issue.

jaydub’s picture

The latest snapshot dated (should be dated 10/30) has a fix that should get voting working OK now. Please try it out.

zilla’s picture

Status: Active » Fixed

i actually stopped seeing this issue in the last dev release (before 10/30 actually)

marking as fixed unless somebody else sees this...

szy’s picture

Still no changes. The activity list was reset twice in the last three hours.

Now activity_history table has over the 500 records, but activity table
only three.

Szy.

zilla’s picture

szy - something to quickly try: go to module config and change the time it saves things, like to 26 weeks or whatever option (just choose something different from what's there, default, whatever it is) - now quickly click to configure each contrib module but change nothing, simply open them and click save and then do some stuff and check out activity

also, try viewing activity as a non-admin user and see how it shows - i've found a couple of oddities that relate only to usage by admin (eg showing my activity under my friends only happens when i'm admin, not for other users)

szy’s picture

> szy - something to quickly try: [...]

Done. Let we see... :]

Szy.

szy’s picture

Sorry, with user uid=1 it is still broken.

Unfortunately, I am not able to check it with non admin role...

Szy.

zilla’s picture

@szy - could you create a test user account or two? you can delete them later on...with devel module you can also quickly 'switch users' while logged in as admin

szy’s picture

Status: Fixed » Active

Status changed, as it's still broken for at least user uid=1.

Szy.

jaydub’s picture

@szy what activity contrib modules do you have enabled?

I most certainly don't see any issues with uid 1! quite odd...I'm wondering if uninstalling all the activity modules completely and reinstalling might change things. Start with a clean slate as it were.

@szy & @zilla I recommend you use the masquerade module to switch users. The switch users with the devel module has one major flaw in that once you switch you can't switch back and so have to logoff in order to get back to uid 1 user...

szy’s picture

Activity history, Comment activity, Node activity, Voting activity - all possible for me.

I can't tell you anything about non-admin user, because I need this role to work, sorry :/

Reinstall - ok, in a minute. I hope it will repair it, I will let you know.

Thanks,
Szy.

szy’s picture

No change after reinstallation, resaving all the options, blocks, etc.
- activity has been flushed again.

And voting doesn't work too.

Time to say goodbye for me... :/

Thanks for your work and help,
Szy.

jaydub’s picture

Ok I think I fixed this problem (the flushing of activity table). Please try a new dev snapshot.

szy’s picture

I have upgraded to 6th Drupal - yes, it works correctly now. What about 5th
version - can't tell you.

Thank you, jaydub :]

Szy.

jaydub’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.