WordPressintermediate

WordPress Admin Not Loading: Fix the Dashboard Blank or Redirect Loop

WordPress admin not loading? Diagnose a blank wp-admin screen or redirect loop by clearing cookies, isolating plugins, and inspecting PHP error logs.

Published
Dark server corridor with orange diagnostic pulse and a locked admin panel door glowing in the background.

WordPress admin not loading usually means a PHP fatal error, an infinite redirect loop caused by incorrect URL settings, or a browser cookie conflict. The quickest recovery path is to identify which condition is present before touching configuration files.

The symptom matters: a completely blank white screen on /wp-admin/ signals a PHP crash; an infinite loop with ERR_TOO_MANY_REDIRECTS indicates a URL or SSL mismatch; a partial load that stalls signals a slow or failed admin-ajax request. Each cause has a distinct fix.

Quick diagnosis: what type of failure is this?

Open your browser’s developer tools (F12 → Network tab), then navigate to https://yourdomain.com/wp-admin/. Look at the first row in the network log:

  • Status 500, empty response body: PHP fatal error. Proceed to Step 1.
  • Status 301 or 302 looping repeatedly: URL or SSL mismatch. Proceed to Step 2.
  • Status 200 but page stays blank or half-rendered: JavaScript crash or memory exhaustion. Proceed to Step 3.
  • Login page redirects back to itself: Expired or blocked authentication cookies. Proceed to Step 4.

Before you change any file

  1. Download a local copy of wp-config.php and .htaccess from your server.
  2. Confirm you have FTP/SFTP or SSH access—you may need to modify files outside the WordPress dashboard.
  3. Note the exact time the problem began. Correlate it with the most recent plugin update, WordPress core update, or hosting migration shown in the plugin changelog.

1. Read the private debug log

WordPress suppresses PHP errors on production sites by default. Enable private logging to expose the real error without displaying it publicly:

Open wp-config.php and add these lines immediately before /* That's all, stop editing! Happy publishing. */:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', '0' );

Reload /wp-admin/ in your browser, then read the log over SSH or via your file manager:

tail -n 50 wp-content/debug.log

Look for lines containing PHP Fatal error: or PHP Parse error:. The log names the exact file and line number causing the crash—usually a plugin or theme file. Once you identify the problematic extension, skip to Step 5.

Always disable debug output once you are done:

define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );

2. Correct the WordPress site URLs

An admin redirect loop most often happens after migrating between domains, enabling HTTPS, or installing a plugin that writes the wrong siteurl or home value.

Check via wp-config.php (bypasses the database):

Add these two lines to wp-config.php temporarily, substituting your actual domain:

define( 'WP_HOME', 'https://yourdomain.com' );
define( 'WP_SITEURL', 'https://yourdomain.com' );

Try loading /wp-admin/ again. If it works, your database values were wrong. Log in and go to Settings → General to correct both WordPress Address and Site Address to the correct HTTPS URL, then remove the two define() lines from wp-config.php.

Fix via WP-CLI if you have SSH access:

wp option get siteurl
wp option get home
wp option set siteurl 'https://yourdomain.com'
wp option set home 'https://yourdomain.com'

If the site uses Cloudflare or another reverse proxy, confirm the proxy is terminating SSL correctly and forwarding the correct X-Forwarded-Proto: https header to the origin server.

3. Raise the PHP memory limit

An admin panel that loads blank or stops mid-render can indicate memory exhaustion. WordPress sets a default ceiling of 40 MB for the front end and 256 MB for the admin area, but hosting providers often impose lower server-side limits.

Add this directive to wp-config.php:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

If your host enforces a lower limit at the PHP level, add or edit this line in .user.ini or php.ini in your site root:

memory_limit = 256M

Reload /wp-admin/. If the dashboard appears, check Tools → Site Health → Info → Server to confirm the new limit is active. Track down the cause—a memory leak in a plugin typically surfaces under Xdebug or WP Query Monitor profiling.

4. Clear authentication cookies

WordPress authentication cookies store a salted hash of your credentials. If those salts were refreshed (by a plugin, migration, or manual wp-config.php edit), every existing cookie becomes invalid. The browser keeps replaying it, causing an apparent login loop.

  1. Open an Incognito or Private browsing window—this starts with no existing cookies.
  2. Navigate to https://yourdomain.com/wp-admin/ and try logging in.
  3. If the incognito login succeeds, the problem is the stale cookie in your normal browser profile. Clear cookies and site data for your domain in your browser settings, then log in normally.

If all browsers fail after the incognito test, the issue is not cookies. Regenerate the authentication secret keys and salts in wp-config.php:

  1. Visit api.wordpress.org/secret-key/1.1/salt/ to generate a fresh set.
  2. Open wp-config.php and replace the entire block of define( 'AUTH_KEY', ... ) lines with the freshly generated values.
  3. Save and reload.

5. Isolate plugins and the active theme

After a plugin or theme update, a fatal conflict can lock the admin. Disable all plugins via the filesystem without requiring dashboard access:

Via SSH:

mv wp-content/plugins wp-content/plugins-disabled
mkdir wp-content/plugins

Via WP-CLI:

wp plugin deactivate --all

Load /wp-admin/. If the dashboard appears, the fault is in a plugin. Re-enable plugins one at a time:

wp plugin activate plugin-slug

Reload after each activation. When the admin breaks again, that last plugin is the culprit—update it, replace it, or contact its developer.

If disabling plugins does not help, disable the active theme. Rename its folder in wp-content/themes/ via SFTP or run:

wp theme activate twentytwentyfour

WordPress falls back to an available default theme when the active theme folder is missing.

6. Repair the .htaccess file

A corrupted .htaccess file can break all WordPress routing, including /wp-admin/. Download a backup copy, then delete the file from the server. Load /wp-admin/—if it works, your rewrite rules were corrupt. Log in, go to Settings → Permalinks, and click Save Changes to regenerate a clean .htaccess automatically.

If your host uses Nginx instead of Apache, there is no .htaccess. Instead, ask your host to verify the Nginx try_files configuration matches the standard WordPress Nginx block from the WordPress Nginx documentation.

Verify the recovery

  1. Load /wp-admin/ and /wp-admin/post-new.php in an incognito window to confirm login persists across pages.
  2. Check the browser Network tab for any remaining 500 or redirect-loop entries.
  3. Confirm that Tools → Site Health shows no critical configuration issues.
  4. Delete or lock /wp-content/debug.log after retrieving the error details:
rm wp-content/debug.log
  1. Remove the WP_DEBUG, WP_HOME, and WP_SITEURL overrides from wp-config.php once the admin is stable.

Rollback and escalation

If all steps above fail:

  • Review the server’s main error log: /var/log/apache2/error.log or /var/log/nginx/error.log. Look for PHP-FPM segfaults, opcache corruption, or disk-full messages that occur before WordPress initializes.
  • Verify PHP version compatibility. Moving to PHP 8.2 or 8.3 without updating older plugins causes fatal syntax errors. Temporarily roll back to PHP 8.1 from your hosting control panel.
  • If the admin stopped loading immediately after a database migration, cross-reference with our WordPress database connection error guide.
  • A blank admin after disabling maintenance mode is covered in the stuck maintenance mode guide.

Source and version notes

This guide was verified against WordPress 6.7 and PHP 8.1–8.3. WP-CLI commands require WP-CLI 2.10+. URL fix procedures apply to standard single-site installations; WordPress multisite network admin uses different URL configuration.

Tags:
  • #WordPress admin
  • #wp-admin
  • #dashboard not loading
  • #plugin conflict
  • #PHP error

References

  1. developer.wordpress.org
  2. developer.wordpress.org
  3. wordpress.org
  4. wordpress.org