[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: planet.debian.or.jp の表示がおかしい



On Sun, 27 Jun 2010 21:15:46 +0900
Hideki Yamane <henrich@xxxxxxxxxxxxxx> wrote:
>  まだ原因が分かってませんが、該当のサーバに libtemplate-plugin-xml-perl が
>  無いようなので、これを追加してもらえますか。

 リポジトリにある XML ディレクトリのモジュールを読んでエラーを起こしている?
 XML/README には
> Unfortunately libtemplate-perl has removed XML plugin since 2.15.
> Here is backported files from 2.14 (and tweaked a bit) for keeping
> a compatibility.
> Please copy these files to your /usr/lib/perl5/Template/Plugin/XML/
> directory until the upstream author revives XML plugin.

 とあるので、もういらないのかも。
 場所は若干違って /usr/share/perl5/Template/Plugin/XML/ ですが。

 XML ディレクトリを取り除いてみてもいいでしょうか?

 ttree の結果。

> Subroutine new redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 37.
> Subroutine _throw redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 82.
> Subroutine present redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 98.
> Subroutine content redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 103.
> Subroutine starttag redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 118.
> Subroutine endtag redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 128.
> Subroutine present redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 143.
> Subroutine present redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 153.
> Subroutine starttag redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 154.
> Subroutine endtag redefined at /usr/share/perl5/Template/Plugin/XML/XPath.pm line 155.
> Use of uninitialized value $text in concatenation (.) or string at /usr/lib/perl5/Template/Context.pm line 459.
> ttree 2.9 (Template Toolkit version 2.19)
> 
>       Source: /home/henrich/www.debian.or.jp/
>  Destination: /home/henrich/test/www.debian.or.jp/
> Include Path: [ /home/henrich/www.debian.or.jp/include ]
>       Ignore: [ \b(CVS|RCS)\b, \.svn, ^#, ~$, \b(.svn)\b ]
>         Copy: [ \.png$, \.jpg$, \.gif$, \.jpeg$, \.ico$, \.pdf$, \.tty$, \.eps$, \.txt$, \.mgp$, \.html$, \.htm$, \.ent$, \.sgml$, \.css$, \.js$ ]
>       Accept: [  ]
>       Suffix: [ tt2 => html ]
> 
>   - .svn                             (ignored, matches /\.svn/)
>   - XML/.svn                         (ignored, matches /\.svn/)
>   + XML/RSS.pm                      
>   ! file error - parse error - XML/RSS.pm line 154: unexpected token (..)
>   [% news.channel.etc... %]
>   + XML/Style.pm                                    
>   ! file error - parse error - XML/Style.pm line 217-229: unexpected token (..)
>   [% style_one = {
>           table = { ... }
>           tr    = { ... }
>        }
>        style_two = {
>           table = { ... }
>           td    = { ... }
>        }
>        style_three = {
>           th = { ... }
>           tv = { ... }
>        } %]
>   + XML/DOM.pm                      
>   ! file error - parse error - XML/DOM.pm line 361-371: unexpected token (_template_kids)
>   [% node.

(以下略)

 試しにローカルで XML ディレクトリを取り除いたらエラーは減った。
> ttree 2.9 (Template Toolkit version 2.19)
> 
>       Source: /home/henrich/www.debian.or.jp/
>  Destination: /home/henrich/test/www.debian.or.jp/
> Include Path: [ /home/henrich/www.debian.or.jp/include ]
>       Ignore: [ \b(CVS|RCS)\b, \.svn, ^#, ~$, \b(.svn)\b ]
>         Copy: [ \.png$, \.jpg$, \.gif$, \.jpeg$, \.ico$, \.pdf$, \.tty$, \.eps$, \.txt$, \.mgp$, \.html$, \.htm$, \.ent$, \.sgml$, \.css$, \.js$ ]
>       Accept: [  ]
>       Suffix: [ tt2 => html ]
> 
>   - .svn                             (ignored, matches /\.svn/)
>   - www.memo.txt                     (not modified)
>   - MirrorsJP.list                   (not modified)
>   - svn-commit.tmp                   (not modified)
>   - progs/.svn                       (ignored, matches /\.svn/)
>   + progs/afters2h                  
>   ! file error - parse error - progs/afters2h line 15: unexpected token (")
>   [% title = \"$1\" %]
>   - progs/todo.txt                   (not modified)
>   + progs/quick-validate            
>   ! file error - parse error - progs/quick-validate line 59-60: unexpected token (/)
>   [% / || /%\]/) {
>                 print STDERR "$file ($line): You can't use TT tag [% %]
>   - progs/validation                 (not modified)



 
 あと、/etc/blosxom.conf で以下が EUC-JP 指定していない。
 古いバージョンだとこの項目がなかった?

> # What's this blog's text encoding ?
> $blog_encoding = "UTF-8";


-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/iijmio-mail.jp