Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter labatt

    (@labatt)

    Any ideas? Thanks!

    Thread Starter labatt

    (@labatt)

    Narrowed down where the issue is, but I still can’t find it in the code.

    I have the Ozh’s Simpler Login URL plugin install. This is a redirect plugin so when you go to https://url/login it shows the wp-login.php page. It’s only when you do this that it shows “Username” and “E-Mail”. If you go directly to the wp-login.php page it shows “E-Mail” and “Password”.

    So the Register Plus Redux script (I think) is getting confused and thinking the page is a registration page as opposed to a login page when the redirect happens.

    Once again, help?

    Thread Starter labatt

    (@labatt)

    All the Ozh plugin does is add this rule to the .htaccess –

    RewriteRule ^login/?$ /wp-login.php [QSA,L]

    So that’s not the source of the problem.

    Thread Starter labatt

    (@labatt)

    OK.. narrowed it down further. Line 1000 and forward of rpr-login.php are causing the issue…

    `elseif ( !isset( $_GET[‘action’] ) ) {
    if ( ‘1’ === $register_plus_redux->rpr_get_option( ‘username_is_email’ ) ) {
    ?>
    <!–[if (lte IE 8)]>
    <script type=”text/javascript”>
    document.getElementById(“loginform”).childNodes[0].childNodes[0].childNodes[0].nodeValue = “<?php _e( ‘E-mail’, ‘register-plus-redux’ ); ?>”;
    </script>
    <![endif]–>
    <!–[if (gt IE 8)|!(IE)]><!–>
    <script type=”text/javascript”>
    document.getElementById(“loginform”).childNodes[1].childNodes[1].childNodes[0].nodeValue = “<?php _e( ‘E-mail’, ‘register-plus-redux’ ); ?>”;
    </script>
    <!–<![endif]–>`

    It seems as if you hit the wp-login.php form directly, it executes the lte IE 8 jquery replace. If you hit it through the redirect, it executes the gt IE 8 jqeury replace. However, I’m using Chrome and the other’s that are having this issue are using Firefox.

    Thread Starter labatt

    (@labatt)

    And.. figured it out. Turns out it wasn’t this plugin (isn’t that always the case?)

    I’m running W3 Total Cache, in addition to Register Plus Redux.

    I noticed that the wp-login.php page was NOT minified, but the /login page IS minified. I disabled minification and it works. It appears as if the <script> stuff above got messed up during the minification.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Login page asks for "Username" and "E-mail"’ is closed to new replies.