your plugin causes error
-
Hello.
your plugins (at least, StopBadBots) has somethings issue in programming, which causes to break other wordpress plugins (that’s confirmed after some tests).For example, when we install WP-phpMyAdmin-extension (or WP-extra-file-types), and install your plugin, after that admin dashboard is broken. if we remove your plugin, everything works.
if you use wp_get_current_user() in those plugins anywhere in constructor (as those plugins are loaded after your plugin, because of alphabetical order), then
$GLOBALS[‘current_user’]
returns different response, than it returns in other plugins’ constructors (which are loaded before your plugin).
so, after looping through 60 plugins, your plugin caused this problem.
please detect the problem, otherwise we have to remove that from our websites, however, we’d like to have it.
— update
my further checking lead to the line (in main plugin file), where you call:require_once(ABSPATH . ‘wp-includes/pluggable.php’);
that causes unexpected results. You’d better to hook your program in
initaction probably, orplugins_loaded
The topic ‘your plugin causes error’ is closed to new replies.