{"id":10715484,"date":"2018-09-23T14:20:25","date_gmt":"2018-09-23T14:20:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/your-plugin-causes-error\/"},"modified":"2018-09-23T14:24:37","modified_gmt":"2018-09-23T14:24:37","slug":"your-plugin-causes-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/your-plugin-causes-error\/","title":{"rendered":"your plugin causes error"},"content":{"rendered":"<p>Hello.<br \/>\nyour plugins (at least, StopBadBots) has somethings issue in programming, which causes to break other wordpress plugins (that&#8217;s confirmed after some tests).<\/p>\n<p>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.<\/p>\n<p>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 <\/p>\n<p>$GLOBALS[&#8216;current_user&#8217;] <\/p>\n<p>returns different response, than it returns in other plugins&#8217; constructors (which are loaded before your plugin). <\/p>\n<p>so, after looping through 60 plugins, your plugin caused this problem.<\/p>\n<p>please detect the problem, otherwise we have to remove that from our websites, however, we&#8217;d like to have it.<\/p>\n<p>&#8212; update<br \/>\nmy further checking lead to the line (in main plugin file), where you call:<\/p>\n<p>require_once(ABSPATH . &#8216;wp-includes\/pluggable.php&#8217;);<\/p>\n<p>that causes unexpected results. You&#8217;d better to hook your program in <code>init<\/code> action probably, or <code>plugins_loaded<\/code><\/p>\n","protected":false},"template":"","class_list":["post-10715484","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10715484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10715484\/revisions"}],"predecessor-version":[{"id":10715491,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10715484\/revisions\/10715491"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10715484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}