add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
}
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
@robin-w thanks for reply, i have use child theme. but your code not working.
i tried your code with both type :
return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
return 'http://buddypress.local/' . $_SERVER['REQUEST_URI'];
screenshot : https://prnt.sc/CSTMlQ1ChCaG
ok, since I cannot see the site, troubleshooting is near impossible.
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, @robin-w its working on server side by default buddyx-theme/twentytwenty and no need any additional code add. May i know the reason why didn’t work on localhost ??
And Next time I will test it on the server first. If I face any problem then I will post it.
thank you so much your great help @robin-w
sorry, I just help out here, there are many things on localhost that are different including htaccess and maybe many others
I have never developed on localhost, nothing against those that do, but developing on the same server using exactly the same code as live enables you to have confidence that the performance and configuration is exactly the same, just my view 🙂
Anyway glad you are fixed !
yes, you are right. thanks 😇👍