WP Admin Panel Not Working? Step-by-Step Fix
When your WordPress admin panel won’t load, you’re locked out of your site’s backend, which can happen for a few common reasons. This guide walks you through the most likely causes and gives you clear, step-by-step fixes to get wp-admin working again, starting with the quickest and least technical solutions.
Why Does the WordPress Admin Panel Stop Working?
The admin panel (usually at yoursite.com/wp-admin) can fail for reasons ranging from a simple browser cache issue to a corrupted plugin or a server-side configuration problem. Understanding the root cause helps you choose the right fix. The most frequent culprits are:
- Browser or DNS cache – your browser or your internet provider’s DNS is showing an old version of the page.
- A faulty plugin or theme – a recent update or a conflict between plugins can cause a “white screen of death� or a redirect loop.
- File permission errors – incorrect file ownership or permissions on your server can block PHP scripts from running.
- Corrupted .htaccess file – this file controls URL rewriting and access rules; a mistake here can break admin access.
- PHP memory limit – if your site exceeds the allowed memory, the admin panel may fail to load.
Step 1: Clear Browser Cache and Try a Different Browser
Before touching any files, rule out the simplest cause. Clear your browser’s cache and cookies, then try accessing yoursite.com/wp-admin again. If it still fails, open the site in an incognito/private window or on a different browser. If the admin loads there, the problem is local to your browser, not your WordPress installation.
Step 2: Check If the Whole Site Is Down or Just the Admin
Open your site’s front page in a browser. If the front page loads but wp-admin gives an error, the issue is specific to the admin area. If the whole site is down, the problem is more fundamental—likely a PHP error, a database connection issue, or a server problem. In that case, check your email for error messages from your hosting provider or look at the site’s error log (usually in wp-content/debug.log or your hosting control panel’s log section).
Step 3: Deactivate All Plugins via FTP or File Manager
If the front page loads but the admin is broken, a plugin is the most likely suspect. To test this without logging into the admin, you need to temporarily deactivate all plugins by renaming the plugin folder.
- Connect to your site via FTP (like FileZilla) or use your hosting control panel’s File Manager.
- Navigate to
wp-content/and find the folder namedplugins. - Rename the entire folder to
plugins_old. If you can’t rename it, you can rename individual plugin folders inside it, but renaming the whole folder is faster. - Try accessing
yoursite.com/wp-adminagain. If it works, a plugin was the problem. - To find which one, rename the folder back to
plugins, then rename each plugin subfolder one by one, checking the admin after each rename. When the admin breaks again, you’ve found the culprit.
Step 4: Switch to a Default Theme
If deactivating plugins doesn’t help, your theme might be causing the issue. You can switch to a default WordPress theme (like Twenty Twenty-Four) by renaming the theme folder.
- In
wp-content/themes/, find your active theme’s folder (the name is shown in the site’s front-end source or in the database). - Rename it to something like
themename_old. - WordPress will automatically fall back to a default theme, and the admin should load.
- If it does, your theme was the problem. You can then reinstall the theme from a fresh copy or contact its developer.
Step 5: Repair the .htaccess File
A corrupted or incorrectly modified .htaccess file (on Apache servers) can cause redirect loops or 500 errors on the admin. To fix it:
- In your site’s root directory (where
wp-config.phpis), find the.htaccessfile. If you don’t see it, enable “show hidden files� in your FTP client. - Rename it to
.htaccess_old. - Try loading
wp-admin. If it works, the old file was the issue. - Go to Settings → Permalinks in the admin and click “Save Changes� to regenerate a fresh
.htaccessfile.
Step 6: Increase PHP Memory Limit
If you see a “Fatal error: Allowed memory size exhausted� message, your site needs more memory. You can increase it by adding a line to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
Add that line just before the “That’s all, stop editing!� comment in wp-config.php. If that doesn’t work, your hosting provider may have a hard limit; contact them to raise it.
Step 7: Check File Permissions
Incorrect file permissions can block WordPress from reading or writing files, which often breaks the admin. The standard permissions are:
- Directories: 755
- Files: 644
- wp-config.php: 600 (or 640 if you have a specific setup)
You can change permissions via your FTP client or File Manager. Right-click the folder or file, select “File Permissions,� and enter the numbers. Be careful not to set files to 777, as that’s a security risk.
Step 8: Repair the Database
If none of the above works, your database might be corrupted. WordPress has a built-in repair tool:
- Add this line to
wp-config.php:define('WP_ALLOW_REPAIR', true); - Visit
yoursite.com/wp-admin/maint/repair.php. - Click “Repair Database.�
- After it finishes, remove the line from
wp-config.php.
Frequently Asked Questions
Why do I get a “404 Not Found� error on wp-admin?
This usually means the .htaccess file is missing or the server isn’t configured to handle WordPress rewrites. Try renaming .htaccess as described in Step 5, or contact your host to ensure mod_rewrite is enabled.
What is the “white screen of death� and how do I fix it?
It’s a blank white page with no error message, caused by a PHP fatal error. To see the error, enable debugging by adding define('WP_DEBUG', true); and define('WP_DEBUG_DISPLAY', true); to wp-config.php. Then reload the admin; the error message will appear, telling you which file is causing it. Usually it’s a plugin or theme.
Why does wp-admin redirect me to the login page even when I’m logged in?
This often happens due to a mismatch between the site URL and home URL in the database, or a caching plugin. Try clearing your browser cache and any caching plugins. If that fails, check the siteurl and home values in the wp_options table via phpMyAdmin—they should match your domain (with or without www).
Can I fix the admin panel without FTP access?
Yes, if your hosting control panel has a File Manager, you can use that to rename plugin/theme folders and edit files. Some hosts also provide a “Restore� feature that rolls back recent changes. If you have neither, contact your host’s support—they can often help.
My admin panel works but the front end is broken. What now?
That’s usually a theme or plugin issue affecting the public site. Deactivate all plugins and switch to a default theme using the same methods above. If the front end recovers, reactivate items one by one to find the culprit.
Is it safe to edit wp-config.php directly?
Yes, as long as you make a backup first and only change the lines mentioned. Avoid removing the closing ?> tag if it exists, and never add code that you don’t understand. If you’re unsure, use a child theme or a plugin that provides a safe interface.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.