Are You Not Able To Login To Your WordPress Admin Panel?

how to solve login problem in wordpress

Have you ever thought, what will you do if you are not able to login to your WordPress admin panel? You try hard to log in to your admin panel but fail. There are many people who face such type of problem.

Especially, for beginners, it’s the pain to encounter such type of problem.Do you know how to solve login problem in WordPress?

You should know how to login to your WordPress admin panel if you face this problem. People are there with the headaches just because they are not able to login to their admin panel. In this post, I will tell you about the possible ways to solve this problem.

WordPress Admin Panel Problem: Know The Reasons And Solve The Problem

Before going further just should know what are the possible reasons due to which you are locked out of your WordpPress admin panel. There may be many reasons from the database to any installed plugin. Let me round up the list here.

1. Any new plugin:- There is a possibility that any new plugin you have installed may create the problem and locks you out of your admin panel. There are many bloggers who are using some plugins to secure their admin panel. But sometimes such plugins may restrict you to login to your admin panel.

You have to disable all the plugin from your website. This may be done by using your cPanel. Just find the “wp-content/plugins” and download it before removing. Though the content generated by the plugins may lose but you will be able to solve login problem to WordPress admin panel.

2. Database Establishing Connection Error:- If you are getting the database establishing connection error then you have to solve it by checking your wp-config.php file. Check all the inputs related to the database name and the password. If something is mismatched then you have to correct the name and the password credentials. There are many options like the username and the hostname. You have to check all the details.

It is always recommended that whenever you change the credentials for the database of your website, you should have a backup on your computer. You can backup up it using phpMyAdmin.

3. Have You Forgotten Your Password? :- It is the most common reasons to face WordPress admin panel problem. Most of the time people forget the password of their WordPress admin panel. The solution is to recover your password by using “forgot password” option. If you’re not able to reach to that page then you can change the password using phpMyAdmin from the cPanel of your web hosting.

how to solve login problem in wordpress

4. User Removed:- What if the user you had created is removed by someone? It is possible that someone hacked your website and removed or changed the username you have created for you as an admin. To login to your WordPress admin panel, you have to create a new user. It is same as creating the new database user.

There are bloggers who add new users to their website for better site handling. Though the privileges to each of the users should be provided.

5. Memory Exceeded:- In some cases, the memory may get exceeded and you’re not able to login to your WordPress admin panel. This may happen due to any poorly coded plugin or any file of your theme. To solve this problem, you have to check each and every plugin.

You can do it by activating and deactivating every plugin one by one. If a plugin is creating such problem then you will see it after deactivating it.

6. You Lost The Permissions:- Sometimes, you may lose your admin privileges. To solve this problem, you have to add a new user to the database of your website. This can be done using the phpMyAdmin through the cPanel of your website. Such type of problem occurs with the images you embed in your blog posts. You should have known about all the permissions. You can change the permissions using the cPanel.

A similar type of problem occurs with the images you embed in your blog posts. You should have known about all the permissions. You can change the permissions using the cPanel.

7. You Have Added The Wrong Code:- To design your website you copy and paste many codes into your theme files. It may turn out to be the most dangerous thing people do. You can’t find all the codes you put into your theme files as correct. So be careful whenever you add any extra code in your theme files.

Did You Login To Your WordPress Admin Panel?

wordpress admin panel problem

Have you solved the WordPress admin panel problem? Are you able to login to your WordPress admin panel now? The reasons I have mentioned above are specifically for solving this problem. You have to know the possibility.

If you are locked away from your admin panel just after installing any plugin or adding the new code then check and remove them from your website. If you still didn’t get how to solve login problem in WordPress then let me hear from you.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.

Get Free Updates Into Your Inbox

Learn Everything Just Like I Did



  1. Hi Ravi,

    Good to see that you are writing more posts related to WordPress.

    Yes, the problems with WordPress admin panel are more common, and you have listed down all possible difficulties that we face with Admin login.

    I always scare to add/change the codes through Cpanel, but at times I used to do it with care.

    To stay safe, it would be good to hide the login URL, hide all the directories and WP files and Username.

    I have recently crafted a long guide on how to hide these loopholes and improve WordPress security.

    Thanks for crafting such an excellent post for the WordPress users, keep up your good work.

    1. Hi Nirmala,

      Though it’s important to concentrate upon the WordPress security but sometimes bloggers break their websites using for security. It’s always good to choose the plugin carefully.

      An idea of hiding the directories is really a plus point for the security. But most of the bloggers don’t get these technical things. The problem with the WordPress admin panel is common and beginners should know how to fix them.

      Thanks for your input.
      Glad to have you.

  2. Ravi — good tips. It took me a long time to realize that when I was in the admin panel writing/editing a post, that when I saved it, sometimes an older version would appear. I thought I was doing something wrong, when I finally realized you have to clear your cache if you make too many edits in a post. This is something a newbie blogger might not realize.

    1. Hi Jeannette,

      What if you are locked out of your login panel? Though clearing the cache is something you must do but what about the scenario as you want to write a blog post but can’t. This is something heart-breaking.

      The things I have mentioned above are needed to know. WordPress is an amazing platform and you should know how to handle it with care.
      The reasons are here and the solutions should be considered at their best.
      Thanks for sharing your thoughts.
      Enjoy the day.

  3. Hi Ravi,
    Once again it’s very worthy to read a great article.
    You have chosen the topic that every Word press Blogger has faced once in his lifetime. It took very less time to create a Blog on word press but sometimes it happens that in hurry you forgot to write your password somewhere. It may be because of hurry, Privacy or some other reason that you don’t want to write your password somewhere.
    I have faced this situation many times. The lists you provided that may be the cause of error are interesting to know.
    You have described each and every cause that may restrict in accessing the admin panel of Word press Blogs. The solution you provided to resolve these problems are explained in detail and in very easy way. This will help all the Word press Bloggers to use their Blogs without interruption
    Thanks a lot for sharing with us.
    With regards,

    1. Hi Saurav,

      It’s good to know that you found this article helpful.
      For a WordPress blog, there are many things to know about. Like you said, people set up a blog very easily, but what after that? Have you ever thought about it?

      You may face many problems during handling a WordPress blog. First of all, you need the reasons of those problems and then try to find the right solution.
      Appreciate your input.
      Have a good day.

  4. Hi Ravi,
    Good to be around today and thanks for creating the post.

    Like you said, the first step to salvaging the problem is knowing why one is unable to login. If you miss it at this level, you may end up not getting the right solution.

    People should however be careful with those plugins they install. Most of these are poorly coded even though tagged “Premium”

    I’m sure this post will help those facing the same problem.

    Do have a wonderful week bro

    1. Hey Enstine,

      I am happy to see you around.:)

      Yeah! People don’t even look up on the reviews before installing a plugin to their website. There are many plugins which are poorly coded and can cause many problems with the website.

      For beginners, it’s like a ghost when they aren’t able to login to their WordPress admin panel. they should learn to keep calm and try to know the reason why this happened.

      Thanks for your valuable input.
      Enjoy the day.

  5. Hi Ravi,

    What would I do? Cry. Seriously though, I never play around with plugins because one time way back it really mixed up my blog so much it took days to fix. Luckily, I do have a self hosted blog hat does back things up. If I did have a problem I would contact the guy I use.

    But…for my others blogs that are on a shared hosted platform, I would need to do what you suggested above. I am not good with this kind of stuff, but this has helped me in many ways. I will book mark this and give my other blogs more attention. It would be a nightmare if I couldn’t get into it.

    Thanks so much for giving us great solutions to a problem no one wants to ever face!


    1. Hi Donna,

      Playing with the plugins isn’t a good idea. People should choose them very carefully. I mean just one plugin can break the whole code of your website. You can lock out of your WordPress admin panel. Adding new codes can be risky. So it is always recommended to have the backup.

      Crying isn’t the solution. You should try to know the reason and solve the problem. You should always try to know more about WordPress and the cPanel. Most of the solutions come from the cPanel.

      Thanks for sharing your wonderful thoughts.
      Enjoy the time.

  6. Hi Ravi,

    Good Heavens I had no idea so many things could go wrong. Quite frightening.

    I’ve luckily escaped these problems, although I do know there are badly coded plugins because when I moved to Managed WordPress Hosting the new hosting company wouldn’t accept some of the plugins I was using because they said they were badly coded and presented a security risk.

    Even if these happened to me, as a fairly experienced blogger, I would be in a panic. But for a newcomer it would be even worse.

    Luckily my hosting company handles these things for me, but I’ll bookmark your post in case I need it for anyone else.

    Thanks for such helpful explanations of everything we need to take care of,

    Joy – Blogging After Dark

    1. Hey joy,

      It’s good to know that you don’t have to worry about any plugin issue. But what if you install the plugin and after few days you are locked out of your WordPress admin panel. It can happen due to many reasons.

      Though at the certain point, you should keep calm and try to find an issue. It may be any plugin, any extra code you just added in any of your files.
      Thanks for being here.
      Enjoy the week.

  7. Hey Ravi,

    This my first time here.

    I’ve suffered most of these before. Trying to solve them the nerd’s way has empowered me, bro.

    Here, you’ve outlined these crucial points for those who’ve not experienced such problems before.

    There’s this one I’m not familiar with. I won’t disclose it here for a reason.

    Thanks for drawing my attention to it. Everyday is a learning process.

    Good work, Ravi. I’ll be back.


    1. Hey Francis,

      Welcome to my blog.:)

      While starting a blog, the people don’t really think about such problems. But later, they suffer a lot. So, it’s always better to know the solution. You can’t do anything with your website until you are able to login to your admin panel.

      We all have specific reasons which aren’t disclosed to everyone. So, just concentrate and have an awesome day.
      Thanks for sharing your words.
      Enjoy the time.

Leave a Reply

Your email address will not be published. Required fields are marked *