In my previous article, ghaghah shared his comment about MT4 installation process. I seemed that he was a little bit frustrated because he never got MT4 installed properly. I asked him about what kind of error message, because the installation process is pretty simple: upload the files, give the correct file permission for all .cgi files, and run the installation wizard. Just like any other web-based application installation.
He told me that he got these error message:
Got an error: Base class package "Data::ObjectDriver::BaseObject" is empty. (Perhaps you need to 'use' the module which defines that package first.) at lib/MT/Object.pm line 10 BEGIN failed--compilation aborted at lib/MT/Object.pm line 10. Compilation failed in require at (eval 12) line 3. ...propagated at /usr/lib/perl5/5.8.8/base.pm line 91. BEGIN failed--compilation aborted at lib/MT/Config.pm line 9. Compilation failed in require at lib/MT/ConfigMgr.pm line 256.
Okey, I have to admit that I never had this kind of error when I installed MT. At first, I thought that something went wrong during the upload process. But, I was wrong. I uploaded all files, and did the standard initial process before installing MT. I got that error.
After searching for solution, it seems that there are some users experienced this too. During the upgrade or fresh install process.
A solutions was proposed. A user was told to add these lines into .cgi files.
use strict;
BEGIN { $ENV{'MT_HOME'} = '/home/username/path/to/mt/'; }
For example, in mt.cgi, we need to add BEGIN { $ENV{'MT_HOME'} = '/home/username/path/to/mt/'; } after use strict;. There are 13 files needed to be modified. After patching those files, check again the file permission for .cgi files.
After this, if you want to install MT, just open mt.cgi in your browser. You will be redirected to an installation wizard. All should work now. :)