{"id":4742,"date":"2003-11-06T22:53:10","date_gmt":"2003-11-07T06:53:10","guid":{"rendered":"http:\/\/www.ikillspies.com\/blog\/2003\/11\/06\/4742\/"},"modified":"2003-11-06T22:53:10","modified_gmt":"2003-11-07T06:53:10","slug":"mt-plugin-manager","status":"publish","type":"post","link":"http:\/\/www.ikillspies.com\/?p=4742","title":{"rendered":"MT Plugin Manager"},"content":{"rendered":"<p>After tag-teaming stupid MT <a href=\"http:\/\/finethen.com\/whatever\">shacolby<\/a> and I finally succeeded at trying to get this <a href=\"http:\/\/manager.mt-plugins.org\/\">MT Plugin Manager<\/a> to work.<\/p>\n<p \/>\nI installed on our system:<\/p>\n<ul>\n<li><a href=\"http:\/\/mt-plugins.org\/archives\/entry\/archiveyear.php\">ArchiveYear<\/a><\/li>\n<li><a href=\"http:\/\/mt-plugins.org\/archives\/entry\/awstatsreferers.php\">AWStatsReferers<\/a><\/li>\n<li><a href=\"http:\/\/mt-plugins.org\/archives\/entry\/categoryfaceted.php\">CategoryFaceted<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/categoryheaderfooter.php\">CategoryHeaderFooter<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/categoryofarchive.php\">CategoryOfArchive<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/countdown.php\">Countdown<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/entrynumber.php\">EntryNumber<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/exception.php\">Exception<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/filtercategories.php\">FilterCategories<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/ifarchive.php\">IfArchive<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/mtamazon.php\">MTAmazon<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/mtlist.php\">MTList<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/macros.php\">Macros<\/a><\/li>\n<li><a href=\"http:\/\/mt-plugins.org\/archives\/entry\/process_tags.php\">Process<br \/>\nTags<\/a><\/li>\n<li><a href=\"http:\/\/mt-plugins.org\/archives\/entry\/regex.php\">Regex<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/rss_feed.php\">RSS feed<\/a> (dunno if that one works yet though)<\/li>\n<p><lI><br \/>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/relatedentriesbykeyword.php\">RelatedEntriesByKeyword<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/smartbody.php\">SmartBody<\/a><\/li>\n<li>\n<a href=\"http:\/\/mt-plugins.org\/archives\/entry\/topic_icon.php\">Topic Icon<\/a><\/lI>\n<\/ul>\n<p>  by copying the<br \/>\n<a href=\"http:\/\/mt-plugins.org\/archives.xml\">master list of all the plugins<\/a>, renaming it to <b>plugins.xml<\/b> and placing<br \/>\nit in the <b>plugins\/<\/b> directory, then copying <b>styles-pm.css<\/b> to the <b>mt-static<\/b> directory, I at least got the thing to display- but now the &#8220;manual install&#8221; page still doesn&#8217;t work.<\/p>\n<ul>\n<li>the individual files it finds start with a <b>.\/\/usr\/local\/apache<\/b> rather than just &#8220;\/&#8221;.  Why?  Does that matter?<\/lI>\n<li>the &#8220;action&#8221; field in the FORM (post) entity in the page is empty, which seems to suggest it wants the same CGI that generated the page, <b>mt-pm.cgi<\/b><\/li>\n<p><lI>the same mode, <b>__mode=manual_install<\/b>, is specified as a key-value pair<\/lI><\/p>\n<li>the unknown plugin file (e.g. mt-amazon.pl) is also misnamed in the FORM: changed that too<\/lI>\n<li>Manually edited file and ran on client to get this to work&#8230; nothing yet<\/li>\n<li>Within <b>Manager.pm<\/b>, &#8220;manualInstall&#8221; does most of the work, generating the page listing all the unknown files (potentially plugins) and farming out to &#8220;manualInstallFile&#8221; if information is coming in from a form<\/lI>\n<li>maybe the save process is just not working?  PluginData.new() is being called&#8230; defined in MT::PluginData.pm (in lib, not extlib\/MT\/Plugins).  Where is this data stored?<\/li>\n<li>Looks like the manual registry is working, however the manual registry page doesn&#8217;t make previously-registered files go away<\/li>\n<li>If the plugin in question is a simple series of files, (like perl files), then there is no problem, and the installation goes well<\/li>\n<p><lI>however, if there is unzipping involved, we get problems:  compilation stops on things like<\/p>\n<blockquote><p>Bareword &#8220;Z_OK&#8221; not allowed while &#8220;strict subs&#8221; in use at \/usr\/local\/apache\/cgi-bin\/mt\/extlib\/Archive\/Zip.pm line 1808<\/p><\/blockquote>\n<\/li>\n<li>testing on ArchiveYear and IfArchive &#8211; both of which use .zip files to install<\/lI>\n<li>the files in the working blogs are owned by user <b>www-data<\/b> and group <b>ftp<\/b>&#8211; yet the .zip files brought into <b>manager-cache<\/b> are<br \/>\nowned by user <b>www-data<\/b> and group <b>www-data<\/b>.<\/li>\n<li>Even the successfully installed plugin, <b>FilterCategories<\/b>, is permissions 644.  Will this run?<\/li>\n<li>shac tried quoting all the return values in Zip.pm&#8230; this got rid of some errors.  But that means the errors were there because the return types were not defined, which is probably in <b>Compress::Zlib<\/b><\/li>\n<li>damn, it&#8217;s looking like :\n<ol>\n<li>There are two different <b>Zlib.pm<\/b> modules: <b>Compress::Zlib<\/b> and <b>IO::Zlib<\/b><\/li>\n<li>we have two of each on our system- we already had them installed in our perl, in <i>\/usr\/lib\/perl5\/site_perl\/5.6.1<\/i>,<br \/>\nand now we have one in the MT installation<\/li>\n<li>the MT installation version may not define Z_OK ?<\/lI>\n<li>I added a debug to print out @INC.. sure enough we are using the MT version first&#8230; should I update the MT libraries, or just mess with &#8220;use lib&#8221;?<br \/>\nI&#8217;ll update the libraries.<\/li>\n<\/ol>\n<\/li>\n<li>uh oh- our <b>Compress::Zlib<\/b> and <b>IO::Zlib<\/b> modules in MT are identical.  I think we screwed up the install.<\/li>\n<li>yep that was it&#8230; deleted that one&#8230; now the main problem is permissions.  At this point there are two ways to fix it that I can see:\n<ol>\n<li>open the libraries to any user, or get shac to put every system user in the same group and do it that way.  Acutally, the user owning the libraries right now is not the MT user for a reason; I wonder if we should change that or not, it seems like a security risk?<\/li>\n<li>Modify <b>Manager.pm<\/b> so it is smarter about file ownership and permissions.  If I do that, I guess I should insert the fix in the bug tracking report to be a good MT citizen&#8230;<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>After tag-teaming stupid MT shacolby and I finally succeeded at trying to get this MT Plugin Manager to work. I installed on our system: ArchiveYear AWStatsReferers CategoryFaceted CategoryHeaderFooter CategoryOfArchive Countdown EntryNumber Exception FilterCategories IfArchive MTAmazon MTList Macros Process Tags Regex RSS feed (dunno if that one works yet though) RelatedEntriesByKeyword SmartBody Topic Icon by copying [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4742","post","type-post","status-publish","format-standard","hentry","category-looky"],"_links":{"self":[{"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=\/wp\/v2\/posts\/4742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4742"}],"version-history":[{"count":0,"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=\/wp\/v2\/posts\/4742\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4742"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ikillspies.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}