BuddyDev

Search

[Resolved] Troubleshooting my site


  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25161

    Hi Brajesh,

    Posting private message for you to check something please.

    Thanks,
    Mike


  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25162
    This reply has been marked as private.

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25165
    This reply has been marked as private.

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25167
    This reply has been marked as private.

  • Keymaster
    (BuddyDev Team)
    Posts: 13884
    Brajesh Singh on #25172
    This reply has been marked as private.

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25173

    Thank you! My site is functioning well now apart from some small things like that. I traced the problem plugin, it wasn’t easy to find… and it is only a single setting in the plugin I have to avoid. Thanks again.


  • Keymaster
    (BuddyDev Team)
    Posts: 13884
    Brajesh Singh on #25175

    Hi Mike,
    Thank you for the update. I am glad you found it.

    Regards
    Brajesh


  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #28329

    PHP errors (notification) for core avatars is fixed here:

    https://buddypress.trac.wordpress.org/attachment/ticket/8177/bp-core-avatars.patch

    This will help prevent your log from filling with a huge number of entries each day.


  • Keymaster
    (BuddyDev Team)
    Posts: 13884
    Brajesh Singh on #28340

    Hi Mike,
    Welcome back.

    Thank you for the update. It’s good to know that it is fixed.

    Regards
    Brajesh


  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #28400

    Hi Brajesh,

    Thank you I hope you and family are well.

    I have the following code in my child theme and I’m trying to eliminate php notices (Trying to get property of non-object) by reference to the logs.

    
    /**
     * Sync Buddypress Name to Username
     */
    
    function my_member_username() {
    	global $members_template;
    
    	return $members_template->member->user_login;
    }
    add_filter( 'bp_member_name' , 'my_member_username' );
    
    function my_bp_displayed_user_fullname() {
    	global $bp;
    
    	return $bp->displayed_user->userdata->user_login;
    }
    add_filter( 'bp_displayed_user_fullname' , 'my_bp_displayed_user_fullname' );
    

    The line at issue is (line 54):

    
    	return $bp->displayed_user->userdata->user_login;
    

    Here are the pointers:

    
    wp-content/themes/Avada-child/functions.php:54
    my_bp_displayed_user_fullname()
    wp-includes/class-wp-hook.php:288
    apply_filters('bp_displayed_user_fullname')
    wp-content/plugins/buddypress/bp-members/bp-members-template.php:1885
    bp_get_displayed_user_fullname()
    wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:434
    BP_Activity_Component->setup_title()
    wp-includes/class-wp-hook.php:288
    do_action('bp_setup_title')
    wp-content/plugins/buddypress/bp-core/bp-core-dependency.php:174
    bp_setup_title()
    wp-includes/class-wp-hook.php:288
    do_action('bp_init')
    wp-content/plugins/buddypress/bp-core/bp-core-dependency.php:252
    bp_init()
    wp-includes/class-wp-hook.php:288
    do_action('init')
    wp-settings.php:523
    

    Without going to much trouble, do you have any ideas that might help?

    Many thanks,
    Mike

The topic ‘ [Resolved] Troubleshooting my site’ is closed to new replies.

This topic is: resolved
Subscribe