as far as I know buddypress requires bbpress as a forum if you want your social network to have a forum.
BBpress is just a forum, so if you want more than that, then you might need buddypress.
Okay, great work!
So, do I need to install bbPress separately.I assumed perhaps wrongly that BuddyPress also is a forum?
Hello,
How can I make my bbpress forum private? Not available to the public. Only to registered users with a specific role on the website?
I’ve tried so many things.
Thank you
ok, I am not sure what is happening
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
bbpress is the forum part of buddypress.
I don’t use buddypress on any of my sites – nothing wrong with it, but my sites are just forum based, and I use ‘bbp private groups’ (which I wrote 🙂 ) to run separate forums where I need to.
Thank you, and just one more question..
Am I right in thinking I need bbPress for the forum part of BuddyPress?
I am currently looking at using groups for topics but it is not quite the same.
I’ll do some digging online as well but just wanted to ask your opinion.
Many thanks,
Ollie
I think this is the problem? … don’t recall adding it but assume it is safe to remove as I am removing bbPress for now at least, what do you think?
add_filter(‘body_class’, ‘modify_body_classes’, 20);
function modify_body_classes( $classes ) {
if( is_bbpress() ) {
$remove_classes = array(‘et_right_sidebar’, ‘et_left_sidebar’, ‘et_includes_sidebar’);
foreach( $classes as $key => $value ) {
if ( in_array( $value, $remove_classes ) ) unset( $classes[$key] );
}
$classes[] = ‘et_full_width_page’;
}
return $classes;
}
ok, it is a function in your child theme’s function file – line 28
Call to undefined function is_bbpress() in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi-Child-Theme/functions.php:28
So who had created that file? as either they or you will need to amend whatever that part of the file is trying to do.
Hi Robin,
Thanks for sticking with me here. I have error logs on the server so I tried again to disable bbpress and below is the log. I disabled and deleted Divi Mega Pro as I realised I didn’t use that in the end but it didn’t solve it.
Let me know what you think.
Thanks,
Ollie
[Wed Feb 02 08:22:26.842483 2022] [proxy_fcgi:error] [pid 3110766] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php
[Wed Feb 02 08:22:33.374828 2022] [proxy_fcgi:error] [pid 3109704] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_bbpress() in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi-Child-Theme/functions.php:28\nStack trace:\n#0 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/class-wp-hook.php(309): modify_body_classes()\n#1 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(836): apply_filters()\n#3 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(595): get_body_class()\n#4 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/header.php(29): body_class()\n#5 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(770): require_once(‘…’)\n#6 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(716): load_template()\n#7 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/in…’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php?plugin_status=all&paged=1&s
[Wed Feb 02 08:22:38.838643 2022] [proxy_fcgi:error] [pid 3133583] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php?plugin_status=all&paged=1&s
[Wed Feb 02 08:24:39.400052 2022] [proxy_fcgi:error] [pid 3109701] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined variable $force in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/plugins/divi-mega-pro/class.divi-mega-pro.admin.core.php on line 208’, referer: https://wbc1.otiscreative.co.uk/wp-admin/plugins.php
[Wed Feb 02 08:25:12.226569 2022] [proxy_fcgi:error] [pid 3110766] [client 2a00:23c6:6f4f:d001:20eb:9d22:835a:c06c:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function is_bbpress() in /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi-Child-Theme/functions.php:28\nStack trace:\n#0 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/class-wp-hook.php(309): modify_body_classes()\n#1 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(836): apply_filters()\n#3 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/post-template.php(595): get_body_class()\n#4 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/header.php(29): body_class()\n#5 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(770): require_once(‘…’)\n#6 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-includes/template.php(716): load_template()\n#7 /home/storm/sites/wbc1-otiscreative-co-uk/public/wp-content/themes/Divi/in…’
ok. You should not get an error when deactivating bbpress, so something is causing this outside of bbpress itself.
You say you get a critical error – I need to know exactly what that says. You might need to turn n debug to get this.
Wordpress doesn’t make this easy !!
https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/
so if you decativate ‘PMPro – bbPress Add On’ first and then deactivate bbpress – does that work?
I can deactivate that no problem
When I deactivate bbPress is when i get a critical error, as soon as activate all is fine again.
ok, so what bbpress related other plugins do you have if any?
@robin-w, I think bbPress does just what you’re saying. But (if I understand things correctly) BuddyPress will change the WP “display name” (and/or “nickname” ???) when you update your name in the BP profile — If “synching” is on. I use BP, but I actually have synching OFF, so I’m not all that familiar with the details.
BTW, the same goes for email. You can change that in the BP profile too, and (if allowed) it updates it in WordPress.
@mike80222 – thanks -interesting – I thought bbpress just pulled the name from the database user nickname field, maybe it doesn’t or that plugin doesn’t actually change that value
bbpress just uses the wordpress display name, so any wordpress plugin that changes this should work eg
Easy Username Updater
it maybe a dependant plugin issue? ie an additional plugin which needs bbpress
so the standard fault finding applies viz…
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and then deactivate bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
Hi there,
I have been testing bbPress for my site but I am not sure it is the right fit.
And so, I disable it and it causes a critical error in WordPress. I enable it again and the site comes back.
I am using WP 5.9, DIVI theme 4.14.7
Site: https://wbc1.otiscreative.co.uk/
I would like to test BuddyPress but I don’t want to do this while I have this issue with bbPress.
Let me know if you need any further info.
Many thanks,
Ollie
I’m creating a new site, which will have a BuddyPress Group for each geographic area, such as city, county, state, nation. They would be nested, and each would have multiple BBPress Forums, such as for neighborhoods within a city. I don’t really understand the purpose of giving Forums numbers: is it just to create a display order? I need advice on creating a numbering system for the Forums that will make sense, so I don’t have to re-do it later on. Thanks.
Thank you, Galt! Almost 4 years later, this Elementor-Bbpress post type conflict still remains unresolved but your solution provides a good fix!
#Grateful
I’m having the same issue…
I’ve created a page with the URL ‘forums’ which matches the setting in BBPress.
But the form still doesn’t show on the forums page?
Hi!
To anyone in need of a login menu item with both user avatar and Link to the Bbpress dashboard in 2022, here’s my version of @robkk ‘s code :
add_filter('wp_nav_menu_items','rk_bbp_menu_profile_link', 10, 2);
function rk_bbp_menu_profile_link( $items, $args ) {
if( is_user_logged_in() && $args->theme_location == 'menu-1') {
$current_user = wp_get_current_user();
$user = $current_user->user_login ;
$avatar = get_avatar( $current_user->ID, 64 );
$items .= '<li class="NavBarLogin"><a href="/forums/users/' . $user . '/edit">' . $avatar . 'Mon compte</a></li>';
}
return $items;
}
Halo,
there is a fixed permalink for the forum in the forum settings. I only can change the last part of the name on bbpress. But to display the forum on my pages I need the same link name for my pages.
nichtvovndieserwelt.org/forums/forum/verbuendeten-forum is the name on the forumssettings. But If I try to create a page with this url address it changes automatically in the settings to nichtvondieserwelt.org/forums-forum-verbuendeten-forum. So there appears no forum on the different page because it has different addresse. Again how can I make display the forum on a page and make buttons to link to them if I can not choose my own address in BOTH cases????
Please help
I’ve got BuddyPress set up so that each group has one bbPress forum. I’d like to show a ‘Subscribe’ button in the group header on the group’s homepage which works exactly the same as the Subscribe button on the group’s forum page.
I’m using the code below to show the button, but it reloads the page instead of doing an AJAX call, and it doesn’t subscribe/unsubscribe the user from the group’s forum.
What do I need to do to get this working? The correct forum ID is being passed in the arguments.
$forum_ids = bbp_get_group_forum_ids();
if ( $forum_ids ) {
$sub_link_args = [ 'object_id' => reset( $forum_ids ) ];
bbp_forum_subscription_link( $sub_link_args );
}