Find a plugin causing problems

plugins, conflict, troubleshooting, staging, wp-cli, deactivate · 0 found this helpful

When something breaks, such as a form, a layout, or slow pages, a plugin is the usual suspect. The method is simple: turn plugins off and on until the problem appears and disappears.

Best: test on a staging copy

Clone the site so visitors aren't affected. See Stage or clone a WordPress site. On Essential, test at a quiet time, or use maintenance mode.

Find the culprit

  1. Take a backup. See Back up and restore WordPress.
  2. Deactivate all plugins in WordPress's Plugins screen, or switch them off under WordPress → Manage → Plugins and themes in your control panel.
  3. Check the problem. If it persists, the cause is your theme or hosting, and you can switch theme.
  4. Activate one plugin at a time. Test after each.
  5. When the problem returns, the last plugin you turned on is involved.
  6. Try it with only one other plugin at a time to find a conflict between two.

With WP-CLI

cd ~/public_html
wp plugin list --status=active --field=name > active.txt
wp plugin deactivate --all

# Reactivate one at a time
wp plugin activate woocommerce
wp plugin activate contact-form-7

# Restore the original set
xargs wp plugin activate < active.txt

Also check

Fixes

Cause Fix
Out-of-date plugin Update it
Two plugins do the same job Keep one
Plugin abandoned Replace it
Memory exhaustion Raise the memory limit
Plugin not compatible with PHP Change PHP version

When you report it to the plugin author, include your WordPress and PHP versions, and the exact error message.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.