[buddypress-trac] [BuddyPress Trac] #8320: 404 error for the next page after loading any BuddyPress page

buddypress-trac noreply at wordpress.org
Wed May 22 07:18:59 UTC 2024


#8320: 404 error for the next page after loading any BuddyPress page
--------------------------+------------------------------
 Reporter:  dmcsupport    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  Awaiting Review
Component:  Core          |     Version:  6.0.0
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by dncsupport):

 Replying to [comment:10 gujjarhere]:
 > This code
 > {{{
 > function bp_fix_404_issue() {
 >     if ( ! is_buddypress() && $GLOBALS['wp_query']->is_404() ) {
 >         status_header( 200 );
 >     }
 > }
 > add_action( 'wp', 'bp_fix_404_issue' );
 > }}}

 I check and both of them work. But can you suggest with what code, we
 should go?
 >
 > and
 >
 >
 > {{{
 > if ( bp_is_blog_page() ) {
 >     $wp_rewrite->use_verbose_page_rules = true;
 > } else {
 >     $wp_rewrite->use_verbose_page_rules = false;
 > }
 >
 > }}}
 >
 > Both will work for the fix of BuddyPress.

 I have checked and both of them are working. What is your sugggestion what
 will be better?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8320#comment:14>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list