3 Easy Steps to Diagnose WordPress Plugin Problems
As a wordpress plugin developer for the Google Custom Search plugin, I get a lot of queries from users having problems with the plugin. The most common query I get is “I’ve installed your plugin last year, but recently it stopped working. Can you help me?”. I normally take a 3 step approach to diagnosing wordpress plugin problem, but before we get to that, let’s look at why a plugin might have stopped working.
There are there reasons why a wordpress plugin has stopped working:
- It is incompatible with your current version of wordpress
You might have upgraded your wordpress installation to a newer release. WordPress releases fix/updates and upgrades regularly and the new version might not be compatible with the plugin.
- Conflict with other plugins
This is usually the of most plugin problems where the code in one of your other plugins conflicts with the code in the plugin in question. JQuery conflicts is common cause.
- The new version of the plugin is Broken!
While very uncommon, it can happen. The developer writing the plugin made some changes which has broken the plugin. This might be the case if you have recently updated the plugin. Normally for this situation, you can expect a new update to be available relatively soon with the fixes.
3 Steps to Diagnosing WordPress Plugin Problems
Step 1: Determine if there is a plugin conflict
- Disable all plugins except for the one which is broken and check that the plugin now works (if it doesn’t proceed to the Step 2).
- Next activate the plugins one at a time until the plugin in question stops working.
- The last plugin which was activated is having a conflict with the plugin which you are diagnosing.
Step 2: Determine if the current WordPress theme has a conflict
WordPress themes can contain code which conflicts with the plugin. The easiest way to determine this is to:
- Switch wordpress theme to the default “Twenty Eleven” Theme. Check if the plugin in question now works. If it does, then the theme which you have is in conflict with the plugin.
Step 3: Determine Error Using Firefox Error Console
If the first two steps did not diagnose the problem, then you need to use Firefox‘s Error Console to see what the plugin error is.
- Open the Error Console in a Firefox browser using the shortcut key Cltr-Shift-J.
- Then visit your website in Firefox, you should see the error messages in the Error Console
From there you might be able to identify what the error is which is causing the plugin to not work.
What to Do Once the Problem has been Determined
Once you have found the problem, what can you do to fix it?
If it is a conflict with another plugin or theme, then you might want to contact the developer of that plugin or theme to get them to put a fix in. If you did Step 3 and have the error message from Firefox Error Console, sending the error messages to the developers will help them with providing a fix. What I find is that you get a faster response from the developer when you include the error message.
The other alternative, is now that you have identified the culprit, you can choose to not use that plugin or theme and find an alternative. Often times, there are multiple plugins providing similar functionality. You just need to search for them at http://wordpress.org/extend/plugins/.