ok, so I am wondering if something else is interfering.
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
Sure Robin. I’m not sure if it’s wordpress default template, but I’ll show you what I receive (as a test user, not admin) and what I set up.
Here’s what I receive:
Here’s my template:
I also noticed that “Don’t show this message” (Oh bother! No forums were found here!) doesn’t work for me. I ticked it, but the message is still there. Is there a php snippet I could add to my Woody snippet plugin? Thank you.
can you give an example of a ‘default wordpress notification’ please
HI. I have bbp Style Pack. I set up nice templates in Subscription Emails tab, but users don’t receive those mails. They receive default WordPress notifications. How to force bbPress to send those nice looking templates I’ve created?
Thank you
Chris
Just these!
We also use custom themes:
no idea, but I googled around and found this
https://www.hostinger.co.uk/tutorials/wordpress-broken-permalinks
I’d suggest taking a look at your htaccess file, but it’s not a speciality of mine, so proceed with caution 🙂
@oscowordpress1 – it does on my test site
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
it’s great that you have taken the time to understand the standard tests required, they do solve 80% of issues which is why we ask for them, we don’t do it to annoy you.
the issue may well be a 3 plugin combination thing – so bbpress in combination with another plugin and jetpack, which is why ideally you would carry out the tests.
Given that you cannot, then there are two elements to user access – the wordpress level and the bbpress level
eg ‘administrator’ for wordpress and ‘keymaster’ for bbpress.
I think you best bet would be to set up a user and work through the combinations to see what works and what doesn’t – eg does admin and participant work, but not subscriber and keymaster, does admin work with moderator etc etc. That would help decide what the override that is allowing ‘admins’ to see stuff is.
Then come back and report
Our website uses the bbPress plugin to create forums. When I connect the Jetpack plugin to WordPress.org, non-admin users get a “Well, this is embarrassing” 404 not found error when they try to access any of the forums, whether the forums are public or private. Users with the Administrator role are able to access the forums without difficulty. When I disconnect the Jetpack plugin, forum access for non-admin users is restored.
Before you suggest that I disable all plugins and themes, and reactivate them one by one until I find the offending plugin/theme, be advised that I can’t do that on our live site because it would cause all sorts of issues for our users. I can’t troubleshoot this issue in my local development environment because I can’t connect the Jetpack plugin to WordPress.org when the website is running in my local development environment.
And yes, I already tried switching to a different permalink format/structure temporarily, and then switching back. It did not solve the problem.
I’m running WordPress 5.8.2, and bbPress plugin version 2.6.9. Our website is located at https://evangelizationschool.com
Hi!
I have a straightforward question – how do I move the existing bbpress data (Forums, Topics, Replies) from one WordPress installation to another?
I see there is an ‘Export’ and ‘Import’ function in WordPress, where Forums, Topics and Replies can each be exported separately.
But – would importing them into a functioning website overwrite existing pages and posts?
Or is there something I am just missing in this whole process, and it is really just super easy, barely an inconvenience?
your theme/developer has added the ‘no-js’ class to the very top, hence why the other codes are not working.
can you try this snippet
add_action( 'wp_footer', 'rew_supports_js' );
function rew_supports_js() {
echo '<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + " js ";</script>';
}
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
it’s a wordpress rather than bbpress issue.
The documentation could be clearer, but that section refers to the tinymce not the text editor
I’ve not tried it, but this might help
Paste As Plain Text By Default
@oscowordpress1
There is a temporary fix, either
1. use code
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' );
}
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
or
2. install and activate
bbp style pack
this is a temporary fix, the bbpress authors are looking at a permanent one
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' );
}
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
2.6.8 does not fix.
so use either
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
}
return $classes ;
}
or if that doesn’t work
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
return $classes ;
}
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
That’s good, glad that worked out for you.
You could also put it in bbpress.php
in the plugin itself, then when the fix comes out and the plugin is updated it would get rid of it.
For others looking for a solution, I tried to edit my post above but couldn’t, when I mentioned functions.php
I mean the functions.php
file that is within your current active WordPress theme.
the error is when the ‘nonce’ does not validate.
https://codex.wordpress.org/WordPress_Nonces
I suppose I could try using translation to make it a friendly message but would rather try and fix it.
function my_nonce_message ($translation) {
if ($translation === 'Are you sure you want to do this?') {
return 'Please try again.';
}
return $translation;
}
add_filter('gettext', 'my_nonce_message');
the error is when the ‘nonce’ does not validate.
https://codex.wordpress.org/WordPress_Nonces
not sure what you can do about it, not my speciality 🙂
@jjj Moving the ‘no-js’ class to the bottom of the ‘bbp_body_class’ function does not fix, as the quicktags toolbar is still not shown.
the following filter fixes, but I’m not entirely sure what the introduction of then ‘no-js’ class to the function is doing, but I can’t see that the patch has any unintended consequences as it only runs on the relevant pages.
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
}
return $classes ;
}
or if that doesn’t work
add_filter ('bbp_body_class', 'rew_unset_no_js') ;
function rew_unset_no_js($classes) {
if (($key = array_search('no-js', $classes)) !== false) {
unset($classes[$key]);
}
return $classes ;
}
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
FOR THOSE USING BBP-STYLE-PACK – I’ll issue a revised version incorporating this shortly until fixed in bbpress.
Revisions are totally a WordPress thing. It’s weird, but sounds accurate.
Using Gravity Forms to create new topics & replies will bypass the “freshness” hooks that bbPress expects to run normally. This means that the “branch” of topics & forums in the “tree” of that submission won’t get walked up to the root, to tell that whole branch what its most recent content is.
Once you post something yourself normally, the tree gets walked and everything looks OK.
The function that would normally be called is bbp_update_topic()
. It includes all of the extra meta data that needs to be added – including a call to bbp_update_topic_walker()
that “walks” the branch in the tree.
Lastly, it refreshes the last_changed
cache key in the bbpress_posts
cache group. You could try busting that cache on your Gravity Forms submission (to see if that’s enough) but I have a feeling it won’t be, and you’ll need to find the best way to trigger the update.
Yeah, the BBPress release info, and BBPress itself seems to be the neglected son of WordPress.
Good day, just to let you know the blog link on the release info version goes to 404, when enter release info page.
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
Hi there,
I’m pretty new with wordpress and bbpress, and I can’t find the setting I need.
I want that new users automaticaly got the subscriber role on my site (done, general setting) and also the bbp_participant role.
How can I do that ? Thanks by advance.
Kind regards
yes it does make sense 🙂
so this is just ‘registration’ and any new users you ‘register’ for ‘wordpress not forums’ will be known to you and presumably admins, so it probably does not matter that ‘all’ new registrations receive a ‘forum’ welcome, as they will all be forum users apart from any new admins you sign up, who can be told to ignore the email.
so I would suggest that you just use a WordPress registration welcome and tailor it for your forum users.
Does that make sense, or have I misunderstood something ?