'."\n" ?>
モコです。
仕事でMT4iをいじらないといけなくなったのでいじる
導入するファイルは4つしかないし、かなり簡単でした
が、最後に一つこんなエラーで泣く。
エントリの更新画面でインタナルサバエラー
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\A passed through at /xxxxxxxxxx/mt4i.cgi line 620.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] "my" variable $text masks earlier declaration in same scope at /xxxxxxxxxx/mt4i.cgi line 3175.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 179.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 179.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 179.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 179.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 179.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 186.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 186.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Unrecognized escape \\s passed through at mt4ilib/Func.pl line 186.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] False [] range "\\w-" in regex; marked by <-- HERE in m/[^\\w- <-- HERE /\\\\]/ at /xxxxxxxxxx/plugins/MTPageRating.pl line 41.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Use of uninitialized value in substitution (s///) at /usr/lib/perl5/5.8.5/Encode/JP/H2Z.pm line 157.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Use of uninitialized value in substitution (s///) at extlib/Jcode/Tr.pm line 27.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Use of uninitialized value in substitution (s///) at /usr/lib/perl5/5.8.5/Encode/JP/H2Z.pm line 157.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Use of uninitialized value in substitution (s///) at extlib/Jcode/Tr.pm line 27.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Can't call method "entry_prefs" on an undefined value at /xxxxxxxxxx/mt4i.cgi line 2154.
[Fri May 18 00:20:44 2007] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: mt4i.cgi
最後の行の「Premature end of script headers」でぐぐると結構同じ事で悩んでいる人がいるらしく
これが原因と思い込んでしばらくgoogleとにらめっこしてた
結局、原因は設定ページの
「AuthorName - Entry投稿者のログイン名」
こいつを設定してなかったのが問題だったっぽい。
他に
#!/usr/bin/perl -w
を
#!/usr/bin/perl --
に変えたりとか、結局効果があったのかどうか結局謎だっぽ