Back end: under Forums it shows the ‘Last Post’ as 3 hours, 30 minutes ago when I just added a test post. However, under ‘Replies’ it shows the correct time in the ‘Created’ column.
Can you test this with a page or post – bbpress is just a custom post type and uses wordpress code for the backend
I have the exact same issue as this.
My time zone is GMT-3:30.
Front end: The topic list shows ‘Last Post’ as 3 hours and 30 minutes ago but when you click the topic the latest reply time (the most recent reply) is correct.
Back end: under Forums it shows the ‘Last Post’ as 3 hours, 30 minutes ago when I just added a test post. However, under ‘Replies’ it shows the correct time in the ‘Created’ column.
Is there a fix available for this? I’ve tried everything I’ve found in these forums and nothing has worked.
Hi:
Thanks for creating the importer [and forum].
Just done an import from Drupal 7 forum, to bbpress 2.6.9 on WordPress 5.8.3.
It seems to have worked well.
Just odd that in listings like forums, forum topics, get 0 posts and 0 topics listed; even tho can click through and see the posts and replies.
I’ve tried running the Repair Forums tools [all of them, just in case! – didn’t get any reports from them, in case there should be]. But not helped.
Also added a test post; and sure enough this was counted.
– so I can carry on with the forum, just an oddity to have the Drupal posts/topics not counted.
Currently wpress.drmartinwilliams.com/forums
Soon to http://www.drmartinwilliams.com
Thank you for the suggestion.
We tested the plugin but it still does not redirect to the login page. We are using the Theme My Login plugin for the login page.
can you just let me know what shortcode you are using, then I can try it out on my test site.
The problem is known for years. I’ve tried this solution:
https://bbpress.trac.wordpress.org/ticket/2785
But it doesn’t work anymore.
Does anybody knows an actual tested fix?
ok, lets try agian and see if we can get there.
Your site has
https://imhodom.ru/forums/users/ox/replies/
so we need to check for ‘/users/’ and ‘/replies/’
and we’ll try and up the priority so that other code does not overwrite
add_action( 'bbp_template_redirect', 'neon_check_replies', 100);
function neon_check_replies(){
//only execute if the url contains both /user/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://imhodom.ru/forums' );
}
ok, so if the replies link goes to
https://mysite.com/forums/user/admin/replies/
then this
add_action( 'bbp_template_redirect', 'neon_check_replies');
function neon_check_replies(){
//only execute if the url contains both /user/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/user/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://mysite/home' );
}
will send anyone clicking the link to the site home page
what does it do for you?
ok try this
add_action( 'bbp_template_redirect', 'neon_check_replies');
function neon_check_replies(){
//only execute if the url contains both /users/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://example.com/some/page' );
}
Thanks for your help, take the time – I really appreciate it! But … again nothing happens.
Have a clean new bbpress, latest version of WordPress, own Ngnix, cleared the cache, checked for syntax errors.
Little confused https://stackoverflow.com/questions/23614011/if-strpos-serverrequest-uri-true-doesnt-work/23614083 and whether the equation is correct. I can’t figure it out myself.
This function will take all attempts to go to the replies page to whatever url you want
add_action( 'bbp_template_redirect', 'neon_check_replies');
function neon_check_replies(){
//only execute if the url contains both /users/ and /replies/, so test for this first
if (strpos($_SERVER['REQUEST_URI'], '/users/') == FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') == FALSE) return ;
else wp_redirect( 'https://example.com/some/page' );
}
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
Thank you for your answer.
I have installed the plugin. Cleared all caches and tested it with existing forum and new forum – unfortunately the problem persists with the version. If I downgrade it, it works again – only then WordPress complains that there is a security risk etc… because the plugins are not up to date.
best, neratashy
I’ve seen this before, already updated Redux plugin to the latest version but problem seems not to be resolved
just as a test, can you add
bbp style pack
which has a fix for an issue in 2.6.7 which may or may not relate to this
If you install and activate the style pack plugin, does the problem stay or go away?
ok, best advice I can give is the standard fault finding :
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
Is there a way to have a thread, forum or page that will show what’s new or new posts? I would like to be able to do this not in a sidebar but in an actual thread, forum or page.
I’, using the latest versions of bbpress and WordPress. I have also tried many different themes.
Sorry, that file is back and corrupted I cannot say why.
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
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
@robin-w could you check your engagements.php on your test forum?
(/yoursite/wp-content/plugins/bbpress/includes/common/engagements.php)
i’ve got
public function get_users_for_object( $object_id = 0, $meta_key = '', $meta_type = 'post' )
i think $meta_key value shouldn’t be empty…
ok, again my test site works.
so we need to work out if it is the import, a theme or plugin issue, or something else.
I would suggest next you create a forum, and one topic for it. Then make the forum hidden, and see if this then works.
having one forum hidden works fine on my test site
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
hello,
huge thanks for your efforts here !!!!
I’ll test your quick & dirty proposal and let you know
Eric Collart
I am not absolutely sure where you are, but yes everything I expect to work does work on my test site 🙂
ok, this is free software with free support, and I have limited time to help – it works on my test site, so I cannot say why it does not work for you. Given that you can control it from the backend, then I hope you have enough of an solution to be workable.