Hi again,
I did some progress.
With this code
function filter_pll_check_canonical_url( $redirect_url, $language ) {
if(strpos($redirect_url, '/edit/') !== false && strpos($redirect_url, '/forums/') !== false && strpos($redirect_url, '/reply/') !== false) {
$redirect_url = str_replace('/it/', '/', $redirect_url);
$redirect_url = str_replace('/en/', '/', $redirect_url);
}
return $redirect_url;
}
add_filter( 'pll_check_canonical_url', 'filter_pll_check_canonical_url', 10, 2 );
reply works correctly, but if I remove the “reply” filter I had an issue with topics, the forum ID of the Italian language is not present on the selection in editor.
The solution can be not to use “pretty” edit links like
http://localhost:82/it/forums/topic/moved-reply-to-prova-manipolazione-url/edit/
but the link in a query string, like when the topic isn’t approved.
http://localhost:82/it/?post_type=topic&p=18604&topic=moved-reply-to-prova-manipolazione-url&edit=1&view=all
there is a way to enable this kind of link as default for edit and the other topic action?
Thanks Renzo
ok, so if my solution above does not work, your issue is site specific, so without visiting your site and an example I cannot give you code – in essence I can look at what the browser is receiving and see the correct code needed. You can contact me via my website
Contact me
and give me some access details, and I will try and help further.
However alternately if you know how to use FTP, you could try this
find
wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php
transfer this to your pc and edit
you will see that line 16 says
<h2 class="entry-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2>
delete this line and save
then create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the original
Hi there,
I hope someone can help. I have an issue with these two bbPress pages.
See here example: wbc1.otiscreative.co.uk/forums/users/ollie-tubb/
It picks up the divi default formatting rather than the structure of the other pages, see example here: wbc1.otiscreative.co.uk/advice/finance/
It needs to sit in the same style template but I don’t know how to do this. I am using Divi theme but i am using the bbPress default set-up (not shortcodes).
Help would be very much appreciated.
Many thanks,
Ollie
PS. I am using latest version of WP and bbPress.
Hi Robin, thanks for the answer. Switching to a default theme (TwentyTwenty) did the trick and the translations works. Is there anything you can recommend me to do or I should reach to the Woffice support?
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
It is all patched up, I just assumed the last update since they brought it to my attention. Are Moderators allowed to block other participants by default?
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
looks like a theme issue- your theme is seeing this url as a post and showing a ‘post excerpt’
try
bbPress WP Tweaks
to see if changing the default wrapper will help
next page works fine on my test site.
Standard tests need to be performed
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
ok, 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
Hello,
The website is up to date (WP 5.9 and 2.6.9 for bbpress)
I experience a randomly error on a website I manage. When you click on the answers in the backoffice you experience several times the same error, a white page with an error 500 and a fatal error :
WP_Fatal_Error_Handler->handle
WP_Fatal_Error_Handler->display_error_template
WP_Fatal_Error_Handler->display_default_error_template
wp_die
and
WP_Fatal_Error_Handler->handle()
[PHP Kernel]
WP_Fatal_Error_Handler->display_error_template(Array, WP_Error)
./wp-includes/class-wp-fatal-error-handler.php:57
WP_Fatal_Error_Handler->display_default_error_template(Array, WP_Error)
./wp-includes/class-wp-fatal-error-handler.php:152
wp_die(WP_Error, <code></code>, Array)
./wp-includes/class-wp-fatal-error-handler.php:233
Could you help please ?
Thank you.
Valérie
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
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
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
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
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
ok I can only suggest the 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
Then come back
ok that phrase is not in bbpress, so something else is sending it.
‘blocklist’ looks like it should actually read ‘blacklist’
I can only suggest the standard fault finding to try and identify whether a plugin or theme is causing it
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
ok, maybe look at
dashboard>settings>forums and look at editing time.
If that doesn’t fix, then 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 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
When I post in my forum, strange numbers are appearing under the avatar on the left hand side instead of whatever is supposed to be there.
I’ve already tried
– Posting as different users
– Completely resetting bbPress
– Loading the default theme
– Disabling every other plugin
It’s still the same every time I post. I’m at a loss

I tried disable all plugin, use default theme, reinstall bbpress, did not work at all, guys can you help me.
it could be a theme or plugin issue – I know you have already switched themes but try a default one 🙂
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
I would like to change the function that participants are automatically given the rights to publish, create and edit topics.
I want the topics to be controlled by the administrator and participants are only able to reply to existing ones.I used the plugin WPFront User Role Editor and selected Override Role Edit Permissions to get access to the role settings, but when I go to the role and deselect the tick box on the aforementioned items after saving it defaults back to as it was.
Is there any way of changing this whist avoiding code. If not what happens to the code after an update?
Thanks in advance.
‘spam email blocklist’ is not a bbpress phrase, can you test with just wordpress and bbpress active, and a default theme.
Found it! date_default_timezone_set was being used in the theme’s functions.php file. I removed it and this fixed the issue.
Thanks again for pointing me in that direction. 🙂