default userpic

Upgraded from 4.1 to 4.25, now main index won't publish

Vote 0 Votes

I recently upgraded my MT install from MT 4.1 to MT 4.25, doing it the way I always have, that is, by un-tarring the contents of MT-x.tgz (in this case, x = 4.25) into my htdocs directory and initiating the db upgrade after logging in at mt.cgi.

So far, so good, then I go to publish an entry. I get several errors, notably:

1. missing HTML Head template module
2. missing rsd template
3. missing Banner Header template module
4. missing Entry Summary template module
5. missing archive_index template
6. missing Sidebar template module
7. missing Banner Footer template module

Unfortunately I forgot to back up my MT database before upgrading (although I had backed up my htdocs directory) so I can't downgrade.

I can see that all these "missing" modules are in htdocs/default_templates, so why am I missing them all of a sudden?

I have to admit, I haven't really messed around with my blog templates since MT3 so I don't know if these are new missing things or what, but needless to say, after having upgraded about 10 times without a hitch over the years (I've been a MT user since 2001) and this came as a real surprise.

Can I make my MT installation aware of those templates?

Reported on Movable Type 4.2

7 Replies

| Add a Reply
  • When you rebuild your site, does it throw errors saying it can't find the template modules?

  • That's exactly what it does. It tells me:

    Publish error in template 'Main Index': Error in <mtInclude> tag: 
    Can't  find included template module 'HTML Head' 
    

    and so on as the complaining tags are removed.

    When I go to edit the template, it lists 4 included templates with links to create them:

    Included Templates
    ------------------
    HTML Head (create)
    Banner Header (create)
    Sidebar (create)
    Banner Footer (create)
    
  • I'm having a similar problem - but different:


    • Upgraded 4.23 - 4.25

    • Created new Blog using Motion templates

    • created several new test posts - built / rebuilt - everything was fine

    • Started redesign

    • Suddenly Main Index won't rebuild - says can't find Include template Sidebar

    • remove include module sidebar - rebuild - error=can't find template Include Footer Banner

    • remove Footer Banner - rebuilds fine

    Everything rebuilds fine with sidebar and footer in Entry template... so, I screwed up Main Index somewhere... right?

    So, I delete Main_Index - recreate it as blank - rebuild it... then I create second test blog - copy paste Main_Index template - same story... different day.

    Any suggestions?

  • Hello Guys,

    The problem you are facing is that your movable type blogs are based on a specific movable type templating architecture (specific module names) and that the new version is based on different module names...

    What I would call the easiest solution to this is to go to:

    Design -> Templates

    And from the right side bar, under 'Actions' to click on:

    'Refresh Blog Templates'

    This is going to regenerate all your templates to the current version architecture!

    ATTENTION!

    In case on your older templates you've had specific coding that you've added (custom coding, in house made widgets etc) running 'Refresh Blog Templates' will erase these.

    So, you may like to first have a look at your current templates, create a local copy on your disk and then run 'Refresh Blog Templates'.

    If you've had some custom coding, you can then start porting it to the new templates...

    Also, if you are afraid not to ruin something and you need professional consultancy on this, I am available to do this job for you.

    Cheers,
    Mihai

  • Thanks Mihai.That worked for me. Note, I had to do the refresh templates from the system page. If I clicked on refresh blog templates I'd get this white box on my screen.

  • Wow. That completly reset all my templates back to the original. That really sucked.

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