Opened 4 years ago
Last modified 23 hours ago
#8320 new defect (bug)
404 error for the next page after loading any BuddyPress page
Reported by: | dmcsupport | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | high |
Severity: | critical | Version: | 6.0.0 |
Component: | Core | Keywords: | |
Cc: | support@…, dmcsupport |
Description
Random 404 pages appearing after the BuddyPress page loads.
The pattern is always the same:
– BuddyPress page: page displayed correctly
– Next page (not BP): throws a 404
Similar issue has been reported a few years back. Please find the link here - https://buddypress.org/support/topic/is_404-triggered-on-every-buddypress-page/
There is also a ticket explaining similar bug here - https://buddypress.trac.wordpress.org/ticket/6527#comment:4
Is there a fix of this? Please advise.
Change History (4)
#2
@
3 weeks ago
Fixed in [6527]
global $wp_query; // Start: Compatibiltiy fix for BuddyPress members and groups if ( function_exists( 'bp_is_user' ) && function_exists( 'bp_is_group' ) ) { if ( bp_is_user() ) { $bp_content_slug = $GLOBALS['bp']->pages->members->slug; } elseif ( bp_is_group() ) { $bp_content_slug = $GLOBALS['bp']->pages->groups->slug; } if ( !empty( $bp_content_slug ) ) { $wp_query = new WP_Query( array( 'pagename' => $bp_content_slug ) ); } }
#3
@
9 days ago
#4
@
23 hours ago
Andre Hakkak Net Worth, a name synonymous with entrepreneurial prowess and philanthropic endeavors, has carved a niche for himself in the realms of business and social responsibility. With a humble beginning and an indomitable spirit, Hakkak’s journey is a testament to perseverance and vision.https://mysterioushub.co.uk/andre-hakkak-net-worth/
So the cause of this 404 error the line below in the file /wp-content/plugins/buddypress/bp-core/bp-core-catchuri.php
$wp_rewrite->use_verbose_page_rules = false;
This line can be wrapped around with IF statement to check if the page is BP or non BP page.