[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 06:15:32 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 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' );
 }}}

 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.

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


More information about the buddypress-trac mailing list