Opened 12 years ago
Closed 11 years ago
#4924 closed defect (bug) (no action required)
Groups admin list - data display issues
Reported by: | slaFFik | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.7 |
Component: | Administration | Keywords: | reporter-feedback |
Cc: |
Description
Hi,
In admin area (under wp-admin) in a list of groups (on admin.php?page=bp-groups) Last activity field sometimes has wrong data:
Change History (6)
#2
@
12 years ago
Line 1321:
$last_active = groups_get_groupmeta( $item['id'], 'last_activity' );
$last_active has this structure:
Array ( [0] => 2013-03-02 09:58:17 [1] => 2013-03-02 09:58:17 [2] => 2013-03-02 09:58:17 )
And I can't name any plugin that caused this.
#3
@
12 years ago
I'd suggest that you grep through your plugins for every one that is doing something like
groups_update_groupmeta( $group_id, 'last_activity', $foo );
One of the plugins (maybe BP itself, though I doubt it) *must* be doing something wrong.
Note: See
TracTickets for help on using
tickets.
What other plugins are you running (or have you run in the past) on the site? last_activity data should never be stored as an array, and it's possible that some other plugin is doing it wrong. Can you do a
var_dump()
of the problematic data to show us the structure of the array? It might give us a hint as to the problem. Here's where we pull it up: https://buddypress.trac.wordpress.org/browser/tags/1.7/bp-groups/bp-groups-admin.php#L1315