Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

What to Do When You Are Locked Out of WordPress Admin (wp-admin)

One of the most common issues that our readers have is being locked out of their WordPress admin areas.

This can be caused by a lot of different reasons, which makes it tricky for beginners to troubleshoot.

Fortunately, we have 16+ years of experience troubleshooting and fixing WordPress errors, so we are here to help.

In this article, we will show you what to do when you are locked out of WordPress admin (wp-admin) so that you can regain access to your site.

What To Do When You Are Locked Out of WordPress Admin (wp-admin)

Why Are You Locked Out of WordPress Admin?

We often hear from users who are locked out of WordPress admin area. This is frustrating and can bring your productivity to a standstill. You can’t write posts, respond to comments, or do any work on your WordPress website.

If you are having trouble logging in to someone else’s site, then you should contact the site owner or admin to let them know. They can explain why you don’t have access or work with you to solve the problem.

If you are the site owner, then you can follow our troubleshooting steps below.

There are a 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 to your problem.

You can also refer to our WordPress troubleshooting guide to find out what is causing the issue and how to fix it. You might also find a solution in our list of the most common WordPress errors and how to fix them.

Expert Tip: Would you prefer to leave the troubleshooting to the professionals? Our WordPress Premium Support Services can troubleshoot and fix your WordPress errors in no time. We offer on-demand, 24/7 emergency support and affordable, one-time solutions for small businesses.

With that being said, let’s have a look at some steps you can take when you are locked out of WordPress admin. You can use the links below to quickly navigate to the error message you see:

Error Establishing Database Connection

Error Establishing Database Connection

Are you seeing the ‘Error establishing database connection’ warning on every page of your site? This message is shown for various reasons, such as a corrupt database or issues with your web hosting server.

If you are seeing this error when trying to log in, then please refer to our guide on how to fix the error establishing a database connection in WordPress.

500 Internal Server Error

Internal Server Error

Another WordPress error that a beginner may come across is “Internal Server Error”, or sometimes “500 Internal Server Error”. This error is displayed when there is something wrong, but the server is unable to identify where the problem is.

If you see this message when trying to log in to WordPress, then follow the steps in our guide on how to fix the 500 internal server error in WordPress.

404 ‘Not Found’ Error

Sometimes, users make a mistake when changing the WordPress address and site address in their WordPress settings. The next time they try to log in to their admin area, they see the error ‘Error 404 – Not Found’.

WordPress Address and Site Address

If this is happening to you, then you can check our guide on how to change your WordPress site URLs. You won’t be able to use Method 1 because you can’t log in, but the other methods should get you out of trouble.

Note: If you can log in to your site but see the 404 error when viewing one of your posts, then you have a different problem. You can learn how to fix the issue in our guide on how to fix WordPress posts returning 404 error.

403 Forbidden Error

Forbidden Error

Some users report seeing the “HTTP Error 403 – Forbidden” error when trying to log in to wp-admin. This error can be caused by incorrect file permissions, poorly coded security plugins, or your server configuration.

If you are seeing this error, then our guide on how to fix the 403 Forbidden Error in WordPress will help you track down and fix the problem.

401 Unauthorized Error

Unauthorized Error

Another message you might see when you are locked out of WordPress admin is the 401 error. This error is sometimes accompanied by a message saying, ‘Access is denied due to invalid credentials’ or ‘Authorization required’.

You can see this message if you have password-protected your WordPress admin folder. It can also be caused by a WordPress security plugin or security measures taken by your hosting company.

Please refer to our guide on how to fix the 401 Error in WordPress to learn six solutions that will help you regain access to your website.

Limited Logins

Limited Logins

By default, WordPress allows users to enter passwords as many times as they want. Hackers may try to exploit this by using scripts that enter different combinations until your website cracks.

To prevent this, we recommend that you limit the number of failed login attempts per user. However, this might mean that you find yourself locked out of your own website when you enter the wrong password too many times.

If you are in that situation, then you should follow the steps in our guide on how to unblock Limit Login Attempts in WordPress.

White Screen of Death

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.

This happens when you exhaust the memory limit. It could be caused by a poorly coded plugin or theme or 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

Incorrect Password Issue

There is nothing more frustrating than being told you have used the wrong password when you are sure you haven’t, and you even checked that your caps lock isn’t on.

This can happen if you were a victim of a hack, or you might just be making an honest mistake.

Worse still, when you try to change your password, you never receive the email because it goes to an address you no longer have access to.

Luckily, there is another way, and you can reset your WordPress password from phpMyAdmin. This method can be a bit overwhelming for new users, but it is your best hope for regaining access to your admin area.

Problems With Plugins

You may be locked out of WordPress admin due to a faulty plugin or theme. This may be the case if you can’t log in to WordPress admin after installing a new plugin or if the error message mentions ‘wp-content/plugins/’.

Deactivate All Plugins

To regain access to your site, you will have to temporarily disable your plugins. You can do that using FTP or phpMyAdmin by following our step-by-step guide on how to deactivate all plugins when not able to access wp-admin.

Lost Admin Privileges

Sometimes, you may be able to log in to your WordPress admin, but you don’t see any of the admin functionality. For example, you don’t have access to your themes or plugins.

This can happen if your user permissions were modified. It could be that hackers have infected your site and then deleted your admin privileges.

In this case, you should add an admin user to the WordPress database via MySQL (phpMyAdmin).

Add an Admin User via MySQL

Hacked WordPress Site

If you suspect that your site has been hacked, then there are other steps you may need to take.

A hacked website may look different, display different content, or automatically play music or other media. Worse still, it may be infecting your visitors with viruses, so you need to act quickly.

You can start with our beginner’s guide on how to fix your hacked WordPress site. We will show you how to identify the hack, restore your site from a backup, and remove any malware.

After that, you should protect your site from future attacks. We show you how to do that in our ultimate WordPress security guide.

Login Page Refreshing and Redirecting

Login Page Refreshing and Redirecting

Another type of login error is when your WordPress login page keeps refreshing and redirecting back to the login screen.

This can happen because of incorrect values for the site URL and home URL fields in the WordPress options table. It can also be caused by poorly configured permalink settings or redirects set in the .htaccess file.

To fix this problem, check our guide on how to fix WordPress login page refreshing and redirecting issue.

‘This Has Been Disabled’ Error

When you try to log in to your WordPress admin area, do you see the error ‘This has been disabled’? This message is displayed when you have gone to the wrong admin address.

A common WordPress security practice is to change the default admin login URL (domain.com/wp-admin) to something custom. This can help prevent hackers and bots from hammering your login URL trying to gain access.

If you forget that the URL has been changed and go to the old one, then you will see this error message. If you’ve forgotten the correct address, then you should check out our beginner’s guide on how to find your WordPress Login URL.

‘Briefly Unavailable for Scheduled Maintenance’ Error

'Briefly Unavailable for Scheduled Maintenance' Error

Are you seeing the ‘Briefly unavailable for scheduled maintenance’ error in WordPress? This error usually appears while updating WordPress core, plugins, or themes.

But if your WordPress site fails to finish the update, then you are left stuck in maintenance mode.

To fix the problem, you should check our guide on how to fix the Briefly Unavailable for Scheduled Maintenance error in WordPress. The guide will also explain why the error happens and how to avoid it in the future.

PHP Syntax Errors

PHP Syntax Errors

PHP errors can happen after you paste a code snippet from a WordPress tutorial or website. The wrong code can stop your website from working properly and stop you from logging in.

Often, beginners use the built-in WordPress editor from their dashboard. That feature is handy but can lead to disaster if you don’t know what you are doing.

That’s why we wrote our beginner’s guide to pasting snippets from the web into WordPress.

Note: In many cases, it’s safer to use a code snippets plugin like WPCode instead of directly entering custom code. For more details, you can see our guide on how to add custom code safely in WordPress.

If you are locked out of WordPress admin because of a code snippet, then you will have to fix the problem manually using an FTP program like FileZilla to access your files. If you are not familiar with FTP, then check our beginner’s guide on FTP.

After you have connected to your WordPress site using the FTP software, you should follow our guide on how to fix syntax errors in WordPress to correct or remove the code that you added.

Your Site Is Experiencing a Technical Issue

Site is experiencing technical difficulties

Sometimes, when trying to access your WordPress admin area, you may see a white screen or a message saying, ‘The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.’

You will need to log in to your administrator email account and open your inbox.

You should see an automated email from WordPress that will tell you which theme or plugin is causing problems on your site. It also provides a login link so that you can access your WordPress admin.

Email from WordPress about technical problem in your site

Simply click on the link, and you will be able to access your WordPress admin in recovery mode. Then, you will need to deactivate the plugin or theme causing the problems on your site.

However, you may not receive this email with the login link. In that case, please see our guide on how to use WordPress recovery mode.

We hope this tutorial helped you fix the ‘locked out of WordPress admin’ problem. You may also want to learn how to choose the best WordPress hosting or check our list of must have plugins to grow your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

230 CommentsLeave a Reply

  1. Carl

    I seem to have a hacker trying to access my back end using the Admin account and they keep locking me out of my own site. Is there a way to reset this lockout since this seems to be happening quite often to my site. I try to block the IP addresses of the hackers once I get access back but low and behold they did it again. Locked out and can’t login as Admin.

    Once I get back in I will prob create another user with all access so I am not completely locked out again but being locked out as Admin is getting quite frustrating. I think it is a plugin I installed that is setup to block the user if they fail to login correctly, too bad there is no way to assign an IP address to my Admin user since I have a static IP and only log in from the same internet connection when editing my site

    Any ideas on what I should do? thanks!

  2. Eline

    So I changed a code in functions.php and therefore an error occurred. My website isn’t loading anymore and I can’t log into the admin. I tried using FileZilla and followed the exact steps as you described. I was able to change the functions.php and removed the code. However, my website is still not working. I really don’t know what to do, hope you can help.

    • WPBeginner Support

      Do you see an error message when you visit your website?

      Are you sure you fixed the correct functions.php file? Each WordPress theme installed on your site has a functions.php file.

      Try switching to a default theme by renaming, /themes/ folder to /themes.old/ inside wp-content directory. Then create a new themes folder and then download Twenty Sixteen theme from WordPress.org. Unzip the theme and upload it to the new themes directory.

      Admin

      • Eline

        Hi, I managed to fix my website by replacing my functions.php in FileZilla by the functions.php from my theme which I found on the internet. Thank you for all the helpful information because otherwise I wouldn’t have known about FileZilla. I’m relieved that my website is fixed now!

  3. Nedžla

    Hello,

    I tried to change the footer letter color in the code (imported the code and deleted it in 2 or 3 places). Now I can not access my admin or open the page. It is a HTTP ERROR 500! Please help, it is my first page on WordPress and I do not want to loose it! Thank you.

  4. Martin

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-login.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-login.php on line 403

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-includes/pluggable.php on line 898

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-includes/pluggable.php on line 899

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-includes/pluggable.php on line 900

    Warning: Cannot modify header information – headers already sent by (output started at /home/windwapc/public_html/wp-content/themes/madar-lite/inc/customizer.php:392) in /home/windwapc/public_html/wp-includes/pluggable.php on line 1171

    This is what I see in my screen when I click on view admin in other to access my dashboard Please someone should help me.

    • WPBeginner Support

      Seems like issue with a theme or plugin installed on your site. Try deactivating all plugin and switching to a default theme like Twenty Sixteen. This will help you figure out which plugin or your theme is causing the issue.

      Admin

      • Teresa

        I have the same issue, however I cannot even log into my dashboard. I did go to my pluggable.php file and deleted all the spaces and extra lines but the problem still persists.

        • WPBeginner Support

          Hi Teresa,

          Why you deleted the pluggable.php file? It is a core file and you are not supposed to delete it. Please download WordPress, extract it on your desktop, locate the file pluggable.php in the wp-includes folder. Use an FTP client to upload this fresh file back to your website.

          We are assuming that you added some code to functions.php file which caused errors on your website. Please take a look at the steps mentioned in our WordPress troubleshooting guide for beginners for more detailed steps.

  5. Sharon Sinclair

    Hello, I`m in a right mess with my new site. A friend set it up for me to edit – which I did, BUT then I decided to change the URL as it had his name in it – and now I cannot get into it at all.

    Would anyone have any idea how I can overcome this issue?

    Many thanks in advance

  6. Karen

    Greetings all,

    I am new to the world of websites, and while trying to find a way to add ‘Read More’ buttons to the TwentyTweleve Theme, I added some code into the functions.php file and am now locked out :|

    I have reviewed the repair option, however I do not have a web host as I am still learning, and just use the wamp server to view my site. As a result I cannot use the FTP option and am hoping there is another way back in – please help.

    • WPBeginner Support

      you can just go to the wamp folder on your computer. Inside it you will find www or htdocs folder which contains your WordPress files. Locate the twenty twelve theme folder in /wp-content/themes/ and undo the changes in functions.php

      Admin

  7. Juliana

    I am helping a friend tweak a few things on her site (I’m a WP beginner). I made a few small changes (linked her instagram, edited a post, etc). Today when I tried to access the site (Main page & admin page)I got a 504 error message (Gateway Timeout). So I contacted the Web host and they said it was the theme that was causing it to crash. They changed the theme back to the default and I can now see the site and access the admin panel.

    The thing is, I really want to use that theme I had before, as that’s the theme she’s had for two years (with no problem) and she likes it.

    Any ideas what the problem could be? After it had been restored to the default theme, I tried changing it back to the previous theme and got the same error message and had to have my server put it back to default (twentyfifteen) Thanks!

  8. Jim Stevenson

    I started a second website cloned the existing site to it. Both sites are meant to be independent but thought it would save time to clone the first and then update it.
    Problem is I cannot log into the new site, my log in takes me only to the first site.
    How do I create a new log in for the new site?
    Do I have to start all over?
    Thanks for any tips and instructions!

  9. Misty Lounsbury

    had my WP files in sub-domain
    built site and done then went to replace existing site with index.php copy from the sub directory and now the site isn’t loading properly and I can not sign into the admin panel as it wont give me a sign on window

    Please help

  10. Amber Albrecht

    Help! What do I do? I have a Wordpress website hosted by another woman and her domain. She passed away unexpectedly. How do I take over paying for the site to keep it going? I have been running it for a year and promised her I would keep it going if something ever did happen. I do not have her admin info. I only have her domain name and my info.

    • WPBeginner Support

      Amber, it would be complicated. First, you will have to find out who is hosting the website. There are many online tools that can help you find out who is hosting the site by just entering the site address. Once you have found out the hosting company, you need to reach out to them.

      You will be asked to provide power of attorney, copy of death certificate, your identification information. In case you do not have power of attorney, then you will need to reach out to the next of kin or the estate who has control over the deceased belongings. They will have to separately contact the hosting company, provide them the same information, and give you the control of the site. After that you will be able to pay for the site and use it.

      Hope this helps.

      Admin

  11. Andreas

    Hi! I think you are the guys to help me. I was fooling around with my site last night, trying to set upp custom pages for specific users. Everything was working fine when I called it a night, but today it’s another story. When trying to login, I just get the error message “Blocked” on a otherwise white page. Any ideas what’s going on?

    • WPBeginner Support

      A number of things can happen. Please contact your web host, they will be able to help you better.

      Admin

  12. Norm

    Hi , I’m trying to fix a website for someone but the wp login page says A username and password are being requested by . The site says: “Restricted” instead of showing the login screen . The password and username are correct but it will not accept either , is there anyway around this without having to deactivate wp or loose any of the information in the website ? Any help will be greatly appreciated

    Thanks

  13. Ed Mooney

    I’ve had a blog, “Mists on the River” {formerly “Dusk to Dawn”) for six or eight years. I usually have no trouble entering a new post.

    Today my page appears as it would for any reader, but I can’t get the panel that let’s me open a new post, to appear, and the “edit” button at the bottom of my posts isn’t there.

    • WPBeginner Support

      May be you are simply logged out of WordPress. Add /wp-admin/ at the end of your blog and you will be able to access the login screen.

      Admin

  14. Angela MacGray

    Hi! Thanks for much for your assistance.

    I recently updated to the latest WP version,
    and now when I try to log in to my site, I can’t. There is a string of error messages pertaining to PHP and a plugin that seems to have gone awry.

    The first code looks something like this, although there are multiple, and all pertaining to the same plug in on line 152
    :
    Warning: mysql_real_escape_string(): Access denied for user ”@’localhost’ (using password: NO) in wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

  15. E. Hutchinson

    I was installing and setting the settings of a membership plugin and I think I didn’t create the login page. I accidently logged out and I have a “coming soon” plug in running, so now when I try to login I only get the coming soon splash page. Is there something i can do on the server side to regain access or deactive the coming soon plugin?

  16. John

    Hi, I did a terrible mistake. By default the domain was example.org, but trying to solve some other plugin related issue, I modified the .htaccess file and included a rule to redirect it to http://www.example.org. Dont have ftp access. So now even if I enter correct user/pass in my wp-admin, I get redirected to the same http://www.example,org without any error. Please help.

    • WPBeginner Support

      You can simply download your htaccess file to your computer for backup. After that delete it from your server. Access your website, go to admin area and then Settings -> Permalinks. Click on the update button to refresh your .htaccess file.

      Admin

  17. Obidigwe Kenechukwu

    Firstly is to thank you of your enormous supports that I got from reading your articles for the past few months I started my new website. I really appreciate.

    MY PROBLEM
    I always get “504 Gateway Error” most times I want to Publish a post/page/Image from my WP-admin section.
    I have sent countless of mails to my Hosting provider “Whogohost” but there feedbacks aren’t helping and the problem persists. Though the problem re-occurs temporarily but lasts up to days; It sucks.

    2 Users I added on the website complained they were unable to post on the website using the “Wordpress apps on android and blackberry phones”.

    Please I will be glad to get your solution on this problem of mine.

    Thanks and remain blessed.

    • WPBeginner Support

      First try to deactivate all your WordPress plugins and switch to a default theme. Try publishing a post or page and see if you still get the error. If you do, then try increasing php memory limit. If that does not help, then it is most likely an issue on your server. Contact your host for support.

      Admin

  18. Brandi

    I have a problem outside of these options and I’m so clueless on the subject that I don’t even know which way to direct myself. My brother hosted the non-profit website that I update. He has since burned personal bridges and it appears professional, as well, as I can’t access our site. I don’t know if he just stopped paying the wordpress fees, but I have no access. When I go to the actual website, my last update a few months ago is still there. Is there any way to access this wordpress account and establish on my own or do I need to create an whole new website?

    • WPBeginner Support

      Do you receive an email notification when a user leaves comment? If you do then you can receive password reset information on that email address.

      Admin

  19. Arpit Jain

    Hi,
    my website that is has got hacked and whenever I try to open the wp-login/wp-admin it shows the original page to me.
    Please tell me what should I do to retrieve my website

  20. Wayne

    Hello,

    I am completely locked out of my site and cannot access my dashboard. I have multiple user accounts that I use for testing and all of them are locked as well. When I try to log in I get “ERROR: The password you entered for the username spiderwayne is incorrect. Lost your password?”.

    Password Reset
    I tried to reset my password but after I click on the link I get in email to reset it I get a page that says “Your password reset link appears to be invalid. Please request a new link below.”

    I tried to register as a new user and get this message “ERROR: Couldn’t register you… please contact the webmaster !”

    I thought it was the Them-My-Login plugin because this seems to happen after I installed an update from them. So I FTP’d into my site and renamed it. So then when I tried to log in I was back at the default WordPress login page but again I try to log in I get that failed message saying “ERROR: The password you entered for the username spiderwayne is incorrect. Lost your password?”. By the way I also tried logging in using my email address.

    Next I renamed my whole Plugin directory so all the plugins would be disabled.. and I still can’t get in.

    Earlier today I went into phpMyAdmin and I changed the password (md5) on one of my accounts and again it didn’t work.

    The only think I can think of now but really don’t want to do is wipe out my site, get rid of the database and wordpress, reinstall everything and rebuild from a backup from last week and hope I don’t rebuild it with the same problem.

    Anything else you can think of for me to try?

    Thanks,
    Wayne

    • WPBeginner Support

      Try backing up your themes directory and .htaccess file, and then delete them from your server. Create new themes directory and download fresh copy of a default theme. Upload that theme and then try to access your website.

      Admin

  21. Carrie

    I’ve been scouring the Net for an answer and was hoping someone here can help! I was granted admin access to a friend’s blog and was temporarily locked out because I was trying to enter the wrong password. I was able to get it corrected but now every time I leave a comment on her site, my comment is held in moderation. I have all appropriate permissions; in fact when readers comment, nobody’s comment is set to be held in moderation! I have a suspicion WP has my IP address (and/or username) tagged due to the lockout. Do you know of a way we can fix this? I’ll be writing regularly for her blog and it’s a pain to be at a laptop logged in just to respond to reader comments. Thank you!

    • WPBeginner Support

      A number of possibilities here:

      1. There is some security plugin installed that has blacklisted your ip address.
      2. Go to Settings > Discussion scroll down to comment moderation and blacklist boxes and see if your username or ipaddress is listed there.
      3. Akismet is catching your comment as false positive. In that case please contact Akismet support.

      Admin

      • Carrie

        Thank you so much! I’ll look into these!

  22. Deborah

    Hey, so there are days where the backend decides to work and some days not.

    When I type in the URL for the backend, it either lets me through or it redirects me to the front end.

    I don’t know how to fix this!

    -I already cleared all cache and cookies

  23. Sybil

    How do I fix this when I login to my page I don’t see the dashboard. It says I need to update to version 4.2. This is on the home page of my website:

  24. Jai Kumar

    Hi, I have 2 websites with Wordpress. The main website is http://www.example.com and the sub website is http://www.example.co.uk
    I have lost the control on the main (.com) website. I am trying to login with wpadmin but it’s saying “ERROR: The password you entered for the username h is incorrect. Lost your password?” I tried your method but nothing help. I still have access with .co.uk website. Could you help me please?

    Thanks in advance.
    Jai

  25. Yvonne Bertoldo

    Hi, i am hacked and i cant access my wp-login. It only shows 500 internal server error. Help pls. Thank you:)

  26. Brian

    Got a bit of an odd situation here. I’m doing some marketing consultation for a company who has lost control of its Word Press site. The setup email was registered by an employee who is now disgruntled, and hasn’t been with the company for over a year. The password was known for the past year, but recently forgotten. The reset function is linked to his email address and he’s not responding to anyone’s requests to transition control over to the company owners.

    Is there a way for the owners to prove their ownership and put the admin email in their own hands without having to get the former employee to be involved in any way?

    We have a major marketing program that just went live and the lack of being able to access and update the website is causing serious financial harm to the company.

    Please help!

    Are there any readily available solutions that don’t involve the expense of making this a legal matter?

    • WPBeginner Support

      If this is a self hosted WordPress site, then you can access your site’s MySQL database using phpMyAdmin and update the email address under the users table.

      Admin

  27. Marah B

    Hi! I locked myself out of my admin page on my website adding a google ad under Appearance/Editor/Theme Functions. I tried downloading the FTP files that you recommended to help correct this mistake and they won’t open for me (I have a macbook pro).

    Please help :)

    • WPBeginner Support

      You can open the file in TextEdit app on your Macbook. You need to edit your themes functions file to undo the changes that caused your site to stop working.

      Admin

  28. Phil

    I’ve changed the Wordpress Address URL in the General Settings of my Wordpress site thinking tha I was changing the page that showed as the Home page and now I can’t get access to the wp-admin.

    My website is also now showing as text and has no design to it.

    Help! Please! :)

    • WPBeginner Support

      Connect to your website using an FTP client. Edit wp-config.php file. Add these two lines, just before the line ‘/* That’s all, stop editing! Happy blogging. */’

      define('WP_HOME','http://example.com');
      define('WP_SITEURL','http://example.com');
      

      Don’t forget to replace example.com with your own URLs.

      Admin

      • Sarah

        Thanks for that but when you do this and get back in, you cannot ‘reset’ the url in the main admin area?

        Is there a way one can do this please?

        • WPBeginner Support

          You can also use functions.php file to update URL. Simply paste this code in your functions.php file:

          update_option('siteurl','http://example.com');
          update_option('home','http://example.com');
          

          Replace example.com with your site url.

  29. Diane La Costa

    I am completely locked out of my wordpress. Cannot remember email used or password. I tried all of the emails that I still have access to.

    Is there a number or email to the people at wordpress that I could explain this problem to?
    I cannot find one anywhere! Help!

  30. Tyko

    Hi

    I managed to make a change at the website and/or wordpress adress/URL under settings in admin. Since then as I try to log in I get Error 404 – Page Not Found.

    I can see the rest of the site and the text but the whole design is gone. Its all text.

    Plz guide me so that I can fix this!

  31. nikhil

    what should we do if we don’t have ftp access to the website?

  32. Dean Knight

    Hi, I moved wordpress from domain.com/blog to the main directory using the steps as directed in under the heading “Moving Directories On Your Existing Server” on this page:

    http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Within_Your_Site

    I know want to update wordpress and it wont allow me to do so.

    I am quite happy to make a back up and uninstall / reinstall wordpress and import, but, everytime I have done this in the past I never have images back in the media library and have to manually upload all images.

    Whilst this has been a bit of a drag in the past, the site I know need to do this for has hundreds of images on hundreds of pages.

    What is the best way around this??

    Many thanks

    Dean

  33. ozlem

    Hi, I changed my admin password on myphp database exactly as instructed here, generating an md5 level password from the link in this tutorial. But now I cannot even reach my website and I get “error establishing database connection”. What can I do? Something went terribly wrong.

  34. Amit Dadhwal

    Hi,
    I have wordpress Multisite. When i am trying to open my one of website its automatically start download & my website is not open even i have full access of my dashboard. How can i fix it.

  35. WPBeginner Staff

    First lets get your site back.

    The reason you can’t connect to FTP using Filezilla is probably that you are entering incorrect hostname, username, or password. You can ask your webhosting provider to provide these details to you.

    Alternately you can use File Manager in cPanel. Login to your hosting account and find the File Manager. It is just like FTP only that it works inside your browser. Locate your functions.php file and edit it to remove the code you added earlier.

    As for adding Google Maps, checkout our guide on how to add a Google Map in WordPress.

  36. Doline Myburgh

    Hi there.
    Hoping for some help. I’m new to WP, and still finding my feet. Managed to create a rather nice site, and as a final touch decided to ad a google map of some sort into the contact page. All the plug ins that I looked at called for the ‘simple code’ to be incerted. But ofcourse I could not figure out WHERE exactly this should be incerted. So I googled, and it was suggested that the coding should be added into the function php. and the ‘short code’ into the text part of widgets.
    Thus I added the coding at the end of the existing coding in the function php. and when I pressed the button, manage to make my whole site dissapear. I now KNOW NOT TO MESS WITH FUNCTION CODING.
    I know where the error occured, and could easily fix, if I could just get rid of the white screen.
    Then I read that I can try via FTP (Filezilla) and did use filezilla before, so that should be ok.
    NOT.
    I type in my host, username and password, and it runs it’s script, but then ends with red lettering: Critical error. Could not connect to server.
    Now what? Any other suggestions?

  37. Pete

    I was messing around with “footer plhgins” and decided that they where troublesome. so I deleted one of them called “sticky footer” and in a sense, thats right, sticky. It messed up my home page and so trying different was to delete an invisible page “behind” the home page was taskfull but I did it however, when I went to put a “new” home page with the same data as the original, it worked but would not return to “home” when clicked from another page. I also noticed that certain words changed to blue and became ad words within my site. This after I added a security plugin the day before. so messing with another plugin to try and remove the malware, was unsuccessful so I brought out the big gun “spybot” to try and clean up the mess. Well, while doing so, I must have removed something and now I have zero access to my site, My wp-admin is not recognized as if it disappeared. what do I do the fix this? or how do I take the site dow and rebuild?

  38. Edwin Lynch

    Okay. I was hacked. The whole server was royally hacked. I created a new username with admin permissions, but still couldn’t get in. They had changed all user usernames to admin but demoted the permissions on all. So what I did was 1. delete all security plugins and clean up your .htaccess 2. delete users with your email first. 3. create a new user with admin permission (like you say on this site – the exact tutorial I used). 4. Don’t try and log in with the new user. Use the lost password and the email address (not username). 5. I created a nasty password with the change password email and presto – I was in. Now it’s a matter of re-installing all plugins and clearing out other users.

  39. Steven

    Hi. I need help. I have lost all access to my admin page on my website.
    I know I have not changed my password or user name. I have tried following the reset password help on the forums but I can not as of yet find any proof of purchase. Can you please advise me on what else I can do.
    Kind regards
    Steve

    • WPBeginner Support

      Steven,

      We can not understand, why do you need proof of purchase to reset your password? Did you try contacting your webhost? Do you remember the email address associated with your WordPress account or web hosting account?

      Admin

      • Steven

        There was a password reset page that asked for website address and email address and also proof of ownership, that is why in my original message that I could not find proof of purchase as one of the questions was please provide your paypal transaction number.

      • Steven

        There was a password reset page that asked for website address and email address and also proof of ownership, that is why in my original message that I could not find proof of purchase as one of the questions was please provide your paypal transaction number.
        My web host? I have UKcheapest would the be the host?

      • Steven

        Hi guys, all sorted thanks to my better half. Many thanks for taking the time to reply.
        Kind regards
        Steven

  40. Nick

    Help!

    I am locked out of my admin. I have loaded the Plug-in: “Maven Member” which restricts access to specific pages. I was testing the registration pages by adding new members as basic subscribers or participants and I never got around to re-setting up my administration access through the plugin. Now when I enter in my username and password, it comes up as “Forbidden”

    I’m thinking that the plug-in overrides the original access (of Course) buy now I have no way of accessing my wordpress admin.

    I tried changing the names of the plugin file and the plugin root folder in the ftp – didn’t have an effect. And now, any attempt to login from the website, even when registering through the new plugin, for limited access, comes up as “forbidden”

    Any ideas. have a lot of work and no ability to do it.

    _ thanks in advance!

    • WPBeginner Support

      Try deleting .htaccess file. If this does not solve your issue contact plugin’s support.

      Admin

  41. Jrew

    Getting Error Message: “Cannot modify header information”

    Neither my username or password have been changed and I am locked out of one of my WordPress accounts.

    Anyone recognize this error message and know what to do to get around it?

    -Jrew

    • WPBeginner Support

      Do you remember the last thing you did before getting this message? Most probably you installed a plugin or changed some code. You would need to deactivate all your plugins or undo the changes you made before getting this error.

      Admin

  42. Emma

    Help I am locked out of my WordPress completely. I tried to set up a password protection for one of my pages within the .htaccess :

    AuthType Basic
    AuthName “restricted area”
    AuthUserFile /home/yourusername/html/protected-dir/.htpasswd
    require valid-user

    When I tried to change it back it kept a asking for a username and password. I was not aware i gave it one. Noe even the public cannot access the website without a username and password. PLEASE HELP!

  43. Winfred Mkochi

    I have been locked out because I was trying to change domain name (Site and Home). How can I get access to my Dashboard again?

    • WPBeginner Support

      You can edit site and home url by changing them in wp-config.php file using an FTP client.

      Admin

      • Winfred Mkochi

        THANKS.

  44. Lee Williams

    I have a WP site and it has been hacked by the “Turk Hack Team” They have changed my password. Changed my email address to access password reset and they have some how deleted my user name too. When I try for recovery using the “recovery account form” it tells me I don’t have an account. Says I must be on Wordpress.org not Wordpress.com. But the last password resets in my emails are .com.
    I haven’t got a clue where to start! don’t even know how to contact Wordpress to prove I own my domain and site!!!!
    How are you suppose to get it fixed if you cant make contact?

    • WPBeginner Support

      Contact WordPress.com support. They have other ways for you to prove your ownership of the blog. On the other hand if your site was on WordPress.org you would have had much better control on your site and you could have recovered it without relying on a third party.

      Admin

  45. Sue Ellam

    My website is nearly complete but my web designer has gone sick and I have no access to the site to get it finished as he never gave me the passwords. The designer isn’t in communication with me at all as I understand he is seriously ill and I don’t want to have to start again from scratch.

    What do I do please? Surely there must be a way of accessing the website in this kind of scenario. I have proof of ownership and the site has been paid for.

    I would really appreciate your advice.

    Thank you.

    • Editorial Staff

      If the website is hosted under a hosting account that you own, then you can request the hosting company to grant you access. If not, then you are pretty out of luck.

      Admin

      • Sue Ellam

        Thank you for your reply. It was very helpful.

  46. Anne

    I am desperately looking for help. I am locked out of my WordPress blog, because the Log In does not recognize my password. Every time I am prompted to change it, I do, and it is rejected every time. Every solution to my issue involves being on my blog and I can’t get on. Is there any tech support available.

    • Editorial Staff

      Hey Anne, usually your web hosting provider should be able to help you out with this.

      Admin

      • Anne S. Haskell

        Thanks, but as I understand it, it is my web hosting provider that was keeping me out. It took me a couple of days, but I finally figured it out.

  47. indrajith

    the thumbnail is so funny.. LOL

  48. Gautam Doddmani

    definitely a very helpful guide…btw the featured image is awesome lol :D

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.