WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Blank page after login

[Resolved] Blank page after login

Viewing 3 replies - 1 through 3 (of 3 total)
  • Popescu M
    Member

    @radiourionline

    I found out the problem, it was in wp-members-deprecated.php. There is no $post_to variable to redirect after login. So i have added this code at the beginning of the function wpmem_old_forms_sidebar()

    if( isset( $_REQUEST['redirect_to'] ) ) {
    		$post_to = $_REQUEST['redirect_to'];
    	} elseif( is_home() ) {
    		$post_to = $_SERVER['PHP_SELF'];
    	} elseif( is_single() || is_page() ) {
    		$post_to = get_permalink();
    	} elseif( is_category() ) {
    		global $wp_query;
    		$cat_id  = get_query_var( 'cat' );
    		$post_to = get_category_link( $cat_id );
    	} elseif( is_search() ) {
    		$post_to = $url . '/?s=' . get_search_query();
    	} else {
    		$post_to = $_SERVER['PHP_SELF'];
    	}

    Plugin Author Chad Butler
    Participant

    @cbutlerjr

    The problem is that those old forms are deprecated and are therefore no longer being updated. You should change your forms setting to not use those so that you don’t have to do it when they are fully removed from the plugin.

    Hello Member

    I have the same problem, but it can not..

    Can you send or posting the complete code of the deprecaded file?

    Grt,
    Kees

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Blank page after login’ is closed to new replies.