Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error when i try to access to a profile from another network site


  • bigbossmaher
    Participant

    @bigbossmaher

    hello
    i have 2 wp network websites with 2 different themes
    1/ is the main website where i want to show the members directory + the public bb public profile
    2/ is the place where i want users to edit they xprofile fields

    the url
    https:[site2]/members/[username]/profile/edit/group/1/ us giving error

    Warning: Attempt to read property "ID" on null in /var/www/html/wordpress/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 950
    
    Fatal error: Uncaught Error: Attempt to assign property "single_item_name" on null in /var/www/html/wordpress/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php:953 Stack trace: #0 /var/www/html/wordpress/wp-includes/class-wp-hook.php(324): BP_Members_Component->parse_query() #1 /var/www/html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /var/www/html/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action() #3 /var/www/html/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(607): do_action_ref_array() #4 /var/www/html/wordpress/wp-includes/class-wp-hook.php(324): bp_parse_query() #5 /var/www/html/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /var/www/html/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action() #7 /var/www/html/wordpress/wp-includes/class-wp-query.php(1140): do_action_ref_array() #8 /var/www/html/wordpress/wp-includes/class-wp-query.php(1868): WP_Query->parse_query() #9 /var/www/html/wordpress/wp-includes/class-wp-query.php(3824): WP_Query->get_posts() #10 /var/www/html/wordpress/wp-includes/class-wp.php(696): WP_Query->query() #11 /var/www/html/wordpress/wp-includes/class-wp.php(816): WP->query_posts() #12 /var/www/html/wordpress/wp-includes/functions.php(1336): WP->main() #13 /var/www/html/wordpress/wp-blog-header.php(16): wp() #14 /var/www/html/wordpress/index.php(17): require('...') #15 {main} thrown in /var/www/html/wordpress/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 953

    when i add define(‘BP_ROOT_BLOG’, 2); to wp config , it works but i will get the same error in
    https:root/members/[username]

    in other other words i want that both
    https:[site2]/members/[username]/profile/edit/group/1/
    and
    https:[root]/members/[username] to work

    any ideas ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar