BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Privacy buttons setting not working after changing navigation tab

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #53955
    @maddish

    Hi,

    I’ve a problem with the privacy button that appears on each item in the activity stream.
    It works perfectly when I click on each one of them, but if I switch to another tab, let’s say for example mentions, and then I go back again to All Members, the privacy buttons stop working, and the form_buddyboss-wall-privacy form does not appear.
    If I refresh the page then it works again, till I switch to another tab.

    I ‘ve checked it many many times in three different installations, one of them with only buddypress and buddywall plugins installed and with the default wordpress theme on my local machine.

    The two others installations are on two different servers.

    In all cases I have the same behaviour.
    There is no javascript error in the console.
    No difference in the html classes.

    Do you have any idea about what’s going on?

    BTW: if I activate debug, I get this notice, after posting an update :
    Notice: Undefined property: stdClass::$id in /var/www/html/uclg.lan/wp-content/plugins/buddyboss-wall/includes/wall-hooks.php on line 179

    and this one on the servers installation:
    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /srv/data/web/vhosts/uclg.inauditas.com/htdocs/wp-includes/functions.php on line 3622

    (I think that I saw some another user advising about these notices)

    Thank you for your support

    Maddish

    Answers

    #54017
    @vapvarun

    Hi @maddish, Sorry for the inconvenience
    Seems Wall plugin js have some conflict with BuddyPress js
    I have notified developers it will be fixed shortly
    Regards
    Varun Dubey

    #54050
    @maddish

    ok, please can you notify me when it eill be fixed?

    Regards
    Maddish

    #54098
    @vapvarun

    sure, i will let you know

    #54240
    @maddish

    Hi @vapvarun,
    I could solve it.

    The problem is that the form is loaded with an add_action into wp_footer in file includes/wall-privacy.php line 385
    add_action(‘wp_footer’,’buddyboss_wall_editing_privacy_html’);

    and removed from there the first time a user clicks on the privacy button settings in a post item, to make it appear in the right place .
    So when you switch tab, there is no form in the DOM with the id form_buddyboss-wall-privacy to be displayed.
    To avoid that I put these lines in functions.php
    remove_action(‘wp_footer’,’buddyboss_wall_editing_privacy_html’);
    add_action(‘bp_after_activity_loop’,’buddyboss_wall_editing_privacy_html’);

    It seems to work. I’m Checking for possible bugs, but I think it’s ok

    #54388
    @vapvarun

    Hi @maddish, Thanks for the input.
    We will include these in our next update
    Notices are also fixed
    Regards

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Privacy buttons setting not working after changing navigation tab’ is closed to new replies.