Help - Search - Members - Calendar
Full Version: Mt 3.2 Broke My Site: Type 500 Errors And .static
Movable Type Community Forum > Installing and Upgrading > Upgrading
JBoivin
Hi,

My host moved to a new server and I had to re-install MT - in the process, I installed MT 3.2 (as a new install not an upgrade - I was using 3.15 before). MT got all my settings from my MySQL database and everything seemed to work fine. My website's pages ends in .php, even if I don't really use php in them (except for some includes), nor they use dynamic data. It's only because I wanted them to be ready for some new functionnalities I'd like to add in the future.

Prior to upgrading, I published my pages statically, with linked templates.

After the upgrade, I always get Type 500 errors (Internal Server Error) when I access my site. I managed to get it working by manually settings all my linked template to publish dynamically. However, I have a second blog that is embedded as an include in my homepage. When I repeated the process of having this second blog to publish dynamically, all my published pages got the .static suffix added to their filenames - breaking the site. Since then, I only managed to get Internal Server Errors, I have all those .static files polluting my server, and I realized that MT recreated some folders for some categories that included accented letters (not everybody speaks English, ya know wink.gif ).

So my website is completely useless, I don't know how to troubleshoot it and I'm getting quite discouraged. I don't mind re-installing everything, but I want to know how not to repeat the same problems.

BTW, I found the documentation for MT 3.2 hard to navigate and less helpful and complete than before.

Thanks for your help,

Jonathan
imabug
QUOTE
After the upgrade, I always get Type 500 errors (Internal Server Error) when I access my site. I managed to get it working by manually settings all my linked template to publish dynamically. However, I have a second blog that is embedded as an include in my homepage. When I repeated the process of having this second blog to publish dynamically, all my published pages got the .static suffix added to their filenames - breaking the site. Since then, I only managed to get Internal Server Errors, I have all those .static files polluting my server, and I realized that MT recreated some folders for some categories that included accented letters

did the DB get upgraded?

The .static files come from the switch to dynamic publishing and are just the old statically published files with a .static extension tacked on. Dynamic publishing may not be compatible with the way you're embedding the other blog (impossible to say for sure without knowing how you do it). did you follow all the steps to enable dynamic publishing?

what errors get reported in the webserver error log?
JBoivin
QUOTE (imabug @ Nov 28 2005, 09:32 AM)
did the DB get upgraded?


Yes.

QUOTE (imabug @ Nov 28 2005, 09:32 AM)
The .static files come from the switch to dynamic publishing and are just the old statically published files with a .static extension tacked on.  Dynamic publishing may not be compatible with the way you're embedding the other blog (impossible to say for sure without knowing how you do it).  did you follow all the steps to enable dynamic publishing?


I've tried that, no success.

QUOTE (imabug @ Nov 28 2005, 09:32 AM)
what errors get reported in the webserver error log?
*


Looks like that:
CODE
[2005-12-01 22:22:30]: error: file is writable by others: (/home/jboivin/public_html/index.php)
[2005-12-01 22:21:32]: error: file is writable by others: (/home/jboivin/public_html/index.php)
[2005-12-01 22:19:35]: error: file is writable by others: (/home/jboivin/public_html/archives/index.php)
[2005-12-01 22:19:29]: error: file is writable by others: (/home/jboivin/public_html/archives/index.php)
....
[Thu Dec  1 22:22:30 2005] [error] [client 209.237.230.104] File does not exist: /home/jboivin/public_html/500.shtml
[Thu Dec  1 22:22:30 2005] [error] [client 209.237.230.104] Premature end of script headers: /home/jboivin/public_html/index.php
[Thu Dec  1 22:21:32 2005] [error] [client 24.203.151.79] File does not exist: /home/jboivin/public_html/500.shtml
[Thu Dec  1 22:21:32 2005] [error] [client 24.203.151.79] Premature end of script headers: /home/jboivin/public_html/index.php


And, just as an example, here is my main index template:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="fr" />
<meta name="author" content="Jonathan Boivin" />
<meta name="copyright" content="Tous droits r&eacute;serv&eacute;s 2004" />
<meta name="keywords" content="Jonathan Boivin,blogue,design,webdesign,ça,Mac,MacOS X,blog,cinema,musique" />
<meta name="description" content="C'est ça qui est ça: apologies d'un haut-parleur timide - Blogue de Jonathan Boivin" />
<meta name="robots" content="all" />
<meta name="MSSmartTagsPreventParsing" content="false" />
<title>C'est ça qui est ça &mdash; apologies d'un haut-parleur timide</title>

<!-- Favicon -->
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<!-- Versions XML -->
<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>rss/atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<$MTBlogURL$>rss/index.rdf" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>rss/index.xml" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rss/rsd.xml" />

<MTBlogIfCCLicense><$MTCCLicenseRDF$></MTBlogIfCCLicense>

<style type="text/css" title="Capiteux" media="screen">
    @import "capiteux.css";
</style>
</head>

<body id="accueil">
<div id="contenu">
    <h1 id="header">C'est &ccedil;a qui est &ccedil;a</h1>
    <p class="invisible">le blogue de Jonathan Boivin &mdash; cinéma design web musique commentaires &mdash; mis à jour le plus souvent possible</p>
    <div id="nav">
 <ul id="navsections">
     <li><a href="apropos.php" title="À propos de moi, du site, des patates et des bancs de neige" id="navapropos">À propos</a></li>
     <li><a href="docs" title="Des trucs qui pourraient vous être utiles"  id="navdocs">Docs</a></li>
     <li><a href="liens.php" title="Des liens, pour le fun, pour l'inspiration, pour en savoir plus" id="navliens">Liens</a></li>
     <li><a href="goodies.php" title="Cados!"  id="navgoodies">Goodies</a></li>
     <li><a href="archives" title="Si vous voulez fouiller, tout est encore là" id="navarchives">Archives</a></li>
 </ul>
 <ul id="navutiles">
     <li><a href="#" title="Adaptez à votre style" id="navstyle">Style</a></li>
     <li><a href="/rss" title="Abonnez-vous à la version RSS de ce site" id="navrss">RSS</a></li>
 </ul>
    </div>
    <hr class="invisible" />
    <div id="corps">
 <div id="blog">
     <h2 class="invisible">Apologies d'un haut-parleur timide</h2>
     <MTEntries lastn="5">
     <$MTEntryTrackbackData$>
     <div class="entree">
   <h3 class="titreentree"><$MTEntryTitle$></h3>
   <p class="dateentree"><$MTEntryDate format="%A, %e %B %Y"$></p>
   <div class="corpsentree">
       <$MTEntryBody$>
       <p class="posted">Placé dans <strong><$MTEntryCategory></strong> &mdash; <a href="<$MTEntryPermalink$>">Permalien</a>
       <MTEntryIfAllowComments>
     | <a href="<$MTEntryPermalink$>#comments">Commentaires (<$MTEntryCommentCount$>)</a>
       </MTEntryIfAllowComments>
       <MTEntryIfAllowPings>
     | <a href="<$MTEntryPermalink$>#trackbacks"><em>TrackBack</em> (<$MTEntryTrackbackCount$>)</a>
       </MTEntryIfAllowPings>
       </p>
   </div>
     </div>
     </MTEntries>
 </div>
 <div id="breves">
     <h2 id="titrebreves">Courtes brèves</h2>
     <div id="contenubreves">
   <div class="innerstroke">
       <?php
     include("includes/courtesbreves.inc");
       ?>
   </div>
     </div>
     <h2 id="titrerecentposts">Récemment...</h2>
     <div id="recentposts" class="autrecontenubreves">
   <div class="innerstroke">
   <MTEntries lastn="5" offset="5">
       <h3 class="titreentree"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h3>
   </MTEntries>
   </div>
     </div>
     <h2 id="titrerecentcomments">Ce qu'ils ont dit</h2>
     <div id="recentcomments" class="autrecontenubreves">
   <div class="innerstroke">
       <MTComments lastn="5" sort_order="descend">
     <MTCommentEntry>
     <p><a href="<$MTEntryPermalink$>#c<$MTCommentID$>"><$MTCommentAuthor$></a> sur <a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></p>
     </MTCommentEntry>
       </MTComments>
   </div>
     </div>
 </div>
    </div>
    <hr class="invisible" />
    <div id="footer">
 <p><em class="ccqec">C'est ça qui est ça</em> © Tous droits r&eacute;serv&eacute;s 2004 Jonathan Boivin</p>
<p><a href="http://validator.w3.org/check?uri=referer" title="Validez cette page">XHTML</a> / <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validez le CSS">CSS</a> &mdash; Contenu g&eacute;r&eacute; par <a href="http://www.movabletype.org">Movable Type</a>
</p>
    </div>
</div>
</body>
</html>


What's that mtview.php thing? Iv'e turned off dynamic publishing, since I don't really use it. Why has everything fallen apart when I upgraded? MT seems to stubbornly put wrong permissions on files when I rebuild the site...

Thanks
lisa
QUOTE (JBoivin @ Dec 1 2005, 07:26 PM)
Looks like that:
[code]
[2005-12-01 22:22:30]: error: file is writable by others: (/home/jboivin/public_html/index.php)
[2005-12-01 22:21:32]: error: file is writable by others: (/home/jboivin/public_html/index.php)
[2005-12-01 22:19:35]: error: file is writable by others: (/home/jboivin/public_html/archives/index.php)
[2005-12-01 22:19:29]: error: file is writable by others: (/home/jboivin/public_html/archives/index.php)


You'll want to edit mt-config.cgi and change your HTMLUmask. Mine is set to 0133 (and remove the "#" at the beginning of the line).

Also, you may want to change DirUmask to 0022.

If you still get that error message, also update HTMLPerms to something like 0644.

QUOTE (JBoivin @ Dec 1 2005, 07:26 PM)
What's that mtview.php thing? Iv'e turned off dynamic publishing, since I don't really use it. Why has everything fallen apart when I upgraded? MT seems to stubbornly put wrong permissions on files when I rebuild the site...

Thanks
*


mtview.php is used by dynamic publishing. It doesn't do anything unless you have that enabled.

Your web server is not happy that your files have such open permissions. I think once you make the changes I've mentioned, then things should be happier.
JBoivin
That did the trick! Everything works now.

Thanks for your invaluable help!
lisa
QUOTE (JBoivin @ Dec 3 2005, 11:41 AM)
That did the trick! Everything works now.

Thanks for your invaluable help!
*

You're welcome! smile.gif
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-2010 Invision Power Services, Inc.