WordPress Plugin Conflicts: How to Diagnose, Resolve, and Prevent Them
Find and fix WordPress plugin conflicts safely: a step-by-step diagnosis, troubleshooting mode, staging, recovery mode and fixes for JavaScript, CSS and PHP.
On this page
- How plugin conflicts happen
- Diagnosing a plugin conflict — the systematic approach
- The safest way to test: troubleshooting mode, staging and recovery mode
- Resolving common plugin conflict types
- Preventing plugin conflicts
- When a conflict cannot be resolved
- Experiencing a WordPress plugin conflict you cannot resolve?
- Frequently asked questions
Plugin conflicts are the most common cause of WordPress breakage. Here is the systematic approach to diagnosing them and the resolution strategies for each conflict type.
- Binary search — halves the number of tests to isolate conflicts
- Staging — most effective conflict prevention strategy
- Query Monitor — identifies PHP errors and slow queries
- White screen — almost always a PHP fatal error
Plugin conflicts are the most common cause of unexpected WordPress breakage. Two plugins that each work perfectly alone can cause white screens, broken layouts, or disappearing functionality when both are active. Diagnosing and resolving plugin conflicts is an essential WordPress troubleshooting skill.
How plugin conflicts happen
Plugin conflicts occur when two or more plugins interact in ways neither developer anticipated. Common conflict causes:
- Same function or class name: two plugins define a function with the same name. PHP fatal error: ‘Cannot redeclare function X’.
- Same hook with incompatible effects: two plugins both modify the same WordPress hook (e.g. ‘the_content’) in ways that interfere with each other’s output.
- Same jQuery library version conflict: one plugin requires jQuery 3.x; another requires jQuery 1.x. Both try to load their version, conflicting at the JavaScript level.
- CSS specificity conflicts: two plugins add CSS that targets the same selectors with different styles, causing layout or visual issues.
- Database table conflicts: rare, but two plugins that create tables or options with the same name can conflict.
- Execution order issues: Plugin A depends on Plugin B being loaded first, but WordPress loads them in a different order.
Diagnosing a plugin conflict — the systematic approach
Confirm the problem is a plugin conflictThe fastest confirmation: activate a default WordPress theme (Twenty Twenty-Four) and deactivate all plugins. If the problem disappears, it was caused by a plugin or theme conflict.
Reactivate plugins one at a timeWith the default theme active, reactivate your plugins one by one. After each activation, check whether the problem reappears. When it does, the most recently activated plugin is either the culprit or is conflicting with a previously activated plugin.
Binary search for efficiencyIf you have many plugins, use binary search: reactivate half the plugins at once. If the problem reappears, the culprit is in that half. Disable half of that half and test again. This halves the number of tests needed to isolate the conflicting plugin.
Test with the original theme re-activatedOnce you have isolated a conflicting plugin, reactivate your original theme to confirm whether the conflict is theme-related or plugin-plugin.
Use Query Monitor for JavaScript and PHP errorsWith Query Monitor active, check the PHP Errors panel for fatal errors or warnings, and open browser DevTools Console for JavaScript errors. These often identify exactly which plugin and line of code is causing the issue.
The safest way to test: troubleshooting mode, staging and recovery mode
Deactivating plugins on a live website can break it for your visitors while you investigate. Three safer options are built for exactly this:
- Troubleshooting mode. The free Health Check & Troubleshooting plugin, maintained by WordPress.org contributors, lets you disable plugins and switch to a default theme for your own browser session only. Visitors keep seeing the normal site while you test each plugin.
- A staging site. A private copy of your website where you can test plugin changes and updates without any risk to the live site. Many hosts offer one-click staging. See our guide to WordPress staging environments.
- Recovery mode. Since WordPress 5.2, when a plugin causes a fatal error, WordPress can email the site administrator a special link to log in, see which plugin failed and deactivate it, even when the site shows an error to everyone else.
TipBefore changing anything, take a full backup and note your plugin versions. If a fix goes wrong, you can return to exactly where you started.
Resolving common plugin conflict types
JavaScript conflicts
JavaScript conflicts typically manifest as features that stop working (sliders, form validation, modal windows) with JavaScript errors in the browser console. Solutions:
- Use Script Debug mode: add
define('SCRIPT_DEBUG', true);to wp-config.php. This loads unminified scripts with better error messages. - Use Asset CleanUp Pro to identify which scripts each plugin loads. Disable a conflicting script on pages where it is not needed.
- Check whether both conflicting plugins use jQuery. If one is loading its own version, configure it to use the WordPress-bundled version instead.
- As a last resort, use custom JavaScript to prevent the conflict — but this is fragile and requires ongoing maintenance.
CSS conflicts
CSS conflicts cause unexpected visual changes: wrong fonts, broken layouts, incorrectly positioned elements. Solutions:
- Use browser DevTools Inspector to identify which CSS rule is winning the specificity battle.
- Add a more specific CSS override in your child theme’s style.css to correct the visual issue without touching either plugin.
- Use Asset CleanUp Pro to disable a conflicting stylesheet on pages where it is not needed.
PHP function/class conflicts
PHP conflicts typically cause white screens or fatal errors visible in your error log. Solution: if both plugins define the same function, one needs to be updated or replaced. Check whether either plugin has an update that renames the conflicting function. If neither has an update, one plugin must be replaced with an alternative.
Preventing plugin conflicts
- Test new plugins on staging before production: the single most effective prevention. Never activate an untested plugin on a live site.
- Keep plugins updated: many conflicts are resolved in plugin updates. Outdated plugins are more likely to conflict with other recently updated plugins.
- Minimise plugin count: every additional plugin is a potential conflict source. Regularly audit and remove plugins that are no longer needed.
- Use well-maintained plugins from reputable sources: plugins from the WordPress.org directory with active development histories are less likely to have unresolved conflict issues.
- Check plugin compatibility before installing: read recent support forum posts for ‘conflict’ mentions before installing a new plugin. Many known conflicts are documented in the support forums.
When a conflict cannot be resolved
If two plugins have an irresolvable conflict and you need both, options:
- Contact both plugin developers and report the conflict — responsible developers will often issue a compatibility fix
- Find an alternative plugin that provides the same functionality without the conflict
- Have a developer write a custom compatibility shim that prevents the conflict at the code level
- Consider whether a custom plugin could replace one of the conflicting plugins with functionality tailored to your site
Experiencing a WordPress plugin conflict you cannot resolve?
Simple Automation Solutions diagnoses and resolves WordPress plugin conflicts, white screens, and technical issues for businesses worldwide.
Book a Free Call View Our Work →
Frequently asked questions
How do I fix the white screen of death (WSOD) in WordPress? +
The white screen of death is almost always a PHP fatal error. First, enable WordPress debug logging: add define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); to wp-config.php and check the /wp-content/debug.log file for the error. If you cannot access the admin, connect via FTP and rename the /wp-content/plugins/ folder to /wp-content/plugins-disabled/ — this deactivates all plugins and typically restores access. Re-enable plugins one by one in the renamed folder to find the culprit.
Can two caching plugins conflict with each other? +
Yes — running two caching plugins simultaneously is one of the most common causes of WordPress breakage. Two caching plugins can create conflicting cache rules, serve stale content, or generate blank pages. Never run WP Rocket and W3 Total Cache simultaneously. If you switch caching plugins, completely uninstall (do not just deactivate) the old one before activating the new one. Check for cached files in /wp-content/cache/ that may persist after plugin deactivation.
How do I find which plugin is causing a slow page? +
Install the Query Monitor plugin and load the page. Check the Queries tab for slow database queries (over 100ms) and note which plugin is responsible. Check the PHP Errors tab for warnings that may not cause visible issues but add processing overhead. In the Hooks tab, identify hooks with many attached functions or hooks with slow callback functions. Performance issues from plugins are often query-related — a plugin running 50+ database queries per page is a significant bottleneck.
What is the safest way to find a plugin conflict on a live site? +
Use troubleshooting mode from the free Health Check & Troubleshooting plugin, which disables plugins for your browser session only, or test on a staging copy of the site. Both let you isolate the conflicting plugin without breaking the site for visitors. Take a backup first.
Other posts
Need help with your website or app?
Book a free 30-minute call and get honest advice and a clear next step.
Book a free callSee our services