Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Avatar: shaharpan
    shaharpan
    Participant
    November 13, 2015 at 16:10

    Facing same issue suddenly.. How can I remove #undefined ?

    Avatar: shaharpan
    shaharpan
    Participant
    March 9, 2015 at 13:13

    Hi,
    I am running on 1.7v and having the same error. Please provide fix.

    FTP deatils:

    Please, contact administrator
    for this information.
    Avatar: shaharpan
    shaharpan
    Participant
    March 4, 2015 at 22:18

    Hi,
    If anyone is looking for instant fix and don’t want to wait for future releases can use this code.

    1) Add following code to functions.php
    ———————————————————————————

    add_action( ‘wp_login_failed’, ‘my_front_end_login_fail’ ); // hook failed login

    function my_front_end_login_fail( $username ) {
    $referrer = $_SERVER[‘HTTP_REFERER’]; // where did the post submission come from?
    // if there’s a valid referrer, and it’s not the default log-in screen
    if ( !empty($referrer) && !strstr($referrer,’wp-login’) && !strstr($referrer,’wp-admin’) ) {
    wp_redirect( ‘./my-account/?login=failed’ ); // let’s append some information (login=failed) to the URL for the theme to use
    exit;
    }
    }

    function fv_error_func( $atts ) {
    extract( shortcode_atts( array(
    ‘type’ => ‘text’,
    ‘name’ => ”,
    ), $atts ) );
    global $wp_query;
    if( isset( $wp_query->query_vars[‘login’] ) && ($wp_query->query_vars[‘login’] == ‘failed’) )
    return ‘
    <div id=”login-error” style=”font-size: 16px; background-color: #FFEBE8;border:1px solid #C00;padding:5px;”>
    Login failed: You have entered an incorrect Username or password, please try again or Use <b>Forgot Password?</b>
    </div>’;

    else
    return ;

    }
    add_shortcode( ‘fv_error’, ‘fv_error_func’ );

    function add_query_vars_filter( $vars ){
    $vars[] = “login”;
    return $vars;
    }
    add_filter( ‘query_vars’, ‘add_query_vars_filter’ );

    ———————————————————————

    2) add shortcode “fv_error” on my-account page for on page error.

    Avatar: shaharpan
    shaharpan
    Participant
    March 4, 2015 at 18:46

    Thanks for the reply. I know you will try to update in some future version
    but can I you provide me some solution for now?
    As it is quite possible I have seen on other themes.(eg. Flatsome) instead redirecting they are giving on page error.

    Avatar: shaharpan
    shaharpan
    Participant
    March 4, 2015 at 15:06

    Don’t you guys think this should be the default behavior for theme instead of new plugin.?

  • Viewing 5 results - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.