Hi again,
oops ! not yet… there is a new warning in admin Dashboard > At a Glance :
Warning: Undefined array key “forum_count_int” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/testXXXX.com/wp-content/plugins/bbpress/includes/admin/metaboxes.php on line 52
I am just a moderator here, and not a bbpress author.
The authors tend to release updates every few years, rather than more frequently.
My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.
bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.
I currently have my test site running WordPress 6.4.x and php 8.2 with no issues.
The only major issue with bbpress at the moment is that it does not work well with FSE themes.
However my bbp style pack plugin has fixes for this
bbp style pack
as well as block versions of the widgets and a ton of styling and functionality add-ons.
All plugins are subject to the authors commitment, and bbpress is no different.
The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.
But with open software you make your choices….
HI Robin,
in fact, sorry I didn’t pay enough attention, but when Yousify is not activated the warning is else :
Forums
Warning: Undefined array key “forum_count” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/testXXXX.com/wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php on line 27
the warning is
Warning: Undefined array key “forum_count” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/test.com/wp-content/plugins/youzify
which says the undefined array key is in the plugin youzify
sorry I cannot help further
Hi,
I need to keep at least one forum with visibility “Public” otherwise, if all forums are “Private” I got a PHP warning instead of forums number :
Warning: Undefined array key “forum_count” in /home/clients/3db470ac3c186374a924a94534df90ab/sites/test.com/wp-content/plugins/youzify/includes/public/templates/bbpress/content-statistics.php on line 33
Forums
Even when Yousify is not activate.
And also, warning doesn’t appears when at least one forum is “Public” but, I need to use extra snippet to get the real numbers of forums otherwise statistics say 1 when there is more…
bbpress just uses wordpress registration, so it is likely that no emails are working.
Use the test in that plugin I sent to see if they are leaving your site
Thanks for joining!
I am not a bbpress author, just someone who helps out.
Yes, I suspect that there are several places it could be done.
My code above should work (and if you can test it that would be great) , but if you fancy working up a better solution, please post back.
I will happily incorporate it into my bbp-style-pack plugin to save others needing to work out code and/or use child theme functions.
I don’t have any forums on my live sites (anymore), so don’t use akismet, so I’m relying on your better knowledge 🙂
so to save having to repeat bbpress code, the logic might be
add_action ('bbp_new_reply_pre_extras' , 'rew_askimet_check', 100 , 1 ) ; //might need to be run at a high priority to make sure it is last - not tested
function rew_askimet_check ($reply_id) {
//only execute is this is akismet spam
if ( bbp_get_spam_status_id() == get_post_status($reply_id) && !empty (get_post_meta( $reply_id, '_bbp_akismet_user_result', true ))) {
//unspam the reply (which takes it back to pending, and within that function runs the update_reply_walker)
bbp_unspam_reply( $reply_id) ;
//and then re-spam it
bbp_spam_reply( $reply_id) ;
}
}
which is actually what I do manually (I click unspam and then click spam on the front end admin) on this site when akismet does this.
in case you are working on this, basically if we hook to
bbp_new_reply_pre_extras
we can then do a check if it has been spammed by askimet and the if so, just do a reply walker update
so something like (totally untested)
add_action ('bbp_new_reply_pre_extras' , 'rew_askimet_check', 100 , 1 ) ; //might need to be run at a high priority to make sure it is last - not tested
function rew_askimet_check ($reply_id) {
//only execute is this is akismet spam
if ( bbp_get_spam_status_id() == get_post_status($reply_id) && [some check that this has been marked by akismet])) {
//just run the reply update walker as this will do a full refresh of all ancestors to the topic if just the reply ID is sent
bbp_update_reply_walker($reply_id) ;
}
}
The akismet check would be something like
if (get_post_meta( $reply_id, 'some akismet metadata', true )
If you can look at the raw data of the email(within email client) and see what is set for the src of the img tag when testing.
Looks like I cannot edit the previous post, the testing found the underlying problem. Users cannot double post. As soon as I post on another account all of the links are working.
How can I change doouble/multi post settings?
ok, not much i can do without seeing it, but 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
I just got around to testing the above. I copied the code into themes function.php. Under fish caught it still says array instead of the fish species chosen in the dropdown. Also the image still does not show up.
Any other suggestions? the Fish caught I can change it so that the user has to type in the fish species caught. Just much easier for them to choose the dropdown when entering, especially if on the lake when posting.
It is important for the image to show up in the email because that draws much more interest than no image showing up.
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
Re: Website: allinop.comI have used the following css to modify the [bbp-topic-index]
.bbp-topic-voice-count,
.bbp-topic-reply-count,
.bbp-topic-freshness { /* Hides elements related to voice count, reply count, and topic freshness */
display: none;
}
.avatar-14 { /* Hides avatars with the class "avatar-14" */
display: none !important;
}
.bbp-search-form { /* Hides the bbPress search form */
display: none;
}
I have 2 issues:
Firstly, the topic titles do not take the entire horizontal space.
It is as if the hidden elements still occupy the space.
I have tried ‘hidden: none’ instead ‘display: none’ to no avail.
Secondly, I’ve been trying to also remove the border around the list of latest topics.
I have unsuccessfully tried:
.bbp-topic {
border: none;
}
and
.bbp-topic {
outline: none;
}
I would be grateful for any ideas.
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
Okay this was a quick test.
I deactivated all my plugins accept for bbpress and still ‘Forums’ wasn’t shown in the left navigation bar. I reinstalled wordpress (6.4.3) but still nothing. So I don’t know what is going on, but I think bbpress isn’t compatible with this WP version or something…
I’ve spent a lot of time preparing my website for launch, but I’ve encountered a few roadblocks that I can’t seem to overcome. Any help would be greatly appreciated.
Forum URL: https://HeresOurSquirrel.com
Issues:
#1: Sometimes when I sign on, it fails and suggests the page is cached. However, I am not using any caching app.
#2: When registering… (I am using the Ultimate Members plugin — is there any other way to handle this?)
2a) emails aren’t being sent
2b) role isn’t being set (they’re participants, but the role isn’t being set to contributor)
2c) no users are being displayed under the “membership” menu item
#3: When signing on as the admin (“TheSquirrel”) I can’t get to the dashboard… when entering “https://www.heresoursquirrel.com/wp-admin” in the address bar and clicking enter, it just returns to the Forum.
I created two test accounts; One participant, and one keyholder, so if you would like to sign on as either, please DM me and I will provide the sign-on credentials.
Any other feedback would be greatly appreciated.
WordPress Current version: 6.4.3
bbPress Version 2.6.9
Thank you in advance!!
If you’re using the style pack to edit your email template, add the below as a test to your email template.
Catch Time: {catch_date_time}
Anglers: {anglers}
Then add this function to your functions.php file or code snippets plugin which ever your using.
if( !function_exists('afc_email_bbp_subscription_mail') ){
function afc_email_bbp_subscription_mail( $message, $reply_id, $topic_id ) {
if ( function_exists( 'get_field' ) && $topic_id != 0 ) {
$afc_replace = array(
'{catch_date_time}' => get_field( 'catch_date_time', $topic_id),
'{anglers}' => get_field( 'anglers', $topic_id )
);
$message = strtr( $message , $afc_replace);
}
return $message;
}
add_filter( 'bbp_forum_subscription_mail_message' , 'afc_email_bbp_subscription_mail', 100 , 3 );
}
Then test it out by creating a topic in a forum that has subscribers you can test with, and make sure to set those values when creating your topic.
Whoops. I am wrong. IT IS NOW WORKING! I need to test auto login and some other features since this is a private forum.
One issue that I do not think can be solved is I am using ACF plugin for Custom fields within topics. The email notification only has the topic text, it does not include any of the custom field results. Assume no one know how to resolve this. ACF plugin support will not help because they know nothing about bbpress.
The reason I have forum users posting in the backend is because I could never get the ACF plugin to work properly on the frontend.
Thanks!
Will try posting again..
You can try the below code, either add it to your theme’s functions.php file, or use the code snippets plugin.
Make sure to select your “Forum” when creating a topic and make sure the forum has subscribers to test it out on.
if( function_exists( 'bbp_get_topic_post_type' ) ){
function newtech1_bbpress_new_topic( $post ) {
if( isset( $post->post_type ) && $post->post_type == bbp_get_topic_post_type() ){
do_action( 'bbp_new_'.bbp_get_topic_post_type(), $post->ID , $post->post_parent, [] , $post->post_author );
}
}
add_action( 'draft_to_publish' , 'newtech1_bbpress_new_topic', 10 );
}
I should mention I installed the style pack. I have verified users that are subscribed to the forum.
I went into Subscription Emails and ran ‘Sent Test Topic Email’. The test email was sent out with no problem. I then posted a topic in the forum. No email notification was sent out.
I am thinking if topics are posted from the backend, or maybe from moderators, that email notifications do not work. Can someone test this? I cannot test it because we do not have topic creation on the front end. (We have customized fields that we could never get to work on the frontend so made topic creation via backend.)
Yes that would be a good explanation , let me test
Thanks for your reply, Robin. I have used the repair functions and the gaps are still there.
I have installed a local test system and a script, that iterates through the replies and fix the menu_order in wp_posts of every reply with a simple counter.
It works at the test system, but I’m not sure, if there could be any side effects.
ok, the code is probably ok, but chat gpt has a long way to go !
A function needs something to call it, otherwise it just sits there.
Not tested, but add these 2 lines before or after (doesn’t matter which) the function
add_filter( 'bbp_get_reply_content', 'replace_suit_symbols' ) ;
add_filter( 'bbp_get_topic_content', 'replace_suit_symbols' ) ;