ok, I’ve found time to take an initial look at this.
The function called looks at a database item which holds the sub forum count – but it looks like this is just count of public forums, so the count is zero, so none displayed.
so removing looking at this takes away the issue.
It would take a deal of work to see why and how to make a permanent fix to this, and I think this filter will do what you want
add_filter('bbp_forum_get_subforums', 'rew_forum_get_subforums', 10, 3);
function rew_forum_get_subforums( $sub_forums, $r, $args ) {
// Default return value
$retval = array();
// Use passed integer as post_parent
if ( is_numeric( $args ) && ! empty( $args ) ) {
$args = array( 'post_parent' => bbp_get_forum_id( $args ) );
}
// Parse arguments against default values
$r = bbp_parse_args( $args, array(
'post_parent' => 0,
'post_type' => bbp_get_forum_post_type(),
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
'orderby' => 'menu_order title',
'order' => 'ASC',
'ignore_sticky_posts' => true,
'no_found_rows' => true
), 'forum_get_subforums' );
// Ensure post_parent is properly set
$r['post_parent'] = bbp_get_forum_id( $r['post_parent'] );
// Query if post_parent has subforums
if ( ! empty( $r['post_parent'] ) ) {
$get_posts = new WP_Query();
$retval = $get_posts->query( $r );
}
// Filter & return
return (array) apply_filters( 'rew_forum_get_subforums', $retval, $r, $args );
}
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
Local WordPress installation.
so are you trying to install this on a local WordPress installation, or an online website?
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
not directly a bbpress plugin issue – might be better to post this into that plugins support forum
https://wordpress.org/support/plugin/recaptcha-for-bbpress/
Greetings
I set up a test forum and created a private category with two sub-forums inside. On forum index the category is shown with its two sub-forums listed below it, as intended.
Once I post a topic in one of the sub-forums the list disappears below the category on forum index. I can still see them if I click on the category however.
It’s similar to this bug here, but it doesn’t seem to matter if there’s a description or not
https://bbpress.trac.wordpress.org/ticket/2085
The bug only happen when the category is private or hidden. Should I do a bug report about it? Is there any known solutions?
WordPress: 6.0
Plugins: bbPress 2.6.9
Theme: Tried various WordPress default themes.
Thank you in advance
ok, so presuming this is in any topic, then if you fancy sharing the shortcode you are using and the php code, I might take a look at that
Outside of your php code, I’d suggest 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,
I’m creating this topic on the off chance that somebody else might have experienced a similar thing and can point me in the right direction as to what has caused this.
So for unknown reasons, all forums and posts suddenly disappeared completely from our WordPress instance. They are not in the trash and I also couldn’t locate them in the database anymore. No plugin updates or any other suspicious actions have been performed that I know of which could’ve been behind this.
Also, this didn’t happen to our DEV instance which is essentially in the same state in terms of active plugins etc.
Anyone ever heard of something like this happening? I’m not so much concerned about restoring the lost forums because it was only test forums and test posts so far. But I don’t want to have this happen in the future with actual forums and posts on there. I know that backups can be made, but then there’d still be the content you’d lose in-between performing them manually.
We are using bbPress in conjunction with LearnPress and it was forums tied to a LearnPress course that were lost (we didn’t have any ‘free-standing’ ones), if that provides any hints.
Thanks in advance for your help!
great – have a look at this as an additional plugin it adds many features – it also lists other bbpress plugins
bbp style pack
I am not a bbpress author, but had been a moderator here for 7 or more years.
bbpress continues to be maintained, but releases are generally not frequent.
bbpress works with wordpress 6.x.
bbpress is stable, indeed it is used by WordPress as the main support tool for plugins, themes and WordPress itself, and is written by some of the main WordPress contributors so complies with WordPress standards.
There are many additional plugins for it which add functionality and design features – indeed several are written by me 🙂
This is a WordPress error, usually associated with a failed nonce (short for ‘number once’).
These nonce keys are generated for your website to verify that, for example, a script is run by you, and not an external source. This prevents intruders from altering or abusing your forms, URLs, AJAX calls, etc.
amongst many times, a nonce will be generated when you land on a bbpress page with a form on it – eg a new topic or new reply form.
This article explains possible causes
fixing error
In your case I’d suspect that this is not caused by a plugin or theme, but rather through expiration of the nonce through either other actions eg possibly you moving away from the page creating the nonce and then going back to it, or possibly a memory limit.
I look at 2, 3 & 5 first
Greetings
I’m administrating a small forum currently on open source Vanilla, but they seem to discontinue their open source version and I’m looking for other solutions. Since we’re also already on WordPress bbPress seems like a choice to look into, but I’m worried we’ll get into the same situation again with the software being discontinued or outdated.
When I installed bbPress I noticed it said untested with the current version of WordPress, but also it does seem to be updated the past year so there may be no problem.
I need to ask though if bbPress is alive and planning to be alive for the future?
Are there any security concerns with it being updated so rarely or that’s perfectly fine?
Thank you in advance!
bbpress just uses wordpress registration.
I’d sugggest you check that your site is sending emails, there are lots of plugins that do this, but maybe using
Check & Log Email
Hi
I have created a forum, I have a course, but I just cannot get the forum to show on the course.
Ideally, I’d like the forum to be in a group, but can only find instructions on having a forum with a course. I have the course, I have the forum, but I just can’t get the forum to show on the course.
I’ve looked everywhere and spent all day trying to figure it out.
I use the bbpress plugin for Learndash, on WordPress.com
Hello
There is an issue where I can not delete any BBPress/Wordpress user as when I do the server gives internal error 500.
Either from the Buddypress frontend or from the WordPress users admin panel.
I looked at the error logs and can see
“mod_fcgid: read data timeout in 31 seconds”
I tried updating this in apache to 60, but it seems to not have done anything.
Wordpress 6.0, Most recent bbPress version, https://lemonstograpes.com
Using Twenty-Seventeen
When a reply is posted, 2 email notifications are sent out to users: see #1 AND #2 below.
#1. email format (template): I want only this one to be sent! I created it in bbPress Notify (No spam).
Hello! A new reply has been posted by Jane Carole.
Topic title
Link
Excerpt
Source: Created by me in bbPress Notify
This one is sent out and has the correct format and contents.
It is the only one I want to send.
#2. email format (template): I do not want this one to be sent.
Jane Carole posted new reply:
Full content
Link
Source: I don’t know where this one is coming from.
It is automatically sent right after #1 is sent.
In summary:
I need to stop #2, but don’t know how. I think maybe it is the bbpress default email text. (I used bbPress Style pack, Subscription emails tab, and checked the box that allows me to enter different email body text, but the changes I make (in instructions 4-9 of that tab) aren’t applied and used even though I save them. The default text keeps appearing.
I thought that The bbPress Notify plugin would stop any other email notifications (I marked override subscriptions), but for some reason that isn’t happening.
Help please! (I am posting this again because for some reason when I posted it earlier today it was wrongly marked as spam!)
yes it does !
can’t see an easy fix – it’s not a question I have seen before, so suspect that it is a rare search
You could try
Ajax Search Lite
My website keswickmountaineeringclub.com uses forums, e.g. to log information about rock climbing meets. The Meets forum says it has 113 subscribers, but if you list the subscribers and count them you find there are 93. If you list the notification emails sent out you see (scattered throughout the list of emails in the email log) 20 mails that have been sent to an empty (missing) email address. I’m guessing, but maybe when deleting some old club members the email notification list has not been updated correctly? It looks as if the list of email addresses used to send out notifications is not synchronised with the list of subscribed members. Is there a way to fix this?
I’m currently using WordPress 6.0. bbpress version 2.6.9. bbP private groups 3.9.1. bbp style pack 5.0.5. bbPress Toolkit 1.0.12.
thanks for posting. The site needs access to replicate so cannot be reproduced without.
bbpress does not have a WYSIWYG editor by default, so what code/plugin are you using to get this? I’d suspect your theme may be doing this, and therefore may be creating the problem.
You also have an error in your theme (Use of undefined constant bbp_reply_id ), which is either code you have added to what looks like a parent theme, or an error in the theme itself.
I’d suggest that you prove this by
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 if it is theme contact the theme author as it is a paid theme
this is because of the ‘notify me of follow up replies via email’, which is actually the same as ‘subscribe’
If the user is not subscribed, then when the page is sent to the browser the page shows ‘subscribe’ as an option and has the ‘notify me’ unticked.
when you click the subscribe, the database is changed, but the box is still left unticked. So on posting a reply, the absence of a tick ‘unsubscribes’ the user that has just subscribed 🙂
It would be possible to create some js to correct this, but beyond free help.
however given that someone replying probably wants to be subscribed :
if you are using or want to use
bbp style pack
go to
dashboard>settings>bbp style pack>Topic/Reply Form>item 6 and set as default
or use:
Reply Subscribed
I would like to add some non-verbal icon reactions for various posts, but looking in WordPress.org, I found this one:
DW Reactions
But it has not been updated in years.
Can someone know whether it would still be stable enough to add, or would have any other recommendation?
I would like be able to send email notifications to specific people when new topics or replies are posted.
Exactly like what this plug in does:
bbPress Notifications
However, it was last updated 9 years ago.
Is this plug in still in use? Or is there a newer one?
I am author of GD bbPress Attachments, and what you see is the message returned by WordPress when uploading. This was not the problem before, but it looks like the upload in WP has changed to recognize duplicated files. I will see if there is a way to handle this in some way in the future.
Regards,
Milan