バングラデシュに愛の花を咲かせよう

【movable type】スタイルを適応したときの500エラー

MTを4.2にアップグレードしたとたん、??なエラーが表示されるようになりました。
Error: [500] <h1>Script Error</h1>
<p>The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with <tt>.cgid</tt>extension, or add a <tt>AddHandler cgi-script-debug .cgi</tt>line to your <tt>.htaccess</tt> file.</p>
というものです。
検索してみたのですが、解決策は見つからず。
4.22にアップグレードしたので、直るかと思いましたが、結局直らないので、3ヵ月後の今日、また検索してみました。
すると、こちらのブログに解決策が!
http://bizcaz.com/archives/2008/09/22-014009.php
確かにこれで直りました。
#のコメントアウトは、
print STDERR "styles=$styles\n";
最初と最後につけるだけで大丈夫です。
#print STDERR "styles=$styles\n";#
という感じ。
それにしても、web2.0の恩恵で、がんばれば必ず解決策が見つかる時代になりましたね。
ブログが生まれなかったら、こんなことは不可能だったと思います。
皆様に感謝!

モバイルバージョンを終了