default userpic

Error during installation: undefined type: at lib/MT/Upgrade.pm line 1316

Vote 0 Votes

I recently built a movable type installation on Mac OS X 10.5.2, with Postgres 8.3.0, and MT 4.1 Open Source.

When I get to the point of database upgrade, I get the error: Error during installation: undefined type: at lib/MT/Upgrade.pm line 1316

7 Replies

| Add a Reply
  • You should log that as a bug. Whenever a user encounters an error like that, is almost always is a bug.

    Chris Hall, our QA lead, can tell you if he has heard of other users with this issue and what the best path forward for you should be.

    It does sound familiar to me, but it is hard to be sure.

  • I just got the same error on Win XP with Postgres 8.3 and MT 4.1, so maybe it's a problem with the Postgres support.

    Dunno about OP, but I'm a complete newb, so maybe we just both screwed up identically too ;-)

  • Me too. PG 8.3 and MT 4.1 on Linux. I'll try upgrading to MT nightly and see where that gets me.

  • Nope. Looks like I'm dead in the water until someone fixes this bug. I took a shot at it, but failed; I need to move on to other things. Too bad, MT looked like it might be cool.

  • user-pic

    What version of DBD::Pg module do you have on your server? You can check the module version in mt-check.cgi. If it is v2.0 or up, I would ask you to try downgrading the module to the latest of v1.x. V2.x seems under heavy development and may not be stable.

  • default userpic

    I had the same problem, thought I'd post here since it's the only place I found that referenced it. Edit lib/MT/ObjectDriver/DDL.pm line 410 so it goes from:
    } elsif ($type == SQL_BOOLEAN) {
    return 'boolean';
    }

    to
    } elsif ($type == SQL_BOOLEAN) {
    return 'boolean';
    } elsif ($type == SQL_FLOAT) {
    return 'float';
    }

    I did a stacktrace and saw they were missing this, it worked for me. Good luck!

  • Re: Jayson Pifer - thanks! This solution seems to work. I wonder if one can add this change to the MT codebase without breaking it on older DBD::Pg modules.

    In any case, after I applied this change it seems that MT is working nicely.

    Thanks!

    Regards,

    Shlomi Fish

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1771 6153

Last Topic: Preview Template - Where can I find it? by Dice on Feb 6, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

693 2907

Last Topic: database upgrade hangs - upgrading to 4.37 by CrankyProfessor on Feb 1, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

221 710

Last Topic: Publish queue cache coherence issue by Istvan Kallai on Jan 27, 2012