Skip to:

Opened 3 years ago

Last modified 5 months ago

#8565 new defect (bug)

Pagination not working on member profile topics/replies/engagements lists

Reported by: phy9pas's profile phy9pas Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 9.1.1
Component: Core Keywords: reporter-feedback


I’ve set up a fresh install of the latest wordpress, bbpress and buddypress:
WordPress 5.8.1
bbpress 2.6.6
BuddyPress 9.1.1

If I view my own user profile, the pagination of the topics, replies, engagements etc works as expected e.g.

However if I view another user’s profile
When I click on page 2 of the pagination in any of these sections it take me to the wrong url:

You can see it’s missing out the “/forums/engagements/” part of the url.

I have tried flushing permalinks. This is using the deafult twentytwentyone theme with no other plugins installed.

Change History (2)

#1 @imath
3 years ago

  • Keywords reporter-feedback added

Thanks for your feedback, I believe this issue has been already reported. Could you check if #8237 is a duplicate?

My intuition is, it's a bbPress issue. But I'll give it a another look.

#2 @jgasba
5 months ago

The bug is still running and has it too it seems.

I added details and links to weave together some issues and comments

To anyone stumbling around here, to fix this from outside bbPress I've personaly used:

add_filter('bbp_get_replies_pagination_base', 'fix_replies_pagination_links', 10, 2);
function fix_replies_pagination_links( $base, $topic_id ) {
    if ( bp_is_user() ) {
        $base = bbp_get_user_replies_created_url( bbp_get_displayed_user_id() );
        $base = trailingslashit( $base ) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' );    
    return $base;

add_filter('bbp_get_topics_pagination_base', 'fix_topics_pagination_links', 10, 2);
function fix_topics_pagination_links( $base, $topic_id ) {
    if ( bp_is_user() ) {
        $base = bbp_get_user_topics_created_url( bbp_get_displayed_user_id() );
        $base = trailingslashit( $base ) . user_trailingslashit( bbp_get_paged_slug() . '/%#%/' );    
    return $base;

Not sure how that could be implemented in BuddyPress to prevent breaking. I'm having a hard time understanding if this issue is affecting all BuddyPress installs or only some specific configuration. I've tried multiple setups and plugins combos and always have this pagination links problem though 🤔

Note: See TracTickets for help on using tickets.