ok, I cannot say why that 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
ok, all I can say is that it works on my test site.
I am not a bbpress author, just a guy sat in his kitchen trying to help others
bypassed and went to the site – the link is just a webpage – no sign of bbpress on here.
At present the site is in development behind a firewall so I cannot share it, though this should change next week as I bring it live but then a username and password will be needed.
However, what I have identified is that when a two word search is made the resulting URL is
…/forums/search/worda+wordb/
This produces the error.
However if I change the URL to
/forums/search/holding%20tank/
It then works so the code is inserting the wrong word separator.
This seems to have been quoted before https://bbpress.org/forums/topic/forum-search-form-widget-space-between-words-returns-a-404/
Though that was some years ago.
I have already tried a standard theme.
Does this provide any clues?
I know many fellows talked about how to remove a sidebar from a topic page, but they all are too complicated for me. So, I’m wondering whether I can remove a sidebar from a topic page by editing “funtions.php”.
For example, the url of a topic page includes string “topic”, so the following code (not completed yet) will work?
function bbPress_sidebar_hide() {
$url = $_SERVER['REQUEST_URI'];
if(strpos($url,'topic') !== false){
// here is the code for removing or hiding a sidebar which I don't know
}
@robin-w while I have messaged my site security company and waiting on a response from them! I did a malware scan of my domain using Sucuri;
The site seems clean! You can use Sucuri to check! Also my Google search console and Bing webmaster does not show any malwares! I will still appreciate if you can tell me the name of the your security so I can my site Security company look into that. It could be a false flag.
Pending that, could you please help me with a code snippet to change the H1 tag in the the insert/edict link form (that pops up when someone wants to insert a link on BBpress). How can I change the H1 tag there to H3 tag??? Please I’ll appreciate a code snippet that can do this pleaseee!
Can I use the topic/replay display template of this site(https://bbpress.org/)?
I think this template is more sophisticated than the original one.
And, when I hide avatars, the topic/replay display becomes in a bad shape (too much and unnecessary spacing), especially on a mobile screen.
I did this initially as I activated the FSE fix first, then when that didn’t work I created a bbpress.php. I may try creating a new header that is a bit simpler specifically for forum pages if integration isn’t well supported.
Hello,
On this page on my site. I can see that bbpress insert/edict link form is causing my site to have redundant H1 tags. This is bad for my Bing SEO as it’s showing up as something I need to fix. So I have 2 H1 tags. One is the tittle of the page and the other one is coming from the link insert/edict form on my site “front end source cod” that’s a feature created by bbpress.
Please can that insert/edict form have H3 tag please ? is there a way to course the form to have a H3 tag and not a H1 tag??
Secondly the form edict menu does not function properly. The form link and other menus does not show or work on the “reply box” on the front end even if I’m accessing the site as an admin! Also the “create a new topic form” the insert/edict link form doesn’t show up on a pop up but instead shows up on my footer. I’m using both the latest version of bbpress and wordpress.
I will really like to fix this issues. thanks for any help or advice that would be provided for this issue!!
FSE themes are relatively new.
Have you tried not having the bbpress.php but keeping the FSE theme fix in style pack?
I think it is the same as in this thread
Disappearance of the menu
so follow the suggestions in my response there
The image (png format) of the menu does not appear on any of the pages where bbpress is being used.
Example of the problem: https://anaimo.com/forum-list/
Example of how it is: https://anaimo.com/sdk/
Also, if you insert any image, either png or jpg, it doesn’t display.
Is this related to this thread?
Hi
I’ve just installed bbForums on my WP.ORG site, http://www.positivepython.co.uk.
WP Version 6.1.1, using Xolo Theme. Confirm the issue also happens on theme 2022
bbPress version 2.6.9
My site is set up so the Forums are the home page foe the site. I have set up some forums, but when I click on one of the forum titles, the link doesn’t take you to the forum, but it does go to a page of the (two currently) posts I have put on my site.
I am sure its something obvious, but I haven’t seen anything in forums or docs to help me.
Thanks in advance.
thanks, by comparing settings on my working site with yours, I found the culprit
In
Dashboard>events>settings>general you had ‘Include events in main blog loop’ ticked. No idea what this does, but unticking it seems to fix the issue.
If you need it ticked….
I reckon (but not certain) it is something to do with how event calendar is reacting with a WordPress function called WP_Query.
When listing a topic, bbpress sets the 2 custom post types ‘topic’ and ‘reply’ so that it can list the topic first and then fires WP_Query to get the list for the display. I think events calendar is catching that query and filtering for an event required process, the effect of which is to strip the ‘topic’, so only the replies get listed.
You can fix this by using this code
add_filter ('bbp_show_lead_topic', 'rew_true') ;
function rew_true () {
return true ;
}
This does alter a bit how the topic page looks. I could build a topic display page to overcome this, but beyond free help I’m afraid.
that’s great – thanks
so on my test site, I hid a forum and logged in as a participant, and the index shows fine.
so we need to work out what the difference between your site and my test site is.
so initially let’s eliminate outside factors such as 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
The error we are getting is the same:
PHP Fatal error: Uncaught Error: Call to a member function get_users_for_object() on null in /var/www/vhosts/redacted-site-name/httpdocs/wp-content/plugins/bbpress/includes/users/engagements.php:125
It seems bbp_user_engagements_interface is returning null if the user marks the forum as hidden. For now, we have told them not to do this, but we are concerned that a user action using the ui can cause such fatal errors. While we were troubleshooting I bypassed the error by adding a ? in the code to avoid the fatal error on null. This brought the site back up while we investigated the cause
`$retval = bbp_user_engagements_interface( $rel_key, $rel_type )?->get_users_for_object( $object_id, $rel_key, $rel_type );
I can’t find the other forum topic where I asked about how to make the replies VISIBLE.
The problem was that participants, key masters, admins, authors, everyone was only seeing the date / time stamps of replies to topics, no one could see the content of any of the replies, when viewing the bbPress forum in the web page. Robin responded with this and fixed it.
——————————————————-
In short some code clashing was stopping the display being right in your browser, it was all working behind the scenes. Nothing that you had done.
Just for your records I have done the following change
In dashboard>appearance>customise>additional css and added this code
.reply {
position: relative !important;
right: 0px !important;
top: 0px !important;
There is no donation link for bbpress that I know of.
I thought I saw a link for making a donation to support bbPress, but I can’t find it now.
Would someone point me in the right direction?
ok, just tried twenty twentyone php 8.1, wp 6.1.1 with bbpress and the events calendar, and topics show ok on my test site.
(by the way 5 will give blank pages, these are FSE themes and are a pain in the xxxx)
contact me via http://www.rewweb.co.uk/contact-me/ with access details
My observations so far by testing on the Stage site.
1 – Deactivating The Calendar fixes the problem with the Forum
2 – Downgrading The Calendar to 5.16.4 fixes the problem
3 – Changing Themes to Twenty-Twenty-One has the same problem
4 – Changing Themes to Roseta (we are using a child of Roseta) or Codex does not help
5 – Changing Themes to Twenty-Twenty-Two or Twenty-Twenty-Three gives me blank pages on the forum (worse) even with all plugins deactivated.
6 – Deactivating all plugins except bbPress and The Calendar gives me the same problem
We are running PHP 8.1 and WP 6.1.1
All this (except observation 5) points to a conflict between The Calendar and bbPress.
If you want, I could give you access to the staging site.
Tech support at my theme company made a fix. Here is CSS to put into the theme options to fix this for the next person!
#bbpress-forums > div:nth-child(4) {
display: none;
}
ul#bbp-forum-0.bbp-topics1.bs-item-list.bs-forums-items.list-view {
display: none
}
Thank you so much for your help, Robin!