Movable Type Troubleshooting: Base class package ‘Data::ObjectDriver::BaseObject’ is empty Oct 24, 2007 // 12:06 am

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. :)

  • http://kusaeni.com kus

    1. berapa lama waktu yang dibutuhkan untuk mengintsall nya?

    2. Apakah aku perlu mengupdatenya ke MT SP2 ?

    3. Apakah aku perlu juga mengnonaktifkan firewall?

    4. Duuh script CGI tidak di ijinkan untuk dipakai di host ku, bagaimana ini?

    5. Apakah aku perlu mengupdate anti virus ku?

    6. MT apaan sih?

  • http://orangescale.net Thomas Arie

    1. Dari proses upload, pengalaman saya menginstall… semua bisa dikerjakan kurang dari 5 menit.
    2 dan 3: out topic :P
    4. Ya, anda sedang sial… cari hosting baru atau jangan install MT.
    5. Meng-update itu pilihan kok…
    6. Disini, MT artinya Movable Type, alat bantu blog yang saat ini bagus dalam hal memenuhi aktivitas nge-blog saya. Kurang jelas? Kunjungi http://movabletype.com/ :P

  • http://jkfans.com/blog/ ghaghah

    ternyata yang di edit 13 file yah…. pantesan waktu ngedit yang di config.pm masih lom bisa. Btw, tengkyu mas.

  • http://kusaeni.com kus

    Beberapa hari ini aku kesal sekali dengan MT. Secara tidak sengaja terperosok ke “ Receive email notification of further comments ” yang diaktifkan secara otomatis membuatku selalu menerima email berisi komentar dari sebuah situs yang mempergunakan MT.

    Sudah mencoba untuk unsubscribe lewat tautan yang dikutkan dalam email tapi malah masuk ke halaman 404.

    Pertanyaannya..

    Apakah aku harus mengirimkan sebuah email kosong bersubyek : Unsubscribe ?

  • http://jkfans.com ghaghah

    @kus
    sayah juga lagi bingung ma MT. kok kirim surat terus kalo ada komen. padahal kan gak subscribe lagi.

  • http://kusaeni.com kus

    apakah , untuk mendapatkan dukungan bantuan aku harus membayar?

    FYI : Kalau gak salah dari kasus serupa dari sebuah situs blog lainnya , akhirnya alamat email tersebut kutandai sebagai SPAM, karena sangat mengganggu.

    Tidak ada jalan untuk ubsubscribe kecuali harus bayar beberapa dollar?

  • stranger

    Hi I am facing the same problems and followed your remedy, but still i am getting the same error still..

    Got an error: Base class package “Data::ObjectDriver::BaseObject” is empty.
    (Perhaps you need to ‘use’ the module which defines that package first.)
    at /home/therapid/public_html/vijayetha/archive/lib/MT/Object.pm line 10
    BEGIN failed–compilation aborted at /home/therapid/public_html/vijayetha/archive/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 85.
    BEGIN failed–compilation aborted at /home/therapid/public_html/vijayetha/archive/lib/MT/Config.pm line 9.
    Compilation failed in require at /home/therapid/public_html/vijayetha/archive/lib/MT/ConfigMgr.pm line 256.

  • http://jonasparker.cheeseorgy.net/ JonasParker

    I just get a 500 error when I do this.

  • http://jonasparker.cheeseorgy.net/ JonasParker

    Sorry, I forgot to put in my specific information. When I do, I get the same original error. Which CGI files are we supposed to change?

  • http://orangescale.net Thomas Arie

    stranger, hmm… did you modify all .cgi files. When I solved my friend’s installation problem, I modified all .cgi files: Adding those lines

    JonasParker, about the 500 error pages. Have you checked the .cgi file permissions? All .cgi files should have 755 file permission. Usually, MT will just work in most web hosting server Perl config. I am not sure about the Perl path in your server… it might be the problem.

    All bundled .cgi files resides in the main MT directory. All should be modified (except mt-config.cgi).

  • http://www.writeage.com Dr. Ritalin

    Thanks man! You solved my problem. I had this kind of error installing MT 4.01:
    Got an error: Error opening file ‘/mt-config.cgi’: No such file or directory
    I did everything to solve without any success, and your trick worked like a charm.
    Just wanna say thank you.

  • bunny

    hi guys, i am getting desperate installing my mt…
    i have a problem with perl… and get the following error message:

    The script could not be executed correctly.
    Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.

    i swear the files were uploades as ASCIIs, they have all 755 permission and checked the perl path a hundert times… (even tried different locations…)

    is there anyone out there who might help me? i have no idea what else i might try.

  • http://forums.sixapart.com/lofiversion/index.php/t61456.html Reza

    For cases like this where the path to the config file cannot be determined, you can change all the CGI scripts to specify it explicitly:

    CODE
    use MT::Bootstrap App => ‘…’, Config => ‘/home/illogicz/public_html/cgi-bin/mt/mt-config.cgi’

    For example, mt.cgi looks like this:

    CODE
    use strict;
    use lib $ENV{MT_HOME} ? “$ENV{MT_HOME}/lib” : ‘lib’;
    use MT::Bootstrap App => ‘MT::App::CMS’;

    So, you’d change that last line to:

    CODE
    use MT::Bootstrap App => ‘MT::App::CMS’, Config => ‘/home/illogicz/public_html/cgi-bin/mt/mt-config.cgi’;

    OR, you may be able to use a rule in an .htaccess file (placed in the MT installation directory) to set the MT_CONFIG environment variable:

    CODE
    SetEnv MT_CONFIG /home/illogicz/public_html/cgi-bin/mt/mt-config.cgi

  • bunny

    Wow, that was a fast answer thanks!!
    But unfortunately it did not solve the problem. I chanced all the cgi files that had the lines:

    use MT::Bootstrap App => ‘…’, Config => ‘/home/illogicz/public_html/cgi-bin/mt/mt-config.cgi’

    substituting the points with:

    MT::App::CMS
    MT::App::NotifyList
    MT::AtomServer
    etc..

    i am using this perl path: #!/usr/bin/perl
    within all cgi files, uploaded them in ASCII and set the permissions to 755 – all this results in the error message already mentioned:

    The script could not be executed correctly.
    Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.

    Unfortunately I couldn’t find any htaccess file so far.

    Is there anything else i might try? Calling my host support was no big help :(

    Thanks for you patience with me…
    bunny

  • bunny

    ok, I changed the line:

    use MT::Bootstrap App => ‘…’, Config => ‘/home/illogicz/public_html/cgi-bin/mt/mt-config.cgi’

    into several versions of this one:

    use MT::Bootstrap App => ‘MT::App::CMS’, Config => ‘/home/visual-rating/friedenau/cgi-bin/mt/mt-config.cgi’;

    because I was not too sure what should follow after home. the addess of my mt.cgi is: http://www.visual-rating.de/friedenau/cgi-bin/mt/mt.cgi

  • bunny

    … but still the same error…

    the desperate bunny :(

  • http://drnorfaizal.com/brainmatter faizal

    thanks for the tips. at last i can sleep well tonight seeing my first blog. Thank you.

  • http://drnorfaizal.com/blog drnorfaizal

    Thanks for solving my sleepless night installing and uploading MT4 on my server. Thanks man.

blog comments powered by Disqus

Live search:

I'm @thomasarie on Twitter

Subscribe to RSS

Enter your email address and get recent updates sent to your email in the morning.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Designed by Thomas Arie. Icon character by Fredy Sujono.