[buddypress-trac] [BuddyPress Trac] #5862: activity comment replies problem when bp_activity_current_comment returns false
buddypress-trac
noreply at wordpress.org
Sat Sep 6 16:14:12 UTC 2014
#5862: activity comment replies problem when bp_activity_current_comment returns
false
--------------------------+-----------------------------
Reporter: shanebp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
BP 2.0.2, WP 3.9.2, Theme 2013, Plugins: just BP
Forum Reference:
[http://buddypress.org/support/topic/in-certain-cases-comments-are-not-
showing-only-replied-in-my-groups/]
Steps to Recreate:
1. Create or join a private group
2. Create an update in that group
3. Go the main activity stream, select 'My Groups' and comment on that
update
4. The result is that only 'replied' appears.
5. Refresh the page - the comment now appears
If debug is on, then Step 4 will show:
'Notice: Trying to get property of non-object in .../wp-
content/plugins/buddypress/bp-blogs/bp-blogs-activity.php on line 734'
The problem seems to be that in:
{{{
bp-blogs-activity.php > bp_blogs_setup_comment_loop_globals_on_ajax()
$comment = bp_activity_current_comment();
}}}
$comment is false and is therefore a non-object.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5862>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list