This is the login link that is generated in the HTML:
<a href='http://52.webshrimp.uk/wp-login.php?action=logout&redirect_to=http%3A%2F%2F52.webshrimp.uk%2Fchat%2Fcomments-suggestions%2F&_wpnonce=302ba1641f'>Log Out</a>
What happens if you logout from the WordPress toolbar, which has nothing to do with bbPress?? If you come across the same issue something is just redirecting you.
You might have to do some troubleshooting
Troubleshooting
<?php bbp_logout_link(); ?>
pretty much uses wp_logout_url{}
in WordPress.
https://codex.wordpress.org/Function_Reference/wp_logout_url
My replies with code won’t post for some reason..
max links allowed in posts are 2 this includes links in embedded images.
You can remove the http:// from the code, I would know what you are talking about.
Basically when I activate bbPress on my blog the log out links no longer work. It seems to append a redirect to the end of log out links which prevents it from working. I’m not sure why but it’s definitely to do with bbPress.
Here is the logout anchor tag when bbPress is deactivated (works)
<a href="http://test.webshrimp.uk/wp-login.php?action=logout&_wpnonce=1ef350795a">Log out</a>
Here is the anchor tag when bbPress is activated – doesn’t do anything
<a href="http://test.webshrimp.uk/wp-login.php?action=logout&_wpnonce=1ef350795a&redirect_to=http%3A%2F%2Ftest.webshrimp.uk%2F%3Floggedout%3Dtrue">Log out</a>
Any help would be greatly appreciated.
Thank you.
I created a fresh install of WordPress and bbpress here:
test.webshrimp.uk
BBpress is currently activated, note how the logout links are not working. As soon as I deactivate Bbpress it works fine
With bbPress activated and logging out from the backend using the WordPress toolbar.
http://localhost/mysite/wp-login.php?loggedout=true
Without bbPress activated and logging out from the backend using the WordPress toolbar.
http://localhost/mysite/wp-login.php?loggedout=true
With bbPress activated and logging out from the bbPress login widget on my front page.
localhost/mysite/?loggedout=true
Did you already go through some troubleshooting to see if it was an issue in your plugins or theme??
Yes, I did.
I created a fresh install of wordpress here: test.webshrimp.uk
The only plugin activated is bbpress and the logout doesn’t work. As soon as it is deactivated the logout link works. It is 100% bbpress causing the issue. I don’t know why it is appending redirect links to the logout button either.
Thanks
Alright I might report this as a bug, but I need steps to duplicate the issue. And could you answer these questions to help me, know where you are at?
Are you running any special bbPress set up?
Does this happen to all user roles?
I am going to assume on your fresh install you just have the latest stable version of bbPress and WordPress and no other plugins activated while using a default theme?
Are you running any special bbPress set up?
– I’m just running the default bbPress fresh from install
Does this happen to all user roles?
– Yes, it happens to all roles
I am going to assume on your fresh install you just have the latest stable version of bbPress and WordPress and no other plugins activated while using a default theme?
– Yes. I am using Twenty Fifteen theme. Up to date. No other plugins activated. The moment I activate bbPress users can no longer log out.
Thanks
If it helps you are welcome to login and test it out. I can send you login details for admin and user. I only setup the site to test this issue.
send the details to my email, but only for subscriber/participant role for now.
Contact