-
AuthorPosts
-
June 20, 2015 at 2:40 pm #462225
Every time I log out from my site I end up being on the “not_found” page. What can I do or where do I have to look at to solve that problem?
Thanks
June 20, 2015 at 2:56 pm #462230Hi,
Can you please check if the issue persists with the default WordPress theme activated? have you tried disabling all third-party plugins to see if it gets fixed?
Regards,
JosueJune 21, 2015 at 1:51 pm #462349Thanks for your quick reply. Deactivating bbPress removed the problem. Any hint on how to continue from here?
June 22, 2015 at 12:33 pm #462662June 28, 2015 at 2:34 pm #465537Didn’t help.
It seems the description there is outdated.Meanwhile I got a child theme working (as a starting point) but how to proceed from there. Every time I include a function into the functions.php file in the child theme it’s not working anymore.
Here’s what I tried.apply_filters('logout_url', 'my_fixed_wp_logout_url') function my_fixed_wp_logout_url($redirect = '') { $args = array( 'action' => 'logout' ); if ( !empty($redirect) ) { $args['redirect_to'] = urlencode( $redirect ); } $logout_url = add_query_arg($args, site_url('wp-login.php', 'login')); $logout_url = wp_nonce_url( $logout_url, 'log-out' ); return $logout_url; }
June 28, 2015 at 2:40 pm #465539Hey!
Try the following:
https://bbpress.org/forums/topic/404-after-logout-from-private-forum/Best regards,
JosueJuly 3, 2015 at 12:03 pm #467933Hey,
tried this as well, but without luck. Do I have to configure bbPress somehow.
July 3, 2015 at 12:19 pm #467939Hi,
Can you please check if the issue persists with the default WordPress theme activated?
Regards,
JosueJuly 3, 2015 at 2:22 pm #467994Everthing is fine with the default theme. It seems clearly linked to the bbPress plugin.
- This reply was modified 9 years, 4 months ago by HansHuckebein.
July 3, 2015 at 2:31 pm #468004I post function.php content here as wordpress hast changed the way to make a child theme and almost every solution proposal I found did it the old way.
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } function rw_logout ($redirect_to) { $url='/blog/' ; $redirect_to = '<a href="' . wp_logout_url( $url ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>' ; return $redirect_to ; } add_filter ('bbp_get_logout_link', 'rw_logout') ;
July 3, 2015 at 2:36 pm #468008Hey!
Thanks for keeping us on track, we do appreciate that.
We will be happy to help you with anything else, related to our themes!Regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.