This topic has 4 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #99932
     love2playgames
    Participant

    Hi 7queen,

    I am wondering is the bp_custom.php should look like this with these code inside or should be empty? The reason why I am asking, I put the logout redirect codes after the ?> it gave me white page (site) ?

    There are also other code i put in, it also make the site white page?

    The bp_custom.php is locate in the plugin directory btw…

    /public_html/wp-content/plugins/

    Please advice, thanks

    Attachments:
    You must be logged in to view attached files.
    #100001
     Radu
    Moderator

    Hi,

    I think your white page is caused by that redirect function

    Please replace that redirect function with that

    COPY CODE
    
    /----------------------------------------------------------------------------/
    // redirects for login / logout
    /----------------------------------------------------------------------------/
    add_filter('woocommerce_login_redirect', 'login_redirect');
    
    function login_redirect($redirect_to) {
    
    return home_url();
    }
    
    add_action('wp_logout','logout_redirect');
    
    function logout_redirect(){
    
    wp_redirect( home_url() );
    
    exit();
    }
    

    If the function not working please remove redirect related codes from that file and install this plugin https://wordpress.org/plugins/peters-login-redirect/

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #100041
     love2playgames
    Participant

    Hi Radu,

    I am confuse on this, I am getting a white page unless I still am doing something wrong? Would it possible you can provide an exact codes includes my original what’s in the bp-custom.php on a text.txt? That way I know exact what’s in there..

    BTW, if not using these codes, it goes to the members page after logout, not sure is normal or not?

    Please advice, Thanks

    #100047
     love2playgames
    Participant

    Hi Redu,

    Please disregard my last message, yeah, I got it going btw.

    Thanks so much for your help 🙂

    #100330
     Radu
    Moderator

    Hi,

    Great, have a nice week.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?