Help - Search - Members - Calendar
Full Version: Possible bug in Context.pm affecting search
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
jfbasta
Preamble: this is not a support question, it is (what I think is) a bug report in \lib\MT\Context.pm, which I think I know how to fix.

I've been meaning to install MovableType for some time, and while testing the installation I've always hit a small problem: when searching with mt-search.cgi and not passing any ?search= argument, I've always gotten an error message telling me that on line 1663 of Context.pm, MT::Entry::RELEASE was being called without having being defined.

Not being a Perl programmer I ignored the bug (everything works if a search string is passed), but I recently was annoyed by the bug and decided to have a look at the code. I'm not sure of what I'm about to say (my knowledge in Perl is next to none), but I think that there is a missing require MT::Entry; in the Context.pm file in sub _hdlr_categories (it would be at line 1649). Adding this solves my problem.

I've had this problem with MovableType (right now version 2.65, but I had the same thing a few versions back). I now use MySQL, though the problem arose with BerkeleyDB also previously. Running on a shared server with Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_perl/1.26.

The exact error from MT 2.63 (with different line numbers from 2.65) is:
CODE
An error occurred:

Undefined subroutine &MT::Entry::RELEASE called at lib/MT/Template/Context.pm line 1615.
jfbasta
So, really, no reply? Not even a "this ain't a bug"?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.