This past weekend, we had a user who was locked out of WordPress Admin panel of their site. While we had written numerous articles covering each specific issue, we realized that we should combine all of them at one place to make it easier for others. In this article, we will show you what to do when you are locked out of WordPress Admin (wp-admin), so you can regain access to your site.
There are few reasons why you could be locked out of WordPress admin, so let’s take a look at each of them one by one. Hopefully through this process of elimination, you will be able to figure out the solution for your problem.
Error Establishing Database Connection
Are you seeing this error on your entire site? The reason why you get this error is because WordPress is unable to establish a database connection. This could happen for various reasons. It could happen if your database got corrupted for some reason. It could happen if your web hosting server is having some issues. If this is your issue, then please refer to our guide on how to fix the error establishing database connection in WordPress.
White Screen of Death
Are you seeing a white screen on your WordPress admin? This issue is often referred to as the WordPress white screen of death. It usually happen because you exhausted the memory limit. It could be caused by a poorly coded plugin or theme. It could also be caused by unreliable web hosting. If you are seeing this error, then please refer to our guide on how to Fix the WordPress white screen of death.
Incorrect Password Issue
Sometimes, even when you are typing the correct username and password combination, you won’t be able to login. When you try to reset your password, you never receive the email. This can happen if you were a victim of a hack. We would recommend that you reset your WordPress password from phpMyAdmin.
This method can be a bit overwhelming for new users, but this is your best bet.
Lost Admin Privileges
Sometimes, you may be able to login to your WordPress admin, but you don’t see any of the admin functionality. For example, no plugins, no themes etc. This could happen if your user permissions were modified. Often this happen due to a hack. Hackers would infect your site, and then delete your admin privileges. In this case, you should add an admin user to the WordPress database via MySQL (phpMyAdmin).
PHP Errors (i.e Syntax error, unexpected function etc)
These PHP errors usually happen when you are pasting the code from a website. Often beginners use the built-in WordPress editor from their dashboard. While that feature is pretty handy, but if you don’t know what you are doing, then it can be a disaster. If you pasted a code from a website which locked you out of your WordPress admin, then the first thing you need to do is take a deep breath. Now the only way to fix this issue is using a FTP program (How to use FTP). Once you have installed the FTP program, login to your site. Go to the theme file that you modified. Most likely it was the functions.php file. Now get rid of the code that you added in there. Re-upload the file, and you should be good to go.
Before you go on the site and comment “this code broke my website”, please refer to our beginner’s guide to pasting snippets from the web into WordPress. This is just to prevent you from looking like a fool on the web. Often its hard to admit that the mistake might be yours, so make sure of that first before you point the finger at someone else.
Hopefully after going through all of these possible scenarios, you have already fixed your site. If one of these solutions helped fix your issue, then please let us know in the comments. If you have a solution that is not mentioned in this article, then please share it in the comments as well.
Hi, I changed the link of my wordpress website to ‘https’ to activate our ssl certificate. Now, everytime i attempt to log it, google comes up with a ‘this site cannot be reached’ page. Is there a way to fix this?
You would want to take a look at our guide below for common solutions to the issues from moving to https and you can also reach out to your hosting provider for assistance:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-common-ssl-issues-in-wordpress-beginners-guide/
Everytime I try to login to my wordpress URL, it get redirected to a domain I previously used. This means I cannot login because I set up a new site for the previous domain and it should no longer be associated. I suspect that the change maybe something that I did within wordpress (changing the permalinks?) But I cant login because it keeps redirecting- help!!!
In that situation, we would recommend first reaching out to your hosting provider and they can normally assist.
I have a wordpress site where the ReCaptcha code got changed, but I was logged out before the code could be updated site-side. Now I’m locked out with a broken ReCaptcha. Any ideas?
You would disable the plugin adding that. You can take a look at our guide below for a starting point:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
I´ve been locked out from my wordpress admin, I cannot access the login page. I just get an error page that says a plugin has a Fatal error.
You can disable the plugin following our guide below:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
You would need to reach out to the plugin’s support to let them know about the error for them to resolve it.
Hi
I´ve been locked out from my wordpress admin as I cannot even access the login page – i´m only being redirected to my “Under construction”-page.
Have tried mysite/wp-login.php and mysite/login and mysite/admin and from different browsers and different IP´s/internetconnections but nothing works. What should i do?
Thanks for help!
If you have a coming soon plugin, you should be able to deactivate it using our guide below:
https://www.wpbeginner.com/beginners-guide/how-to-easily-deactivate-wordpress-plugins/
I have a woo-commerce website. But when I want to login or logout a popup showing on top. I want to remove this popup sign in box. Please help me if anyone knows the solution.
It sounds like you password protected your wp-admin area, we have a guide on this below:
https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/
I was working on user registration and login forms using User Submission form plugin. I have enabled the captcha option but unfortunately didn’t set any method. Now, when i am trying to login into my website it’s giving an error “ERROR:Captcha code error, please try again” but their is no option for any type of captcha in my login form, so now i am unable to login anyhow.
Plz help..
For troubleshooting errors, you would want to follow our guide below and disable plugins on your site:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Please please help me!
so i tried to update wordpress and pressed [update all]
Loaded for about 30 mins, now i have HTTP ERROR 500 on the admin panel.
For that specific error message you would want to go through our guide here:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
How much time do I have to wait until I can have access again?
If you resolve the underlying issue, you should not have to wait to log back into your site.
I have tried almost everything to log in my WordPress dashboard but it’s not allowing me to log in. I have changed the password in the wp-users table, cleared browser cache and cookies as well but still, it is showing the same error(invalid username or password).
You would want to reach out to your hosting provider and they should be able to see if there are any errors that could be blocking the password change.
Hello,
Nothing you described matches as the scenario as I faced with my site. I or others can enter my wp dashboard only with the role of administrator. Other users (editor, contributor…) cannot access dashboard. Is there any solution to this problem. Waiting for your reply.
To begin finding the reason for that error you would want to go through the steps in our guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Hi,
I changed the Url for both WordPress and bluehost now my account has been locked. Is there a way to unlock it
You would want to reach out to BlueHost and they should be able to help you
Hello,
After editing text and publishing I am having a very weird issue.
The website is online but when I went to my website all that I see is just the menu on the screen.
What can I do to fix this problem?
Any help would be most appreciated
Thanks
Dahlia
If you are just starting out and didn’t set a static home page then you should start seeing content when you publish posts on your site.
Hello..
Good afternoon.
I want to ask that if you want a developer to help you to design your website either partially or impartially, what position would you post him to, administrator or what?
Most developers would normally need admin access to be able to see everything and fix issues with the site and the back end of the site.
I update my WP site plug-ins today and then the site crashed and displays this error:
Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/swiftype-search/vendor/react/promise/src/functions.php on line 17
I cannot access my site at all, can anyone help please?
Cheers!
That appears to be an error with your swiftype plugin, you can disable the plugin and try to log in using the method in our article here: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Hello,
I have WordPress (latest version), Installed Locally with MAMP on my mac, and everything seems fine UNTIL, I activate a plugin. Once I activate this plugin, the entire thing crashes and I can’t do anything but to erase wordpress and reinstall it again. I literally can’t access anything on my dashboard, or any of the options such as plugins, etc. The whole thing is just frozen.
I don’t get any error or Syntax message, I simply can’t do anything at all.
Can someone please help me fix this issue?
Thanks and have a wonderful day!!!
You would want to reach out to the plugin’s support and let them know about the issue, you could also try the recommendations in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/
I have been locked out of wp-login.php on my pc only, after i overrided it by login via google plus but i can access wp-login.php through other devices…. please reply ASAP so that i can access it on my pc too
If you’re not using a security plugin on your site then you would want to reach out to your hosting provider. If you do have a security plugin you can disable it using the method in our article here:
https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
I was locked out of my wp admin panel after installing a premium theme, I guess it was as a result of many free themes and plugins I previously installed, I have been trying to get my ftp details from wordpress so I can troubleshoot from filezella,but it has not been ssuccessful.
For your FTP information, rather than reaching out to WordPress, you would need to reach out to your hosting provider and they would be able to give you that information.
I was attempting to update some pages on my website, and was eventually locked out of my website. Now, all I get when I go to the website, from any browser, is the following error message-
Parse error: syntax error, unexpected T_FUNCTION in /home/content/77/7030077/html/wp-content/plugins/redirection/redirection.php on line 100
I have no idea how to access my website and correct this error. Please help…
It looks like your redirection plugin may be encountering an error, you should be able to disable it using our guide here: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
to allow you to log back into your site.
Jetpack has blocked my IP address to the login page. However, the IP address that is shown is not mine, but originates in San Jose, Calif. I’m in Glens Falls, NY. I was instructed to send a link to my email address so I could try getting in.
Fortunately, only one of my sites is being attacked. But it is an important one, so I’m just a little freaked by this. I sure would appreciate any advice that would help me resolve this!
With Jetpack blocking your UP address, you would want to reach out to Jetpack’s support and explain the situation and they should be able to assist.
From today, I am getting this error message in wordpress after I started making changes to integrate and work with Woocommerce.
This is the message “You have reached the maximum number of requests that is permitted to make per hour. The current rate limit window resets on……”
Many things are not working in the WP Dashboard after I got this message. Google search did not provide much clue.
Why I am getting this message? Is WP or Woocommerce responsible for this? What is the fix?
You may want to reach out to your hosting provider to ensure that is not a limit set by them causing that error.
hi
I have come across an issue with the login attempts since I have activated my Loginizer plugin. I have been unable to login as an admin into my WordPress. I tried changing my password in my phpadmin, but it failed too. I tried login with the password and id from my Cpanel still it shows error in login id or password, please suggest me a solution.
You can disable the plugin using the method in: https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Hi,
I am trying to install WordPress on localhost and keep getting the message ‘Sorry, that isn’t a valid email address. Email addresses look like username@example.com.’. Any email I try (all valid and working) gets the same response! Can you advise please? Thanks
You may want to ensure there are no spaces or similar in front of the email you are attempting to use. If you’re trying to reset a password due to being locked out you would want to take a look at: https://www.wpbeginner.com/wp-tutorials/how-to-reset-wordpress-admin-password-on-localhost/
Hello,
My browser crashed whilst I was attempting to change the URL of my site on wp-admin and now I’m unable to access the log in page or see the site.
When I type in the URL of the site, I get the error message: This site is currently undergoing maintenance, and will be back shortly.
When I type in the /wp-admin URL it shows me to a log in screen and I enter my details only for it to return the error message: This site is currently undergoing maintenance, and will be back shortly.
Is anyone able to help?
Thanks,
Jess
You would want to take a look at our tutorial for that error here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-briefly-unavailable-for-scheduled-maintenance-error-in-wordpress/
I’m being told I don’t have any wordpress sites.
Hi Cynthia,
You may have a website built with a different website builder. Try to find out which one and then search on how to migrate from that website builder to WordPress.
WordPress is hosting my blog. I’m now being told I don’t have any sites yet I logged in and wrote a post on October 3. When I use admin in my url I’m taken to a political site. I have my receipt of payment to wordpress but when I’m logged in there’s no record of a payment. I’m not sure how to fix this. Thank you for responding.
Hi Cynthia,
Please contact WordPress.com support. They would be able to help you out.
After editing and publishing my new blog hosted with Bluehost, the front end of my website still shows a coming soon page. I don’t know what else to do.
Hi Teboh,
Login to your Bluehost hosting account dashboard and then click on ‘My Sites’ in the left column. Take your mouse over to your site and then select Manage site. On the next scree, click on the Settings tab. Here you will find the option to turn off ‘Coming Soon Page On My Site’.
I have an inactive wordpress site (about a year) and I cannot log in to the admin panel. I’m trying to either change it and start using it again or closing it out.
My issue was that I couldn’t remember the password and when I tried to reset it it would accept none of my email addresses.
Can someone please help? I’ve been searching for the answer and can’t find anything about not having access through email.
Hi Kelly,
Seems like it is a WordPress.com website. In that case you may want to contact their support and they will be able to help you out.
I locked myself out by installing a re-captcha plug-in, enabling it for log-in screen and then logging myself out. Unfortunately my log-in screen is created by another plug in and they don’t seem to be compatible. The log-in screen does not show the recaptcha and then when I try to log in it says incorrect details. Any ideas?
Hello,
So people from my work asked me to update the website but the guy who made it is gone and they can’t reach him. So I made a new website but now we can’t bring down the old one. Is it possible to do so without having the login? Cause they own the business but didn’t do the website…
Hi Eliza,
You will need to connect to your hosting account dashboard. This is where the old website’s files are stored. You may contact the hosting company and ask them for help. There are online tools that you can use to find out where the old website is hosted.
I am in desperate need. I cant get back into my wordpress account and everywhere i go for my site it show the 404 file or directory not found
What do I do?!
Hi Emma,
Please see our guide on how to fix 404 errors in WordPress.
Is it possible to get locked out when I’ve tried to log in for too many times? I was creating a code for a modal type login and had to log in and out several times to check. Would that be one of the possible reason why I’ll be locked out?
Hi Eymiel,
By default, WordPress doesn’t stop users from attempting to login. You can try as many times as you like. However, you can use plugins like Limit Login Attempts to change this.
I work for a medical supply manufacturer. We had our site designed by a web development company. The relationship has ended. We were never given the admin user name and password. Is there anyway where we can get access to the admin features? The developer won’t respond to our calls or messages.
Hi Stephen,
If you have access to the web hosting account for the website then you can use that to recover WordPress password using phpMyAdmin. If you don’t have access to the hosting account, then you cannot access the website.
Hello, I just did the move / migration from local to online using all in one migration WP. The website is online, it works but urls dont work my website is still under construction – – – – I can no longer access to wordpress ! – – – – I know I have to use id and password I used working in local but because it was saved in my internet browser I didnt have to enter it each time and I completely lost / forget it ! ANd I dont think changing it on localhost/phpmyadmin/ can be a solution because the migration has been done (?) PLEASE help me to find a solution – save my life — the website is for a client – it’s an urgency. Thanks
Hi Karin,
You can still reset password by launching phpmyadmin on hosting account’s cpanel dashboard.
I just switched my website over from WordPress.com yesterday. Everything was working fine or so I thought. Today I tried to log into my site via the /wp-admin/ page, but it is telling me that my e-mail, username, and password are all invalid. I tried to reset the password, but it told me there was no account linked to the address or the username.
I KNOW I am using the right information. I have tried to login on my phone, through the app, and on my computer. The only way I can get to the dashboard is by going to BlueHost and clicking on “My Sites.” It doesn’t even give me the option to log into WordPress from there.
I am so frustrated. PLEASE HELP!
Hi Lindsay,
Please try our WordPress troubleshooting guide to find out what’s causing the issue and how to fix it.
I changed phone #’s so I cannot get back into my worpress account as everything they wanna send me is on my phone?!
Now what?
Word press has no email help?!
Hi Roberto,
You are probably using WordPress.com. Please see our guide on the difference between self hosted WordPress.org vs free WordPress.com blog.
WordPress.com has a support forum where you can reach out and explain your issue.
Did you manage to resolve this? I’m having the same problem and I don’t know what to do! I can’t find my back up codes and the verification messages aren’t coming through to my old phone!
I am not able to access website admin page (wp-admin) which is built on wordpress. it shows 404 not found when i typed mywbsite/wp-admin/. Please assist
Every time i wish to access my wordpress dashboard which is installed in a namecheap hosting whenever i put my user ID and password then this message appears : You have been locked out due to too many invalid login attempts. Can anyone give me a solution
Hi,
I have a weird issue with my wordpress account.
I logged out and now that I want to log in again it says that my username and email don’t exist in wordpress, what can I do about it?
Thank you.
Hi John,
Please see our guide on how to deactivate plugins when not able to access WordPress admin.
I am having a very weird issue.
I have dpwnloaded a plug in for my website which shows my website in under construction mode.
I kind of lost my password, and when i go to the lost password it redirects me to the under construction page.
Also I am using site ground hosting.
So i am completely blocked out i am not able to recover my wp dashboard
Hey Sumayya,
You can deactivate plugin using FTP.
I cannot access my blog nor login to wp panel, but when I use a different Internet connection it works. So how to solve this if it has something to do with a particular connetion?
Same happened to me. I can’t access wp-admin page from my intetnet connection but when I use other internet connection or VPN, it opens. Please give me a solution.
same with me… is related to the internet. with data is ok and other people can access. but i can access other wordpress accounts I have without problem… the issue is with one particular account
Hi
I’ve locked myself out of my site. I had it offline on a local host while I was building it. All was fine it was the day to upload and do a paypal sandbox text. I uploaded all files to my host server, all good. But when I went to my website it wasn’t there just the host screen. I watch some videos on YouTube to get advice and one said change the URL in your WordPress dashboard. So I did and now when I got to login to my WordPress site it says it’s not there. Any help would be most appreciated
Thanks
Joni
Hey when i log on to my WordPress website it takes me to my website instead of my dashboard and when i click on dashboard to edit my website it just refreshes the page
here i have a blog when i move to admin panel of my blog, after login , work properly then suddenly automatically my admin panel down and even blog also can’t access, but when i use another network its normally open and move to again admin panel, same problem issue…
and hosting admin panel also blocked at same time
i dont know what is this
Hello – I don’t know if you can help me. I had a personal site & blog with a domain hosted through godaddy. Some time passed and I apparently forgot to renew my domain subscription – and I lost my rights to this domain. (I can currently buy it back for $1500- yikes). In any case, I’m fine with changing my domain, but in the meantime I want to access my admin dashboard to access what I had on my wordpress page (pictures, blogs, content, etc). I can’t use the normal log-in as I no longer have the domain – is there a back door to access this?
Hi Ashlei,
If your hosting account on GoDaddy is still active, then you can download a backup of your WordPresss site. If you don’t know how to do that, then follow our guide on how to manually create a WordPress backup.
I do not know what the error code is: my website says: Parse error: syntax error, unexpected ‘<' in /home/christoe/public_html/wp-includes/bookmark.php on line 26
I set up FTP, etc, but I'm not sure which one is line 26, and I do not know what the exact error is. I did not change the code in the first place. as I believe I was hacked. so I have no idea what is correct and what is incorrect code?
I used WP Clone plug-in to copy my site to a new domain so I’d have less work to do to start off but now whenever I try to get to the log-in page it says my IP has been blacklisted, please help!!!
In my WordPress site, I am not able to access the customize function. Each time I click on that it presents a blank screen. What should I do?
I cant get into my wordpress now. It keeps telling me to “enable cookies”. Well, I tried to enable cookies for my website name and for wordpress but it didnt really specify what address it needed to be enabled for but regardless it still gives me the error message. That was on Chrome. So I tried on safari and now it’s telling me my password is wrong when I know for a fact it’s not wrong because I just changed it due to it telling me my password was wrong before the “cookie” error. Im thinking that WordPress just wants to see me suffer..
I just activated the woo commerce site earlier today and it was giving me an internal server error every time I tried to do something so I deactivated it. I just reactivated it because I’m trying to set up my store on my site and the same thing happened only now I cannot log into my site at all I’m completely locked out all it says is internal server error and I can’t find a way to get in touch with anybody to fix it!! please help me somebody!!