7 Common WordPress Login Issues (And Their Solutions)

Posted on March 21, 2021 by in WordPress | 2 comments

7 Common WordPress Login Issues (And Their Solutions)
Premade Layouts

Check Out These Related Posts

How to Use the WordPress Quote Block

How to Use the WordPress Quote Block

Posted on September 20, 2021 by in WordPress

The WordPress Quote Block presents an easy way to display a quote from an external source. It displays the text with a quotation mark and includes a caption to add a citation. It’s a simple block but using it within your content can draw the reader’s attention and add some emphasis to your...

View Full Post
How to Use the WordPress Archives Block

How to Use the WordPress Archives Block

Posted on September 19, 2021 by in WordPress

Navigating a blog can get tricky as its content library grows. Some visitors may want to dig deep into your posts archive, but they may feel discouraged by a poorly organized website. That’s why the Archives block enables visitors to easily navigate your catalog according to each...

View Full Post
How to Use the WordPress Shortcode Block

How to Use the WordPress Shortcode Block

Posted on September 18, 2021 by in WordPress

Using shortcodes is an intrinsic part of the WordPress experience. A lot of plugins don’t add custom blocks to the Block Editor. Instead, they enable you to use shortcodes to place elements on your posts and pages (and customize them). To do so, you’ll need to use the...

View Full Post

2 Comments

  1. Thanks for the article! But the only file where I can find “redefining user_login” (and I’m pretty the period within quotes in your article is a grammatical period, not something in the code file) is in user.php. Nowhere in wp-login.php. I downloaded WordPress 5.7 (our site is up to date) and did a full search on all the files. In fact, user.php is the only place in the entire code base that contains the word Redefining.

    And even in user.php, the following line of code is
    $user_login = $user_data->user_login;
    not
    $user_login = $user_data[“user_login”];
    as you have in your article. Which seems to make the change you suggest invalid? Besides, the full comment is
    // Redefining user_login ensures we return the right case in the email.
    which seems to be about email sending an email, not logging in.

    What am I not understanding? We have a serious problem with not being able to log into our WP site at the moment. Your article was timely, but nothing seems to work for us.

    Thanks!

    • Hi Don! Thanks for catching that period – you’re right, it should be outside the quotation marks. Additionally, it seems the formatting of the code snippet was distorted, so apologies if that caused any confusion.

      The instruction should read that if you see this line:

      $user_login = $user_data[“user_login”];

      You should replace it with this instead:

      $user_login = $user_data->user_login;

      This solution comes right from the WordPress Codex (https://wordpress.org/support/article/login-trouble/#new-login-file).

      Sorry to hear you’re having trouble with your site. Unfortunately, we can’t provide individualized support in the blog comments. If you’ve tried several solutions on your own and haven’t made any headway, I’d suggest reaching out to your hosting provider if you haven’t done so already. There are also some WordPress maintenance agencies that offer emergency support.

Join To Download Today

Pin It on Pinterest