1. Home
  2. Knowledge Base
  3. General
  4. Troubleshooting

Test for plugin conflict

If something isn't working as expected with your Barn2 plugin, the cause is often another plugin or your theme. You can find out by testing for a conflict: Turn off your other plugins and turn them back on in groups until the problem returns. If it doesn't, switch to the Storefront theme as a final check.

What is a plugin conflict?

A conflict happens when two pieces of code work fine on their own, but stop working when they run together on the same page.

Typical signs include a missing button, a layout that looks wrong, a table or form that won't load, or an error message in your browser.

Before you start

  • Use a staging site if you have one. Your visitors won't see a site with features switched off. Hosting providers often offer staging sites for free, usually with one-click setup. Ask your host if you're not sure. If your host doesn't offer free staging, you can use SandyWP or InstaWP (paid service).
  • Take a backup of your site. Do this before making any changes.
  • Pick one page that shows the problem. You'll check this same page after every change, so choose a page where the issue is easy to spot.
  • Write down what's active. Keep a list of your active plugins and your current theme so you can restore everything afterwards.

Step 1: Deactivate all other plugins

Start by checking whether another plugin is involved.

  1. Go to Plugins → Installed Plugins.
  2. Tick the box at the top of the list to select all plugins.
  3. Untick WooCommerce (if you use it) and the Barn2 plugin you're testing. These need to stay active.
  4. Choose Deactivate from the Bulk actions dropdown and click Apply.
  5. Visit your test page again and check for the problem.

With only WooCommerce and your Barn2 plugin running:

  • The problem is gone: one of the plugins you deactivated is causing the conflict. Go to Step 2 to find out which one.
  • The problem is still there: it isn't caused by another plugin. Leave your plugins deactivated and go to Step 3 to test your theme.

Step 2: Find the plugin using the Binary Search Method

You could turn plugins back on one at a time, but that's slow if you have a lot of them. The quicker way is the binary search method: reactivate half of the plugins, check, and keep halving the group that contains the problem. The cause is always in one half or the other, so each check rules out half of the remaining plugins.

Here's how it works with 16 deactivated plugins:

Round What you do Result What it tells you
1 Reactivate plugins 1–8 Problem returns Cause is in plugins 1–8
2 Deactivate 5–8 (keep 1–4 active) Problem is gone Cause is in plugins 5–8
3 Reactivate 5–6 Problem is gone Cause is in plugins 7–8
4 Reactivate 7 Problem returns Plugin 7 is the cause

Follow these steps:

  1. On the Plugins → Installed Plugins page, split your deactivated plugins into two equal groups. Write down which plugins are in each group.
  2. Reactivate the first group only: tick the boxes, choose Activate from Bulk actions, and click Apply.
  3. Check your test page.
  4. If the problem comes back, the cause is in the group you just activated. Deactivate the second group's plugins (they're already off), then split the active group in half and deactivate one half.
  5. If the problem doesn't come back, the cause is in the other group. Leave the first group active, and split the second group in half. Activate one half.
  6. Repeat until you're down to a single plugin. That plugin is part of the conflict.

This takes around 5 checks for 30 plugins, rather than up to 30 checks one by one.

Note: Keep a written list of what's on and off after each round. Losing track is the most common reason people have to start again.

Note: The plugin you find is one half of the conflict. It doesn't necessarily mean that plugin is broken. If the problem only appears with several plugins active together, report all of them to us.

Found the plugin? You can skip Step 3 and go straight to Step 4.

Step 3: Switch to the Storefront theme

If the problem is still there with all of your other plugins deactivated, your theme may be the cause. Storefront is the default theme made by the WooCommerce team. Leave your other plugins deactivated while you test.

  1. Go to Appearance → Themes.
  2. If you don't see Storefront, click Add New, search for "Storefront", then click Install and Activate.
  3. If Storefront is already installed, click Activate.
  4. Visit your test page and check whether the problem is still there. Clear your site cache first if you use a caching plugin, and refresh your browser.

Note: Switching themes can reset some theme-specific settings, such as widgets and menu locations. Your theme's content is kept and will return when you reactivate it, but it's a good reason to test on a staging site.

  • The problem is gone: your theme is the cause. Switch back to your theme and contact support, letting us know the theme name.
  • The problem is still there: it isn't a conflict with your plugins or your theme. Please contact support and tell us what you found.

Step 4: Restore your site

  1. Reactivate all the plugins you deactivated, except the one you found to be causing the conflict if you'd like to keep your site working while we help.
  2. Go to Appearance → Themes and reactivate your original theme, if you switched to Storefront.
  3. Clear your site cache and check that everything looks as it did before.

What to do when you've found the conflict

  • Check that your plugins, theme and WordPress are all up to date. Updates often fix conflicts.
  • Check our list of plugins and themes that aren't compatible with your plugin.
  • Contact support and tell us the name of the plugin or theme you found, what you see on your test page, and the steps you followed.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.