[tDiary-users-talk: 0476] [Q] tDiary 3.0.2 + blogkit with ruby 1.9

Back to archive index

Hiroki Kashiwazaki reo****@iic*****
2011年 4月 29日 (金) 17:41:06 JST


柏崎です。

tDiary 3.0.2 + blogkit + ruby 1.9.2p0 (2010-08-18 revision 29036) 
[amd64-freebsd8] の環境でエラーが発生します。ruby 1.8.7 (2010-08-16 
patchlevel 302) [amd64-freebsd8] では問題ないようです。

構築は以下の通り.www の DocumentRoot は /home/www と思って下さい.

% wget http://www.tdiary.org/download/tdiary-3.0.2.tar.gz
% wget http://www.tdiary.org/download/tdiary-blogkit-3.0.2.tar.gz
% tar xvfz tdiary-3.0.2.tar.gz
% tar xvfz tdiary-blogkit-3.0.2.tar.gz
% mv tdiary-3.0.0 /home/www/t302bt
% mv tdiary-blogkit-3.0.0 /home/www/t302bt/blogkit
% cd /home/www/t302bt
% cp blogkit/tdiary/blog_style.rb tdiary/
% cp blogkit/tdiary.conf.sample tdiary.conf
% vim tdiary.conf
% diff -u blogkit/tdiary.conf.sample tdiary.conf
--- blogkit/tdiary.conf.sample  2011-04-29 07:54:33.000000000 +0900
+++ tdiary.conf 2011-04-29 17:35:51.000000000 +0900
@@ -5,7 +5,7 @@
 #
 # data path
 #
- @ data_path = '/home/foo/blog'
+ @ data_path = '/home/reo/Documents/tdiary/t302bt'
/ 
 #
 # option of whatsnew-list, recent-entry and recent-entry2
@@ -146,4 +146,5 @@
 ]
 
 @secure = false
+ @ options['sp.path'] = ['blogkit/plugin', 'misc/plugin']
 load_cgi_conf

プラグインは特に有効にしておりません。この状態で日記をプレビュー/
追記しようとしますと、

500 Internal Server Error

undefined method `collect' for "body 1":String (NoMethodError)

/home/www/t302bt/tdiary/blog_style.rb:34:in `block in to_html4'
/home/www/t302bt/tdiary/tdiary_style.rb:150:in `block in each_section'
/home/www/t302bt/tdiary/tdiary_style.rb:149:in `each'
/home/www/t302bt/tdiary/tdiary_style.rb:149:in `each_section'
/home/www/t302bt/tdiary/blog_style.rb:23:in `to_html4'
/home/www/t302bt/tdiary/tdiary_style.rb:179:in `to_html'
(erb):7:in `eval_rhtml'
/usr/local/lib/ruby/1.9/erb.rb:753:in `eval'
/usr/local/lib/ruby/1.9/erb.rb:753:in `result'
/home/www/t302bt/tdiary.rb:399:in `eval_rhtml'
(erb):45:in `do_eval_rhtml'
/usr/local/lib/ruby/1.9/erb.rb:753:in `eval'
/usr/local/lib/ruby/1.9/erb.rb:753:in `result'
/home/www/t302bt/tdiary.rb:1140:in `do_eval_rhtml'
/home/www/t302bt/tdiary.rb:1489:in `eval_rhtml'
/home/www/t302bt/tdiary/dispatcher.rb:183:in `run'
/home/www/t302bt/tdiary/dispatcher.rb:238:in `dispatch_cgi'
/home/www/t302bt/update.rb:26:in `<main>'

となります。

-- 
柏崎礼生@東京藝術大学芸術情報センター
Hiroki Kashiwazaki @ Art Media Center, Tokyo University of Arts.
Assitant Professor
mailto:kashi****@noc*****
Tel: +81-50-5525-2473, Fax: +81-50-5525-2537




tDiary-users-talk メーリングリストの案内
Back to archive index