Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

#4924 closed defect (bug) (no action required)

Groups admin list - data display issues

Reported by: slaffik's profile 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:

http://screencast.com/t/6mKwxGaK6xJ

Change History (6)

#1 @boonebgorges
11 years ago

  • Keywords reporter-feedback added

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

#2 @slaFFik
11 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.

Last edited 11 years ago by slaFFik (previous) (diff)

#3 @boonebgorges
11 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.

#4 @DJPaul
11 years ago

slaFFik - did you ever find anything out?

#5 @slaFFik
11 years ago

I can't replicate it any more.
Dunno where the problem was, but currently it's ok.

#6 @boonebgorges
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Sounds good. Closing for now, but please reopen if you discover the issue and it's BP's fault.

Note: See TracTickets for help on using tickets.