WordPress Plugin Conflict? 7 Steps to Find and Fix It
A WordPress plugin conflict happens when one plugin breaks another plugin, your theme or WordPress itself, usually right after an install or update. To find it, back up the site, read the error, turn all plugins off, then turn them back on one at a time until the problem returns. The last plugin you turned on is the one in the conflict.
The signs are usually one of these:
- “There has been a critical error on this website”, or a blank white page.
- wp-admin stops loading, or loads without its styles.
- A feature quietly breaks: a form will not send, the cart will not update, a slider or menu stops working.
The seven steps below work for all three.
On this page
- Step 1: Back up before you change anything
- Step 2: Read the error WordPress gives you
- Step 3: Test safely with Health Check troubleshooting mode
- Step 4: Turn all plugins off when you are locked out
- Step 5: Find the WordPress plugin conflict one plugin at a time
- Step 6: Fix the WordPress plugin conflict
- Step 7: Stop the next WordPress plugin conflict before it starts
Step 1: Back up before you change anything
Testing means switching plugins and maybe the theme on and off, and some plugins change settings when they are deactivated. Take a full backup of the files and the database first, so you can always return to where you started.
If your host offers a staging copy, test there. Your visitors then never see the site with its plugins switched off.
Step 2: Read the error WordPress gives you
Since version 5.2, when a WordPress plugin conflict causes a fatal error, WordPress shows “There has been a critical error on this website”. It also emails the site’s admin address. That email names the plugin or theme that failed and has a link that opens wp-admin in recovery mode. In recovery mode the failing plugin is paused for you, so you can log in and deactivate it.
If no email arrives, or the problem is not a fatal error, turn on the debug log. Add these lines to wp-config.php, above the line that says “That’s all, stop editing”:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Load the broken page again, then open wp-content/debug.log. The file path in each error usually points to the plugin’s folder, for example wp-content/plugins/plugin-name/. See Debugging in WordPress for what each setting does. Set WP_DEBUG back to false when you finish.
Step 3: Test safely with Health Check troubleshooting mode
If you can still reach wp-admin, the Health Check & Troubleshooting plugin is the safest way to test on a live site. Its troubleshooting mode turns off every plugin and switches to a default theme for your login only. Visitors keep seeing the normal site.
- Install and activate Health Check & Troubleshooting.
- Go to Tools > Site Health, open the Troubleshooting tab and enable troubleshooting mode.
- Check whether the problem is gone. If it is, a plugin or the theme is causing it.
- Use the Troubleshooting Mode menu in the admin bar to turn plugins back on one at a time, checking after each one (step 5).
Step 4: Turn all plugins off when you are locked out
Turning everything off first is the quickest way to prove the problem is a WordPress plugin conflict, not the server. If wp-admin will not load, do it from outside WordPress.
With WP-CLI over SSH, run these in the site’s folder:
wp plugin list --status=active
wp plugin deactivate --all
Keep the output of the first command: it is your list of plugins to switch back on.
With the File Manager or SFTP, rename wp-content/plugins to plugins-off. WordPress can no longer find any plugin, so none of them load. Log in to wp-admin and open the Plugins screen, where WordPress reports each plugin as deactivated because its files are missing. Then rename the folder back to plugins.
If the site still fails with every plugin off, the cause is the theme, the server or WordPress itself. Your host’s error log is the next place to look.
Step 5: Find the WordPress plugin conflict one plugin at a time
Turn the plugins back on one by one, from Plugins in wp-admin or with wp plugin activate plugin-slug. After each one, reload the page that was broken in a private browser window, so a cached copy does not hide the result.
When the problem comes back, the plugin you just activated is one side of the conflict. To find the other side, leave only that plugin on, then add the others back one at a time.
Then test the theme. With the problem plugin on, activate a default theme such as Twenty Twenty-Five under Appearance > Themes, or with wp theme activate twentytwentyfive. If the problem disappears, the conflict is between that plugin and your theme. Switch your own theme back when you finish.
Step 6: Fix the WordPress plugin conflict
- Update. Check whether either plugin, or the theme, has an update that fixes it. Read the changelog first.
- Roll back. If an update caused the conflict, reinstall the previous version until a fix comes out. Plugins from WordPress.org list older versions under Advanced View on their plugin page.
- Report it. Post on the plugin’s support forum, or contact its developer. Include the lines from
debug.logand your WordPress, PHP and plugin versions. Tools > Site Health > Info has a Copy site info to clipboard button for exactly this. - Replace it. If neither developer fixes it, look for another plugin that does the same job, and test it on staging.
When you finish, turn troubleshooting mode or WP_DEBUG off, and delete any plugins you no longer use.
Step 7: Stop the next WordPress plugin conflict before it starts
- Back up before every round of updates, and update one plugin at a time so you know which change broke what.
- Try major updates on a staging copy first, especially for WooCommerce, page builders, caching and security plugins.
- Keep the plugin list short: every plugin is code that can clash with another, and a plugin can reach much more of your site than its settings page suggests.
- With many sites, put the updates on a schedule. Managing plugin updates across many sites covers how.
If the site is down now and you need it back fast, see emergency help for a WordPress site that is down.
If you would rather hand updates to someone else, our WordPress maintenance plans include them. From the Dev plan up, updates go to a private staging copy first and reach the live site only once you have said so.
Be the first to comment