Plugin conflicts is one of the most common errors in WordPress, you have probably encountered plugin conflict. Plugins are snippets of code that are added to WordPress to add some features or improve functionality. In the event that this code is not has errors, there can be a major plugin conflict possibly leading to a WordPress white screen of death. Since plugin conflict is caused majorly by poorly coded plugins, it helps to carefully evaluate each of the WordPress plugins before you add it to your site.
Common Causes of Plugin Conflicts
The best way to begin learning how to fix WordPress plugin conflicts is to start by understanding why these conflicts occur. There may be many other causes of WordPress plugin conflicts but the most common causes of plugin conflicts include ;
Conflict from poorly coded plugins
If you install a poorly coded plugin there is a likelihood that it will conflict with your theme or other existing plugins. To cite an example, the way a plugin loads jQuery can be the cause of many plugin conflicts, to avoid this problem look at the compatibility of the plugin and the user rating on the WordPress repository before installing. You should avoid downloading and using plugins from unknown sources. This will reduce your possibilities of installing a poorly coded plugin. All free plugins available on WordPress repository are already tested by thousands, if not millions of users and they have been rated. Check these ratings, comments and questions on support thread before installing any plugin.
Plugin conflict with WordPress version
Sometimes plugins conflict with the WordPress version, this often occurs when there is new WordPress version update. You should check if the plugins are compatible with the latest WordPress before you choose you update either. On your plugins page you can check below each plugin (see image below) whether the plugin is compatible with the WordPress version running on your site.
In retrospective, you should carefully evaluate each of the plugins on your site before you update your WordPress version. If there are plugins likely to cause problems, you should deactivate them first before updating WordPress.
Plugin conflict between plugins
This is another fairly common type of plugin conflict that results from ‘fight’ for resources between two plugins. A common scenario, involves two similar plugins doing the same task. If you have both plugins activated, WordPress plugin conflict is bound to occur.
Example: Conflicting XML Sitemap WordPress Plugins
When you install the Yoast SEO plugin then install XML Sitemap plugin, there is a potential plugin conflict since the Yoast SEO plugin has a feature for XML site maps. In this case Yoast SEO plugin is a well coded plugin and therefore generates a warning of a potential plugin conflict. You should therefore deactivate one of the plugins to avoid this conflict.
This is not always the case since not all plugins have this ability detect rival plugins and warn you in advance. In the event you see a white screen of death, there is a possibility, it is caused by WordPress plugin conflict. One of my common observations, two caching plugins when installed together and activated tend to create severe plugin conflicts that often results in a white screen of death. To resolve this error you need to rename the plugin folder in order to deactivate all the plugins since most times the dashboard will be inaccessible.
Plugin conflict with your theme
Plugin conflicts also occur between a certain plugin and the active WordPress theme. This is not an isolated incident since it tends to be a common error especially if the plugin in question has similar functions with part of the theme. Theme functions are contained in the file – function.php and a plugin adding similar functionality to what exists in your theme, will result to a conflict.
Tips for Fixing WordPress Plugin Conflict
Backup plugins before Update
For you to successfully fix plugin conflicts, you should begin by ensuring you back up all the plugins before you update. This allows you to revert to the original state if there is a problem. You can download the plugin’s backup before you upgrade to help you with restoration if a conflict occurs.
Update the Plugins one by one
WordPress provides a way of updating several plugins but this can be somewhat disastrous especially if you have plugins that are incompatible. It helps to update each plugin individually as you check to see which of these plugins is likely to cause a problem. This will help to easily identify the plugin causing a conflict.
Don’t Install Outdated Plugins
The rule of the thumb when it comes to plugins installations, should be to always avoid those plugins that are outdated. Always check for the recently updated plugins. Any plugin that has not been updated for the last six month should be avoided unless it is an absolute necessity.
Check for Plugin Conflict on Support Forum
All plugins listed in WordPress repository have a support forum that consists of threaded questions to the plugin’s author, regarding certain issues. You should check if there has been previously reported plugin conflict. If there is no plugin conflict reported earlier you should inquire from the author is you encounter a conflict. For premium plugins, each marketplace provides a way for the users to ask for support, check those support forums and as questions before you can buy a premium plugin.
Test Suspicious Plugins first before Installing
Another smart way of avoiding plugin conflicts is to test the plugins with a demo site on your localhost before you install in your live site. This is useful especially for plugins that are likely to break your website or those plugins from unknown sources. Create a local WordPress installation on your computer and test your plugins locally before deploying them to your live site, its better safe than sorry.
Debugging WordPress Plugin Conflicts
Whilst you can take care not to create any plugin conflicts in your website, but when they occur you need to quickly fix them.
Debugging Mode On
The best way to have a long term solution for debugging plugin conflicts is to begin by turning on the error reporting in your wp-config.php file. To get the error log you should add the following code in wp-config.php above the comment /* That's all, stop editing! Happy blogging. */
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
This will log all the notices, errors and warnings in the file called debug.log inside your wp-content directory. You can use this error log to identify and potential plugin conflict or other probelms.
Deactivating All Plugins
A quick approach to solving WordPress plugin conflicts is to deactivate all the plugins and activate them one by one. In many cases the WordPress dashboard may not be accessible and therefore you will require accessing the site via FTP to deactivate the plugins.
After accessing the site you should rename the plugins folder to something like old_plugins then create a new plugin folder called plugins to restore the plugins one by one. As you activate the plugins you will quickly identify the plugin that is causing the conflict and get rid of it.
WordPress plugin conflicts can be avoided by carefully selecting only the best plugins for your site. Finally, you should always remember that WordPress plugins are extensions of WordPress functions and they should be used sparingly or only when it’s necessary. I hope this article has helped you understand what causes WordPress plugin conflicts and how to fix them. If you have additional questions, comments, clarifications or compliments; do not hesitate to get in touch through the comments section below.