Getting MT-Mail-Entry 2.0 working in MT 3.1x
Several MT enthusiasts are reporting that Stepan Riha's MT-Mail-Entry 2.0 throws an error as of MT 3.1 on up;
Can't call method "param" on an undefined value at mt-mail-entry.cgi line 54
Here's a quick fix.
Short and sweet, this one is (and Yoda I am not by a longshot - ahem). Replace the line that reads:
my $q = $app->{query};
with:
my $q = CGI->new;
It should now work! Since I saw reports of this working pre-3.1, I'm guessing that the 2.6x version of MT provided access to the CGI query via MT::App. If so, that's either no longer true or perhaps said access has moved elsewhere within MT::App. I didn't catch any notable clues while debugging the CGI, but no matter - this ought to do the trick. Enjoy ...
Or rather, I will enjoy ... once I nail down a reasonable game plan to keep it from being flagrantly abused. (If anyone has suggestions, by all means ... and yes, I've already changed the name of the CGI. Heh-heh.)
Thanks for working on this. I finally got it to work in an upgraded version, but not a new install. This will help tremendously. I love this plugin. It adds nice functionality to MT.
Posted by: rowan | 1 March 2005 at 08:51