I tested this on our staging site. Switching out for the Twenty Twenty theme, the dates populated, so I presume the problem to be the theme. What advice do you have for a fix?
PS: I tried taking out the short code on the member-only (parent) page to allow you access to the forum but it seems to still want a password.
Cathy
ok, given that I cannot access site (in effect you are sending me a photo of your car engine, rather than letting me see the car itself) I can only 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
yes just tried ‘forum’ and it does not show
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, so I followed your test.
I created a forum called ‘test hidden forum’ and a topic within it called ‘test hidden topic’
I logged in as a participant and did a search for ‘hidden’ – no results.
What search were you doing that I could replicate?
EDIT – sorry just looked at what you did in trac – I’ll try that
Is bbPress no longer being updated?
It shows Last Updated: 8 months ago Untested with your version of WordPress
We are on WordPress 6.01.
I want to buy a theme for bbPress but am afraid it won’t work since it hasn’t been updated in so long 🙂
ok, now that we have checked the permalinks and the slugs, then 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
maybe it’s the if function, try
add_action ('bbp_new_topic_post_extras', 'rew_spam_update_last_active', 10 ,1 ) ;
function rew_spam_update_last_active ($topic_id) {
//this function tests if a new topic has been marked as spam by Akismet. If so then the last active date will be wrong
//So we use topic walker to recalculate it
bbp_update_topic_walker ($topic_id, '', 0, 0, true) ;
}
It’s not the answer, but might help get to the solution problem
‘It looks like if the fix was inside bbp_topic_freshness_link() it would be much easier to test, ;’
agree but it just wouldn’t work there, that is not where or when the issue is occurring.
Try
add_action ('bbp_new_topic_post_extras', 'rew_spam_update_last_active', 10 ,1 ) ;
function rew_spam_update_last_active ($topic_id) {
//this function tests if a new topic has been marked as spam by Akismet. If so then the last active date will be wrong
//So we use topic walker to recalculate it
if (!empty (get_post_meta( $topic_id, '_bbp_akismet_user_result' ))) {
bbp_update_topic_walker ($topic_id, '', 0, 0, true) ;
}
}
Thank you, Robin. I added the snipped, and it partially worked. The anchor text “time ago” now reflects the time of the latest good post. However the URL is for the latest spam post.
I started digging a bit through bbpress code. It looks like if the fix was inside bbp_topic_freshness_link() it would be much easier to test, as we would not need to wait for a new spam post to test the fix. And perhaps make decisions based on the wp_post status having the value “publish”. This way the solution would not be specific to Akismet. But I am really too new to WordPress coding and bbPress to be making this kind of changes myself.
ok, give this a try – it may or may not do the trick !!
add_action ('bbp_new_topic_post_extras', 'rew_spam_update_last_active', 10 ,1 ) ;
function rew_spam_update_last_active ($topic_id) {
//this function tests if a new topic has been marked as spam by Akismet. If so then the last active date will be wrong
//So we use topic walker to recalculate it
if (!empty (get_post_meta( $topic_id, '_bbp_akismet_user_result' ))) {
bbp_update_topic_walker ($topic_id) ;
}
}
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 Robin. Thank you for looking at this. Yes, I can replicate the problem and test a fix. In fact, I have the described situation on my forum right now:
https://www.totalsync.com/forum/
And it is likely to stay this way for the next few days. If necessary I can also recrate it manually.
yes it does (and does so on here as well!).
I’m just a helper here, not a bbpress author.
I don’t run akismet on my test site. Are you able to replicate the problem so that we can check a fix if I am able to work up some code?
In the list of forums, there is a column called “Last Post”. For each forum, this column contains a link to the last topic or reply posted to that forum.
If there was a spam post 2 hours ago (and Akismet puts it in spam), then the “Last Post” column will contain text “2 hours ago” and a link like https://www.example.com/?post_type=topic&p=1759 (where 1759 is ID of the spam post).
Correct behavior would be to link to the latest published post. Anchor text should also reflect when the latest post was published. In my example, if a post got published 5 hours ago; and then a spam post came in 2 hours ago, the anchor text should say “5 hours ago”.
I fully understand – you have an issue where one forum is not showing. Given that showing these forums are settings within your theme or LMS, not within bbpress, then it most likely that it is a setting somewhere within this.
so you can try one last thing
dashboard>settings>permalinks and just click save – this resets the permalinks and may help
then if you srea still convinced that it is not theme or plugin, you can prove this using
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
Oh, it works like a charm! This will save a lot of time for the admin.
But all the roles need to be tested.
I will observe for 2 weeks and report the results.
Thanks Robin for the good Tips!
This is not fully tested, but should work
add_filter( 'bbp_get_reply_edit_url', 'rew_admin_link', 10 , 2 ) ;
function rew_admin_link ($url, $reply_id ) {
if ( bbp_is_user_keymaster(get_current_user_id())) {
$url = '/wp-admin/post.php?post='.$reply_id.'&action=edit' ;
}
return $url ;
}
thanks, just tested with just bbpress and agree it does disappear.
I had bbp private groups enabled, although no settings affecting, but with this it shows.
I’ll try and take a look tomorrow (10pm in UK at the moment) to see what private groups does that is fixing that !
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, I just created that test scenario, and cannot replicate
Once I post a topic in one of the sub-forums the list disappears below the category on forum index.
can you post a screenshot please so that I can understand exactly what is disappearing
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 Robin, thanks for coming back so quick; the URL of the topic would be:
/forums/topic/test-topic-creation/
Then when pressing the edit button it’s:
/forums/topic/test-topic-creation/edit/
Kind Regards,
Matt P
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!
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!
Thank you for answering. Will test it