Help - Search - Members - Calendar
Full Version: Rebuilds Some Pages, But Not All
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
pastaqueen
I've been running MT 3.2 for a couple months now with no problems, but today I've run into problems rebuilding my site.

I use a "Header" and "Footer" module in all my site templates (index, category pages and individual entries). These templates are additionally linked to files on the server. The "Footer" module includes a reference to a template module called "Blogroll" I updated my blogroll today. When I rebuild the site, I can rebuild the index pages and the category pages with no problem. However, when I rebuild the Individual Archives I run into problems.

The first time I run "Rebuild Individual Archives Only" after updating the "Blogroll" module it goes to the page saying it's rebuilding pages 1-40, then it gives me a 500 server error. When I try rebuilding the individual pages again I get an error like this:

Building entry 'Recipe - Apple Strudel Muffins' failed: Build error in template 'Individual Entry Archive': Error in <MTInclude> tag: Can't find included template module 'Header'

If I run it again it gives me the same sort of error, but sometimes references a different blog entry or a different module, such as Footer or Blogroll. If I go and update either of these modules again, the same 2 part error process happens when I rebuild - first the 500 error and then the MT errors.

When I went and looked at my site, I saw that some of the individual entries had been successfully rebuilt with the new blogroll module code, but the older ones had not. I find it very odd that MT will rebuild the index, the category pages, and some of the individual entry pages, but then it has problems with other individual entires since each one of these templates links to the same Header and Footer modules.

I swear I have not made any changes to the MT configuration lately. I tried deleting the modules and recreating them, but that doesn't seem to help. My web hosting company is going to be moving servers in the next couple weeks, so it may be possible they have done something to screw up the site, but what could it be and how do I fix it?
sarah
If you temporarily remove the references to your modules in the templates, do the pages rebuild without error?

Is there more detail about the 500 Error logged in the server error log?

What database type are you using?
pastaqueen
I removed the module references, rebuilt the individual entry pages, it says it's building pages 1-40 and then and I get this error:

Building entry 'Entry Title' failed: Load of blog '1' failed: Tie '/home/myusername/public_html/mt/db/category.parent.idx' failed: Cannot allocate memory

The error log for my server when I got the 500 error previously says this:
Premature end of script headers: /home/myusername/public_html/mt/mt.cgi

I am using the default database settings, so I guess that's the Berkeley DB. Should I try converting to a MySQL database?
pastaqueen
Okay! I converted the DB from Berkley to MySQL and that has solved my rebuild problems

New problem: I cannot stay logged in. Every time I click on a link to go to another page within MT I get shunted to the log in page. Once I log in I get to go to the page I was clicking on. I had to do this everytime the rebuilding page refreshed. I click the "Remember Me?" box each time and it doesn't help. When I switched to the MySQL database I added these lines to mt-config.cgi

ObjectDriver DBI::mysql
Database database_name
DBUser database_user
DBPassword password

When I comment these lines out again to use the Berkley DB the log in problems go away. Do I need to change something else in the mt-config.cgi file so I can stay logged in? Thanks!

ETA: 12-17-05 - Looks like the mt_session table wasn't created either. If anyone else has this problem this post holds the answer http://www.sixapart.com/movabletype/forums...showtopic=55827
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.