A disabled plugin MUST NOT be loaded! - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: A disabled plugin MUST NOT be loaded! (/showthread.php?tid=1726) |
A disabled plugin MUST NOT be loaded! - mvlcek - 2011-05-15 @ccagle8: The GS 3.0 approach of disabling plugins does only work in some limited cases. It seems that only the hooks are disabled but the plugins are still loaded. This leads to several problems:
I like the idea of disabling plugins and it would simplify testing with/without I18N plugin immensely, if it worked correctly: If a plugin is disabled, it MUST NOT be loaded. A disabled plugin MUST NOT be loaded! - n00dles101 - 2011-05-15 Unfortunately the system as it is must read each file to get the plugin information, name etc... And yes your right if its disabled it shouldn't load or do any function related to the plugin itself. Leave it with me for for a bit, I'll come up with something.... Mike... A disabled plugin MUST NOT be loaded! - mvlcek - 2011-05-15 n00dles101 Wrote:Unfortunately the system as it is must read each file to get the plugin information, name etc... Yes, I agree, thus a plugin is initially enabled. But as the plugin rules say that the plugin name is the same as its filename there is no need to read it again, once it is disabled. You can cache the plugin information in an XML. Or - I suppose - you can read all plugins when displaying the plugin list, it shouldn't do any harm. But don't load the plugins at any other time. A disabled plugin MUST NOT be loaded! - n00dles101 - 2011-05-15 Ok fixed it in the latest SVN. As were reading in the file to get all relevant information on the plugin I've had to change the plugin Management screen to just display the Filename and "Disabled Plugin" FYI the code chage is line 44 of plugin_fucntions.php to the following: Code: foreach ($live_plugins as $file=>$en) { |