Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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

    #462230

    Hi,

    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,
    Josue

    #462349

    Thanks for your quick reply. Deactivating bbPress removed the problem. Any hint on how to continue from here?

    #462662

    Hi!

    Please see – http://brassblogs.com/blog/wp_logout_url-agh

    Best regards,
    Yigit

    #465537

    Didn’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;
    }
    #465539

    Hey!

    Try the following:
    https://bbpress.org/forums/topic/404-after-logout-from-private-forum/

    Best regards,
    Josue

    #467933

    Hey,

    tried this as well, but without luck. Do I have to configure bbPress somehow.

    #467939

    Hi,

    Can you please check if the issue persists with the default WordPress theme activated?

    Regards,
    Josue

    #467994

    Everthing is fine with the default theme. It seems clearly linked to the bbPress plugin.

    • This reply was modified 9 years, 5 months ago by HansHuckebein.
    #468004

    I 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') ;
    #468008

    Hey!

    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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.