BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Privacy buttons setting not working after changing navigation tab
Tagged: privacy settings
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 11 months ago by Anonymous.
Question
December 7, 2015 at 6:38 pm #53955@maddishHi,
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 179and 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
December 8, 2015 at 2:27 pm #54017@
AnonymousHi @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 DubeyDecember 9, 2015 at 4:39 am #54050@maddishok, please can you notify me when it eill be fixed?
Regards
MaddishDecember 9, 2015 at 1:55 pm #54098@
Anonymoussure, i will let you know
December 11, 2015 at 8:41 am #54240@maddishHi @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
December 14, 2015 at 9:05 am #54388@
AnonymousHi @maddish, Thanks for the input.
We will include these in our next update
Notices are also fixed
Regards
- The question ‘Privacy buttons setting not working after changing navigation tab’ is closed to new replies.