IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

 
Reply to this topicStart new topic
> Mt 3.2 Broke My Site: Type 500 Errors And .static
JBoivin
post Nov 27 2005, 09:44 AM
Post #1





Group: Members
Posts: 10
Joined: 3-July 04
From: Montreal
Member No.: 25,456



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
Go to the top of the page
 
+Quote Post
imabug
post Nov 28 2005, 06:32 AM
Post #2





Group: Members
Posts: 2,543
Joined: 16-October 03
Member No.: 16,767



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?


--------------------
MT 4.2 MySQL5.0.51 Perl 5.10.0 PHP5.2.5 Apache2.2
[img]http://feeds.feedburner.com/Imablog.gif[/img]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS d-(+) s: a C++ UX++++V++S++L++ P+>+++ L+++ E+>++ W++ N++(+++) o? K? w !O !M V-- PS PE Y+ PGP++ t++ 5++ X++ R+ tv++ b++(+++) DI++++ D+ G++ e+++>++++ h--- r+++ y?
-----END GEEK CODE BLOCK-----
Go to the top of the page
 
+Quote Post
JBoivin
post Dec 1 2005, 07:26 PM
Post #3





Group: Members
Posts: 10
Joined: 3-July 04
From: Montreal
Member No.: 25,456



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
Go to the top of the page
 
+Quote Post
lisa
post Dec 2 2005, 01:18 PM
Post #4


Technical Services


Group: Six Apart Moderators
Posts: 2,480
Joined: 30-October 05
From: Woburn, MA
Member No.: 33,515



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.


--------------------
Go to the top of the page
 
+Quote Post
JBoivin
post Dec 3 2005, 08:41 AM
Post #5





Group: Members
Posts: 10
Joined: 3-July 04
From: Montreal
Member No.: 25,456



That did the trick! Everything works now.

Thanks for your invaluable help!
Go to the top of the page
 
+Quote Post
lisa
post Dec 3 2005, 09:22 AM
Post #6


Technical Services


Group: Six Apart Moderators
Posts: 2,480
Joined: 30-October 05
From: Woburn, MA
Member No.: 33,515



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


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.25.09 - 12:19 AM