Updates
Rolling Back Broken WordPress Updates When Admin Access Is Lost
When a WordPress plugin or theme update breaks your website and locks you out of the admin dashboard, you cannot simply log in and click a rollback button. To fix the issue safely, you must isolate the broken extension, replace its files with a known stable version using FTP, File Manager, or WP-CLI, or restore a host backup if database schema changes occurred. Always take a complete file and database backup before making any manual changes to your server.
What Happens When an Update Breaks Your Site?
Clicking "Update" on a plugin or theme is usually routine, but severe breaks can occur if the new code contains a PHP syntax error, conflicts with another active plugin, or requires a higher PHP version than your server runs. Depending on your server environment and WordPress configuration, you will typically see one of four symptoms:
- The Critical Error Notice: A plain screen stating "There has been a critical error on this website." WordPress halts execution to prevent corrupted data from saving.
- White Screen of Death (WSOD): A completely blank white page on both the front end and the
/wp-adminlogin URL. - 500 Internal Server Error: A generic web server response triggered when a fatal PHP error prevents the web server from building the page response.
- Broken Layout or Broken Features: The admin area remains accessible, but frontend styling, JavaScript forms, or checkout flows completely collapse.
If you are encountering a site-wide crash, review our detailed guide on what to do when WordPress breaks after an update or our guide to resolving WordPress critical errors.
Step 1: Identify the Faulty Plugin or Theme
Before you can roll back the problematic update, you must identify precisely which plugin or theme triggered the PHP crash. If you updated multiple items simultaneously, do not guess.
Enable WordPress Debugging
Because the admin area is unavailable, you need to enable WordPress debug logging via your hosting control panel's File Manager or an SSH/FTP connection.
- Connect to your server via FTP or open your hosting File Manager (e.g., cPanel File Manager, SiteTools, or SpinupWP).
- Locate the
wp-config.phpfile in your WordPress root directory (usuallypublic_htmlorwww). - Download a copy of
wp-config.phpto your computer as a backup. - Open
wp-config.phpin an editor and search for the line readingdefine('WP_DEBUG', false);. - Replace that line with the following code snippet:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to /wp-content/debug.log
define( 'WP_DEBUG_LOG', true );
// Disable display of errors on the frontend
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Save the file and refresh your broken web page. WordPress will now write all PHP fatal errors to a log file located at /wp-content/debug.log. Open that log file and scroll to the bottom. Look for lines marked Fatal error or Parse error. The file path inside that error line will pinpoint the exact directory causing the problem, such as /wp-content/plugins/woocommerce/ or /wp-content/themes/astra/.
Method 1: Manual Rollback via FTP or File Manager (Easiest & Safest)
Once you know which plugin or theme update caused the crash, the fastest manual recovery method is replacing the upgraded directory with an older, stable version.
Deactivate the Offending Plugin
To immediately restore access to your site while you prepare the rollback files, temporarily disable the plugin by altering its folder name:
- Navigate to
/wp-content/plugins/in your File Manager or FTP client. - Find the folder corresponding to the broken plugin (for example,
elementor). - Rename the folder to
elementor-disabled.
Renaming the directory breaks the path WordPress uses to load the plugin. WordPress will automatically mark the plugin as inactive, clearing the fatal error and allowing you to log back into /wp-admin.
Download the Previous Version
If the plugin is hosted on the official WordPress.org repository:
- Go to the plugin's page on
wordpress.org/plugins/. - Click Advanced View in the right-hand sidebar.
- Scroll down to the bottom of the page to the PREVIOUS VERSIONS section.
- Select the version you were running before the update and download the
.ziparchive.
Note: If you are rolling back a premium theme or commercial plugin, download the previous release zip file directly from your vendor portal (e.g., CodeCanyon, ThemeForest, or the plugin developer's account dashboard).
Upload and Replace
- Unzip the downloaded archive on your computer. You will get a clean folder named after the plugin.
- Via FTP or File Manager, navigate back to
/wp-content/plugins/on your server. - Delete the temporary
elementor-disabledfolder. - Upload the clean, unzipped folder into
/wp-content/plugins/. - Log into your WordPress admin dashboard and reactivate the plugin.
If you are locked out completely and these steps do not clear the issue, check our guide on fixing the WordPress White Screen of Death or review steps for regaining lost admin access.
Method 2: Roll Back via WP-CLI (Command Line)
If you have SSH access to your server, WP-CLI (WordPress Command Line Interface) offers the fastest way to perform a controlled rollback without dealing with manual file extractions.
Roll Back a Plugin with WP-CLI
Open your terminal, connect via SSH, and navigate to your WordPress root directory. Run the following commands:
# Check the installed version of the plugin
wp plugin status elementor
# Perform an automatic rollback to a specific version
wp plugin update elementor --version=3.18.0 --force
The --force flag instructs WP-CLI to overwrite the current installed version with the specified older release directly from the WordPress repository.
Roll Back a Theme with WP-CLI
Similarly, to downgrade a theme to a prior version:
# Roll back active theme to an earlier release
wp theme update astra --version=4.5.0 --force
If you aren't sure which exact version you were using previously, view the plugin or theme changelog on WordPress.org to locate the previous stable version number.
Method 3: Restoring via Hosting Backups (When Database Schema Changes occur)
File replacement works for 90% of bad updates. However, complex plugins like WooCommerce, Yoast SEO, or membership utilities often execute database migrations during major version updates (e.g., updating from version 4.x to 5.x). Reverting only the PHP code files while leaving a migrated database schema behind can result in persistent database errors or lost configuration data.
If replacing the files throws database warnings or breaks key site features, perform a full site restore from a host backup taken immediately prior to the update:
| Hosting Provider | Restore Location | Best Practice |
|---|---|---|
| SiteGround | Site Tools > Security > Backups | Restore both Web Files and Database from the same timestamp. |
| Kinsta / WP Engine | MyKinsta / User Portal > Backups | Use the 1-click restore feature directly to a staging environment first to verify. |
| cPanel Hosts | cPanel > JetBackup or File/DB Restore | Restore the database table prefix first, then replace the `/wp-content/` directory. |
If you need step-by-step instructions on setting up automated backups so you are protected next time, read our guide on maintaining database health and backup safety.
How to Prevent Bad Updates from Crashing Your Site
Once your site is operational, take proactive precautions to ensure future updates do not cause unscheduled downtime:
- Use a Staging Environment: Never run major plugin or theme updates directly on a live production website. Clone your site to a staging server, execute all updates, test thoroughly, and then push changes to live.
- Stagger Updates: Avoid clicking "Update All". Update one plugin at a time, testing core functionality (contact forms, checkout, navigation) after each step.
- Disable Auto-Updates for Complex Plugins: Keep automatic background updates enabled for minor security patches, but disable automatic updates for major plugins, page builders, and active themes.
- Maintain Offsite Backups: Store daily or real-time backups on an isolated cloud server (S3, Dropbox, or dedicated storage) completely separate from your hosting server.
When to Call a Professional Engineer
Rolling back a plugin or theme usually takes minutes when files are straightforward. However, complex failures require developer expertise. You should call an expert if:
- A database migration ran during the update and corrupting custom WooCommerce orders or user records.
- You cannot identify the fatal error cause even after checking the
debug.logfile. - Your site remains unresponsive or stuck in loop redirects after clearing files and cache.
- The broken update modified custom child theme functions or database tables that lack a recent backup.
If your site is down and you don't have the time or technical confidence to fix it manually, our team of senior WordPress engineers can fix it for you fast. Through our safe, backup-first workflow, we diagnose broken updates and restore functionality without losing your content or customer data.
Get your site fixed today with our Quick Fix ($69) or request an immediate Emergency Rescue ($299) for severe outages. You can also start with a Free Diagnosis to receive a clear, upfront assessment before spending a dime.
To avoid update headaches entirely, explore our Mend Care Plan ($99/mo), which includes managed updates, offsite backups, continuous uptime monitoring, and proactive staging tests.
Frequently asked questions
Can I roll back a plugin if I can't access wp-admin?
Yes. You can deactivate the offending plugin by renaming its directory in /wp-content/plugins/ via FTP or File Manager, then upload an older version downloaded from WordPress.org. Alternatively, you can use WP-CLI via SSH to force a rollback.
Will rolling back a plugin delete my settings or data?
In most cases, no. Plugin settings and user data are stored safely in your WordPress database, not inside the plugin folder you are replacing. However, if the plugin performed a database migration during a major upgrade, reverting the files alone may cause schema mismatches requiring a database backup restore.
How do I find previous versions of a free WordPress plugin?
Go to the plugin's page on WordPress.org, click on "Advanced View" in the right column, and scroll down to the bottom where you can select and download ZIP files for older release versions.
Is it safe to leave WordPress plugins on an older version permanently?
No. Running outdated plugins leaves your website vulnerable to known security exploits and compatibility bugs with future WordPress core updates. A rollback should be a temporary measure while you test fixes in a staging environment or report the bug to the plugin developer.