ok, many questions… but lets start with
what version did you upgrade from ?
which template files are they missing from ?
Hi Robin,
Thanks for your response.
We are using v2.5.14 before and we’ve updated it to v2.6.6.
The template file is “loop-replies.php” which is inside the directory “/wp-content/plugins/bbpress/templates/default/bbpress”.
Here’s the screenshot for comparison reference.
We have the “v2.5.14” on left of the screenshot and we have the “v2.6.6” on the right. As you can see this functions “bbp_topic_subscription_link()” and “bbp_user_favorites_link()” were removed on the updated template.
Thanks!
that code has been moved to content-single-topic.
Can you just recheck your settings in
dashboard>settings>forums and look at subscriptions and favorites are set – I have no reason to doubt except past experience 🙂
If so, you may need to upgrade in
dashboard>tools>forums>upgrade forums
I’ve re-checked it and they were enabled. I have also tried disabling and re-enabling them but didn’t change anything.
I’ve also run 4 upgrades under the “Upgrade Forums” as well as 1 repair under “Repair Forums” and we don’t have any on pending lists.
It’s kinda weird that when I edit this php file you mention “content-single-topic.php”, it didn’t show those changes on the forum pages.
It’s kinda weird that when I edit this php file you mention “content-single-topic.php”, it didn’t show those changes on the forum pages.
ok, question, does your theme have bbpress files associated with it? or is a plugin affecting this
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’ve scanned this file content-single-topic.php inside our theme and we have an existing one for that. I have updated it and the subscribe and favorite a topic button shows again and they worked fine.
We have another issue, it’s when users subscribe to a forum, the forum is not listed on the “Subscribe Forums” page under members page. I’ve tried checking it if it has something to do with the templates but I didn’t find this file user-subscriptions.php on the theme.
Here are the sample screenshots:
A user was subscribed to a forum
The forum was not listed on user’s subscribed forum list
Goad the first ones fixed.
sorry, but the above fault finding applies again 🙂
I have used the plugin to troubleshoot the issue and I can confirm that there were no issues with the theme and the plugins we used. After doing the following it still didn’t fix the issue that the subscribed forum is not showing on the list.
1.) I switched to Twenty-twenty theme.
2.) I disabled all the plugins and just enable the “bbPress” and “BuddyPress”.
Here’s the screenshot when I’m troubleshooting using the plugin.
Btw, we are using BuddyPress v.7.2.1.
ok so try it without buddypress
I removed the BuddyPress and it still not showing the subscribed forums.
ok, not sure I can help further, it looks site specific.
Hi there,
I’ve created a new fresh instance on my local machine using bbpress version 2.6.6 and it works fine. I tried to do debug the site that has bug with the recent version of bbpress by tracing the output of each functions that leads to showing the subscribed forums. I also check those functions on the site that is working properly and compared them with the site that has bug.
Then I got to this function that returns a different object.
Function name: bbp_user_engagements_interface
File name and path: /bbpress/includes/common/engagements.php
On the site that bbpress has bug, it returns this class: BBP_User_Engagements_User Object ( [type] => user )
And on the site the bbpress is working properly, it returns this class: BBP_User_Engagements_Meta Object ( [type] => meta )
Do you know any reason why it uses a different class?
Here’s the screenshot of the function:
Thanks in advance!
hmmm….do you know what calls this function ?