Title: fatal error on activity permalinks
Last modified: September 1, 2023

---

# fatal error on activity permalinks

 *  [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-activity-permalinks/)
 * I’m getting a fatal error when trying to access activity permalinks. E.G. : [https://lhero.org/members/activity/161310/](https://lhero.org/members/activity/161310/)
 * here is the stack trace:
 * [01-Sep-2023 07:43:39 UTC] PHP Notice: Function is_search was called **incorrectly**.
   Conditional query tags do not work before the query is run. Before then, they
   always return false. Please see [Debugging in WordPress](https://wordpress.org/documentation/article/debugging-in-wordpress/)
   for more information. (This message was added in version 3.1.0.) in /***/wp-includes/
   functions.php on line 5905
   [01-Sep-2023 07:44:07 UTC] PHP Fatal error: Uncaught
   Error: Call to a member function get_primary() on null in /***/wp-content/plugins/
   buddypress/bp-core/bp-core-buddybar.php:577Stack trace: 0 /***wp-content/plugins/
   buddypress/bp-core/bp-core-buddybar.php(496): bp_core_create_subnav_link(Array,‘
   members’) 1 /***wp-content/plugins/buddypress/bp-core/classes/class-bp-component.
   php(560): bp_core_new_subnav_item(Array, ‘members’) 2 /***wp-content/plugins/
   buddypress/bp-xprofile/classes/class-bp-xprofile-component.php(280): BP_Component-
   >setup_nav(Array, Array) 3 /***wp-content/plugins/bp-rewrites/src/bp-xprofile/
   classes/class-xprofile-component.php(63): BP_XProfile_Component->setup_nav(Array,
   Array) 4 /***wp-includes/class-wp-hook.php(310): BP\Rewrites\XProfile_Component-
   >setup_nav(”) 5 /***wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(
   NULL, Array) 6 /***/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 7 /***/
   wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(155): do_action(‘
   bp_setup_nav’) 8 /***/wp-includes/class-wp-hook.php(310): bp_setup_nav(Object(
   WP_Query)) 9 /***/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(
   NULL, Array) 10 /***/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 11/***/
   wp-content/plugins/bp-rewrites/src/bp-core/bp-core-template-loader.php(56): do_action_ref_array(‘
   bp_parse_query’, Array) 12 /***/wp-includes/class-wp-hook.php(310): BP\Rewrites\
   bp_parse_query(Object(WP_Query)) 13 /***/wp-includes/class-wp-hook.php(334): 
   WP_Hook->apply_filters(”, Array) 14 /***l/wp-includes/plugin.php(565): WP_Hook-
   >do_action(Array) 15 /***/wp-includes/class-wp-query.php(1140): do_action_ref_array(‘
   parse_query’, Array) 16 /***/wp-includes/class-wp-query.php(1868): WP_Query->
   parse_query() 17 /***/wp-includes/class-wp-query.php(3800): WP_Query->get_posts()
   18 /***/wp-includes/class-wp.php(662): WP_Query->query(Array) 19 /***/wp-includes/
   class-wp.php(782): WP->query_posts() 20 /***/wp-includes/functions.php(1335):
   WP->main(”) 21 /***/wp-blog-header.php(16): wp() 22 /***/index.php(17): require(‘/
   home/melbour9/…’) 23 {main}
 * thrown in /***/wp-content/plugins/buddypress/bp-core/bp-core-buddybar.php on 
   line 577
 * I hope this can be fixed
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-on-activity-permalinks%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-activity-permalinks/#post-17040639)
 * Note I have tested this with only buddypress and bp rewrites active (on multisite).
   Note the behaviour also occurs on invalid member urls like: [https://lhero.org/members/-1/](https://lhero.org/members/-1/)

Viewing 1 replies (of 1 total)

The topic ‘fatal error on activity permalinks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-rewrites_ececec.svg)
 * [BP Rewrites](https://wordpress.org/plugins/bp-rewrites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-rewrites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-rewrites/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-rewrites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-rewrites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-rewrites/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-activity-permalinks/#post-17040639)
 * Status: not resolved