[[INSTRUCTION: ]] # Help! My WordPress Admin is a White Screen, but the Site Works (or Vice Versa) WordPress is powerful — but sometimes it breaks in confusing ways. One of the more baffling errors is when your admin dashboard (wp-admin) goes blank (a white screen) while your site’s front end still works — or sometimes the front end is blank while the back end is fine. In this guide, we’ll explore what causes this behavior, how to diagnose it, and how to fix it — step by step. What’s Actually Happening Behind the White Screen? When your WordPress admin (wp-admin) goes blank but your website still loads, it means something’s breaking only in the admin execution path — not the front end. This can happen if: A plugin uses an admin-only hook that’s failing. The admin is consuming more memory and hitting PHP limits. A theme or custom code has syntax errors that load only in dashboard mode. The reverse can also happen: your site goes blank while the admin area still works — usually due to template or front-end function errors. Why Admin or Front End Alone Can Break Why would one side break and not the other? Here are some key reasons: Scenario Why It May Break Only Admin Why It May Break Only Front End Plugin or Theme Hook Errors Some plugins use admin-only hooks, filters, or menus. If those functions break, admin fails. Conversely, front-end rendering code (template functions, page builders) may break without affecting admin. Capability / Permission Checks Errors in capability checks (user roles, current_user_can) happen only in admin. Front-end does less granular capability logic, so issues there may avoid breaking site. Memory / Limits Admin often uses heavier scripts (plugins, page builders, dashboard UI). That extra load can exceed memory there first. Heavy front-end pages (complex templates, large loops) may hit memory limit even if admin survives. Output Buffering & Headers Admin sends many headers and output buffers; stray whitespace or ?> extra lines can break admin but not front side. Front-end sometimes more tolerant (less header logic) so it may survive minor whitespace errors. In practice, you’ll often find the offending code is in a plugin or theme file that’s only run in admin, or an error in the admin hook path. Common Causes Here are the frequent culprits when admin or front end becomes blank: Plugin conflict or error — a syntax error, undefined function, or bad update in a plugin Theme code errors — especially in the functions.php or admin-related code PHP memory exhaustion — running out of memory in admin or front-end contexts Whitespace / extra output — stray whitespace before <?php or after ?> that breaks headers Fatal errors in hooks — filters or actions that run only on admin pages Incorrect file permissions — some files not readable or writable by PHP Corrupted WordPress core files — missing or corrupted wp-admin or wp-includes files .htaccess / server misconfiguration — rewrite rules or PHP settings that only affect certain path (admin or root) How to Diagnose the Issue (Step-by-Step) Before fixing, you must identify the source. Here’s how: A. Enable Debugging Edit your wp-config.php file and set: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); This logs errors to wp-content/debug.log without showing them to visitors. B. Check the Error Log After reproducing the blank admin or front-end, open wp-content/debug.log and look for the fatal error message to identify the file and line number. C. Try Admin via Recovery Mode If you have WordPress 5.2+, sometimes WordPress sends you a recovery email for fatal errors. That gives you access to admin to disable problematic code. D. Deactivate Plugins If admin is blank but front works, use FTP / file manager to rename wp-content/plugins folder to something like plugins_old. This deactivates all plugins. See if admin comes back. If it does, reactivate plugins one by one to find the culprit. E. Switch Theme Rename your active theme folder in wp-content/themes to force WordPress to fallback to a default (Twenty Twenty-Three, etc.). If admin or front returns, the theme contains the error. F. Check whitespace / closing tags Open functions.php, wp-config.php, wp-settings.php (if necessary) and check for stray whitespace before <?php or after ?>, or blank lines after closing PHP tag causing header issues. Many times, removing closing ?> at the end helps. This is a known cause of admin blank screen. If memory limit is too low, heavy admin tasks may break. Try increasing memory in wp-config.php or server php.ini. H. Re-upload Core Files Sometimes WordPress core files get corrupted. Download a fresh copy of WordPress and replace wp-admin and wp-includes folders (but keep wp-content). Step-by-Step Fixes Here’s a methodical sequence to fix this split white screen issue: Step 1: Backup your site Don’t experiment without a backup. Save files and database. Step 2: Enable debug logging (As in section 4A) so you can catch error messages. Step 3: Deactivate all plugins Rename plugins folder → test admin or site. If that doesn’t fix, go to next step. Step 4: Switch to default theme Rename active theme folder → WordPress defaults to core theme. Test again. Step 5: Check and remove whitespace Open functions.php, wp-config.php, and any custom PHP code files. Remove extra blank lines or spaces especially before <?php or after ?>. Step 6: Increase PHP memory Add in wp-config.php: define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '512M'); Also try server-level settings if permitted. Step 7: Reupload WordPress core Replace core files with fresh ones except the wp-content folder and wp-config.php. Step 8: Check file permissions Ensure proper permissions, e.g. files = 644 and folders = 755 (or as your host requires). Step 9: Restore a working backup If none of the above resolves it, restore from backup. Preventing White Screen Errors Test changes in a staging environment before applying to live site Use a child theme rather than editing parent theme directly Avoid inserting whitespace or closing ?> in PHP files Use error-safe code (wrap in function_exists(), etc.) Monitor plugin updates and compatibility before applying them Use a good managed hosting environment with error logs and memory buffer Keep version control (Git) so you can revert if something breaks Frequently Asked Questions Q: Why did only admin break but front-end still works? A: Because the faulty code executes only in admin context (hooks, admin-only includes) or admin uses heavier resources (memory, UI code) which push it over limits. Q: How do I access admin to fix? A: Use FTP or recovery mode to disable plugins or theme so admin loads again. Q: Can a plugin’s update cause this? A: Absolutely. Many users face blank admin screens after updating a plugin. Q: Will increasing memory always fix it? A: Not always. If the root cause is syntax error, faulty code, or file corruption, memory increase may not help. Q: Can I do this without developer help? A: Yes — if you’re comfortable with FTP and editing small PHP files. But always take backups. Final Thoughts A white screen in admin or front-end while the other side still works is frustrating — but it’s almost never irreparable. With the right debugging steps, you can isolate the error (plugin, theme, memory issue, whitespace) and bring your site back online. If you’d like, DebugPress can assist in diagnosing and fixing the issue quickly — so your admin and site remain fully functional without downtime.