Movable Type Error ‘Can’t Locate Mt/bootstrap.pm’ and run-periodic-tasks

Spent a few hours yesterday trying to get future publishing to work on my MT blog. Kept getting an error message:

Can’t locate MT/Bootstrap.pm in @INC and then a whole lot of other stuff…

After some searching in the forums I found this thread:

If you run mt-check.cgi and
notice that your current working directory and your MT home directory
(second and third line from the top of the report) are DIFFERENT,
you’ll most probably have this issue. To solve it, manually add the FULL location of the MT plugin lib in the run-periodic-tasks file.



So I opened up run-periodic-tasks and looked for this line:

use lib ‘lib’, ‘/lib’;

and substituted in the full path (this will be different depending on your hosting setup)

use lib ‘lib’, ‘/home/12345/domains/andywibbels.com/cgi-bin/mt/lib’;

Then I setup the script to run as a cronjob every 30 minutes and now it works!

This entry was posted in General on by .

About Andy Wibbels

Andy is an award-winning blogger and author of the book Blogwild! A Guide for Small Business Blogging. His work has been featured in The Wall Street Journal, USA Today, Entrepreneur, Wired, Business Week, Forbes, and other national and international media. He was worked at several San Francisco startups including Get Satisfaction, SAY Media, InMobi, Keas, and Mindjet. Currently, Andy is Director of Marketing at Lucidworks. Tw · Fb · G+ · Li

Leave a Reply

Your email address will not be published. Required fields are marked *