Why does clicking on the user name (here and on my own forum using BP and bbPress) take me to the Edit Profile page instead of the View Profile page, and how do I change it?
WP Version 5.9
BP Version 9.2.0
bbPress Version 2.6.9
bbp style pack Version Version 4.9.1
Site: http://www.laceioli.org
Put this in the custom css part of your theme
#bbpress-forums #bbp-user-wrapper h2.entry-title {
display: none;
}
I’ve just taken a look.
bbpress uses the wordpress ‘untrash’ function to restore topics and replies.
That wordpress function includes a note saying
* By default posts that are restored will be assigned a status of 'draft'.
* Prior to WordPress 5.6.0, restored posts were always assigned their original status.
so this was a change in WordPress 5.6
However WordPress helpfully includes a hook we can link to to restore the previous status automatically
add_filter ('wp_untrash_post_status', 'wp_untrash_post_set_previous_status' , 10 , 3) ;
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
Hi @markusb,
If I understand your issue well, I think this other topic could help you.
Hello there,
I just discovered a bug on bbpress (v2.6.9) : when you :
1) trash a reply,
2) then restore it,
3) that reply is definitely trashed instead of being restored
I reproduced this issue with wordpress default theme with no other plugins activated.
Did you noticed that also ?
Best regards
ok, so which method in
Step by step guide to setting up a bbPress forum – Part 1
item 3
are you using to display this page?
ok this is theme/page/wordpress setup rather than bbpress – if you look at the HTML then bbpress starts below this with
<div id="bbpress-forums" class="bbpress-wrapper">
above this – it is not bbpress doing it.
I can only suggest standard fault finding 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 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
My site with wordpress 5.9, bbpress 2.6.9 and style pack 4.9.1 (which has the bug fix automatically in it) with the visual editor turned on – all works fine
sorry, my brain was being fried – Visual is not standard but text is.
bbpress 2.6.7 and after has a bug
try and add this fix to your functions file
if( !function_exists( 'bbpress_browser_supports_js' ) ){
function bbpress_browser_supports_js() {
echo '<script>document.body.classList.remove("no-js");</script>';
}
add_action( 'wp_footer', 'bbpress_browser_supports_js' );
}
Thats a long story @robin-w.
I use “Advanced Editor Tools” to the main TinyMCE tool bar.
I have my own plugin that adds a couple of tweaks to the toolbar.
I have TinyMCE Config but that is for the TinyMCE behaviour.
I think I have some custom hooks too.
// ==============================================================
// Tweak MCE Toolbars (bbPress Editor)
function ajt_enable_visual_editor( $args = array() ) {
global $bsp_style_settings_form ;
$args['tinymce'] = true;
$args['teeny'] = false;
if ($bsp_style_settings_form['Show_editorsactivate'] == 1) $args['quicktags'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'ajt_enable_visual_editor' );
// ==============================================================
text isn’t standard on bbpress – how are you achieving this?
I am using latest bbPress and WordPress.
I have just noticed when I create a forum topic that whilst my tinymce toolbar is fine, when I click the Text tab I get an empty toolbar.
Why would that be? Is there no longer a text toolbar in WordPress?
I am attempting to convert a PHPBB3 forum to BBPress. Obviously it is failing (thus this post). It seems to run, and did change the name of the the admin account on the PHPBB forum. However, the rest of the process is as such:
Import Finished.
17.No threaded replies to import
16.No anonymous reply authors to import
15.No replies to import
14.No favorites to import
13.No topic subscriptions to import
12.No topic tags to import
11.No closed topics to import
10.No super stickies to import
9.No stickies to import
8.No anonymous topic authors to import
7.No topics to import
6.No forum subscriptions to import
5.No forum parents to import
4.No forums to import
3.No passwords to clear
2.No users to import
1.Skipping sync-table clean-up
Starting Import…
Ready to go.
What I am working with:
PHPBB3 = 3.2.11
BBPress = 2.6.9
Neither the old forum nor the new have any mods installed. BBPress is a virgin install on a virgin install of WordPress.
I am at a loss as to what to do next. Any help would be greatly appreciated.
If I end up with 2 similar posts, I apologize. I *think* my first post fell into the bitbucket, but if not it may appear as well.
Thanks in advance for any help!
Tommy
@robin I am experiencing the exact same issue, even when using ?ao_noptimize=1
to shut off Autoptimize for testing.
I also use GeneratePress (pro), and bbpress with bbpstylepack .
The individual forums show perfectly, but the index is very broken and missing proper styling.
The issue can be seen here https://www.budget101.com/community/
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?