May 2005 Archives

Activity Log Plugin Errors

My MT Activity Logs were FULL of plugin errors pointing to Blacklist, BookQueueToo, Blogroll, and QuickLinks. (essentially, any plugins that are in their own dedicated directories inside mt/plugins) These plugins have always worked without fail from the front end, so I was mystified at the copious error messages suggesting they could not be found.

Here is just one sample of a variety of similar messages:

Plugin error: /home/user/domains/domain.net/public_html/mt/plugins/Blacklist/Blacklist.pl Can't locate Blacklist/Plugin.pm in @INC (@INC contains: plugins/Blacklist/lib ./plugins/BookQueueToo/lib /home/user/domains/domain.net/public_html/mt/

Searching the MT Support Forums and google pointed me to a very simple solution. In each plugins .pl file I edited the "use lib" line to include the full path per the following example:

use lib /home/user/domains/domain.net/public_html/mt/plugins/PluginName/lib

Voila! No more error messages. :)

MT3.16 Upload File Popup Link Fix

In a nutshell, in MT3.16 when you upload a file and select the file to be displayed as a "popup", the resulting link to that popup returns an error. (the slash before the filename is parsed as its html hex entity %2f rather than / ). This is a known issue in 3.16 and there are a couple temporary fixes floating around. I employed the hack described at danandsherree.com. An alternative (unofficial) fix can be found on the MT Support Forum. The latter changes subroutines other than upload_file, thus I prefer the one from danandsherree since it addresses only the upload subroutine -- it's working fine for me.