This documentation is only valid for older versions of Wordfence. If you are using Wordfence 7 or later, please visit our new documentation.

Handling script conflicts on admin pages

From Wordfence Documentation
Revision as of 12:38, 25 March 2016 by WFMattr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Some plugins or themes may cause conflicts with scripts, that can prevent some WordPress admin pages from working when both Wordfence and the other plugin (or theme) are enabled.

First, it is best to Open the JavaScript console and check for errors. This may show which plugin has caused the conflict.

If one of the errors comes from "load-scripts.php", that is because WordPress combines multiple scripts into a single request so admin pages load a little more quickly, but since multiple scripts are loaded at once, an error in one script can affect the others. You can prevent this, so that each script will load individually by adding this line of code to your wp-config.php file:

define('CONCATENATE_SCRIPTS', false);

Be sure to add it before the line that says: /* That's all, stop editing! Happy blogging. */

This will either help show which script file is causing the conflict, or it may prevent the issue from happening. If you can find the cause of the conflict and fix it, you can remove this line from wp-config.php.