No last_activity even though activities have been logged for members
-
Out of about 6000 members, we have around 1000 who have no entry with the type
last_activity
in thewp_bp_activity
table.I think some will be simply members who have yet to log in, but it doesn’t seem to be all of them.
For instance, if I search the data for members who have no
last_activity
but do have an entry with typeupdated_profile
, I find over 700 members.As far as I can tell, the function
bp_core_record_activity()
is hooked towp_head
, and should be updatinglast_activity
every 5 minutes.There being no
last_activity
definitely seems to be a bug of some kind. If I edit the Extended Profile in admin of a member with nolast_activity
, ‘Last active’ in the ‘Member’s stats’ box shows the current date/time. This seems to be because in\BP_Members_Admin::user_admin_stats_metabox()
, the account is activated (so$last_active
doesn’t get assigned the registration date), butbp_get_user_last_activity()
returns nothing. Sostrtotime( $last_active )
returns the current date/time.Any ideas as to how this might have happened?
I wondered about the ‘Repair member “last activity” data’ option under Tools > BuddyPress, but I ran this on my local installation and it doubled the number of members without
last_activity
, so I’m not sure what that’s about.
- You must be logged in to reply to this topic.