Hello dear list,
I just used my instiki to edit some thoughts
for a meeting.
I inserted roughly
(!WARNING DON''T DO THIS IN A PRODUCTION INSTIKI!)
------
a *b
** c
* d
------
(should habe been ''a\n*b\n ...'')
In which case the save resulted in an error message.
------
NoMethodError in Wiki#save
undefined method `length'' for nil:NilClass
/app/models/chunks/engines.rb:34:in `mask''
/app/models/chunks/engines.rb:17:in `apply_to''
/app/models/wiki_content.rb:169:in `build_chunks''
/app/models/wiki_content.rb:147:in `initialize''
/app/models/revision.rb:80:in `new''
/app/models/revision.rb:80:in `display_content''
/app/models/revision.rb:109:in `force_rendering''
/app/models/page.rb:37:in `revise''
/app/models/page.rb:15:in `initialize''
/app/models/wiki_service.rb:108:in `new''
/app/models/wiki_service.rb:108:in `write_page''
/app/controllers/wiki_controller.rb:187:in `save''
/./script/server:92
/./instiki:6
------
After restarting the wiki I can''t access it any more
There were to many redirects. The error was reproducible with a new instiki
I tried to remove the last snapshot, this worked but would mean I
would lose more or less everything I did the last 30 minutes.
(doesn''t sound like very much but (random) thought are not easily
Reconstructable :-( ).
I use (as gem''s)
instiki (0.10.1)
madeleine (0.7.1)
on windows
The error message is (repeating at the end:
------
[2005-07-29 12:00:00] INFO WEBrick 1.3.1
[2005-07-29 12:00:00] INFO ruby 1.8.2 (2004-12-25) [i386-mswin32]
[2005-07-29 12:00:00] INFO WEBrick::HTTPServer#start: pid=1784 port=2500
Processing WikiController#index (for 127.0.0.1 at Fri Jul 29 12:03:45 W. Europe
Daylight Time 2005)
Parameters: {"action"=>"index",
"controller"=>"wiki"}
Redirected to http://localhost:2500/wiki/show/HomePage
Completed in 0.000100 (10000 reqs/sec)
127.0.0.1 - - [29/Jul/2005:12:03:45 W. Europe Daylight Time] "GET /
HTTP/1.1" 302 106
- -> /
Processing WikiController#show (for 127.0.0.1 at Fri Jul 29 12:03:46 W. Europe
Daylight Time 2005)
Parameters: {"action"=>"show",
"id"=>"HomePage",
"controller"=>"wiki",
"web"=>"wiki"}
Rendering wiki/page within layouts/default
MiKTeX-pdfetex 2.4.1986 (1.21a) (MiKTeX 2.4)
Copyright (C) 1982 D. E. Knuth, (C) 1996-2002 Han The Thanh
TeX is a trademark of the American Mathematical Society.
undefined method `length'' for nil:NilClass (ActionView::TemplateError)
On line #81 of /wiki/page.rhtml
78: <% end %>
79: </small>
80:
81: <% unless @page.linked_from.empty? %>
82: <small>
83: | Linked from:
84: <%= @page.linked_from.collect { |referring_page|
/gems/RedCloth-3.0.3/lib/redcloth.rb:533:in `block_textile_lists''
/gems/RedCloth-3.0.3/lib/redcloth.rb:522:in `each_with_index''
/gems/RedCloth-3.0.3/lib/redcloth.rb:522:in `each''
/gems/RedCloth-3.0.3/lib/redcloth.rb:522:in `each_with_index''
/gems/RedCloth-3.0.3/lib/redcloth.rb:522:in `block_textile_lists''
/gems/RedCloth-3.0.3/lib/redcloth.rb:518:in `gsub!''
/gems/RedCloth-3.0.3/lib/redcloth.rb:518:in `block_textile_lists''
/gems/RedCloth-3.0.3/lib/redcloth.rb:612:in `call''
/gems/RedCloth-3.0.3/lib/redcloth.rb:612:in `blocks''
/gems/RedCloth-3.0.3/lib/redcloth.rb:611:in `each''
/gems/RedCloth-3.0.3/lib/redcloth.rb:611:in `blocks''
/gems/RedCloth-3.0.3/lib/redcloth.rb:586:in `collect''
/gems/RedCloth-3.0.3/lib/redcloth.rb:586:in `blocks''
/gems/RedCloth-3.0.3/lib/redcloth.rb:288:in `to_html''
/gems/instiki-0.10.1/app/models/chunks/engines.rb:34:in `mask''
/gems/instiki-0.10.1/app/models/chunks/engines.rb:17:in `apply_to''
/gems/instiki-0.10.1/app/models/wiki_content.rb:169:in
`build_chunks''
/gems/instiki-0.10.1/app/models/wiki_content.rb:147:in `initialize''
/gems/instiki-0.10.1/app/models/revision.rb:80:in `new''
/gems/instiki-0.10.1/app/models/revision.rb:80:in `display_content''
/gems/instiki-0.10.1/app/models/revision.rb:58:in `wiki_words''
/gems/instiki-0.10.1/app/models/page.rb:109:in `send''
/gems/instiki-0.10.1/app/models/page.rb:109:in `method_missing''
/gems/instiki-0.10.1/app/models/page_set.rb:39:in
`pages_that_link_to''
/gems/instiki-0.10.1/app/models/page_set.rb:39:in `select''
/gems/instiki-0.10.1/app/models/page_set.rb:39:in
`pages_that_link_to''
/gems/instiki-0.10.1/app/models/page.rb:76:in `linked_from''
(erb):81:in `evaluate_locals''
/gems/actionpack-1.7.0/lib/action_view/base.rb:265:in
`evaluate_locals''
/gems/actionpack-1.7.0/lib/action_view/base.rb:275:in
`rhtml_render''
/gems/actionpack-1.7.0/lib/action_view/base.rb:201:in `send''
/gems/actionpack-1.7.0/lib/action_view/base.rb:201:in
`render_template''
/gems/actionpack-1.7.0/lib/action_view/base.rb:181:in `render_file''
/gems/actionpack-1.7.0/lib/action_controller/layout.rb:208:in
`render_without_benchmark''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:22:in
`render''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:22:in
`measure''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:22:in
`render''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:447:in
`render_action''
/gems/instiki-0.10.1/app/controllers/wiki_controller.rb:203:in
`show''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:700:in `send''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:700:in
`perform_action_without_filters''
/gems/actionpack-1.7.0/lib/action_controller/filters.rb:294:in
`perform_action_without_benchmark''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in
`perform_action_without_rescue''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in
`measure''
/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in
`perform_action_without_rescue''
/gems/actionpack-1.7.0/lib/action_controller/rescue.rb:79:in
`perform_action''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:330:in `send''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:330:in
`process''
/gems/actionpack-1.7.0/lib/action_controller/base.rb:273:in
`process''
/gems/rails-0.11.1/lib/dispatcher.rb:32:in `dispatch''
/gems/instiki-0.10.1/public/dispatch.rb:10
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
/gems/rails-0.11.1/lib/webrick_server.rb:84:in `handle_dispatch''
/gems/rails-0.11.1/lib/webrick_server.rb:35:in `do_GET''
c:/program
files/developmenttools/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__''
c:/program
files/developmenttools/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service''
c:/program
files/developmenttools/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service''
c:/program
files/developmenttools/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:155:in
`start_thread''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start_thread''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:94:in
`start''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:89:in
`each''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:89:in
`start''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:79:in
`start''
c:/program files/developmenttools/ruby/lib/ruby/1.8/webrick/server.rb:79:in
`start''
/gems/rails-0.11.1/lib/webrick_server.rb:21:in `dispatch''
/gems/instiki-0.10.1/./script/server:92
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
/gems/instiki-0.10.1/./instiki:6
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in
`load''
c:/Program Files/DevelopmentTools/ruby/bin/instiki:18
Redirected to
http://localhost:2500/wiki/edit?action_suffix=HomePage%3Fmsg%3Dundefined+method+%60length%27+for+nil%3ANilClass
Completed in 0.180000 (5 reqs/sec)
127.0.0.1 - - [29/Jul/2005:12:03:46 W. Europe Daylight Time] "GET
/wiki/show/HomePage HTTP/1.1" 302 177
- -> /wiki/show/HomePage
Processing WikiController#edit (for 127.0.0.1 at Fri Jul 29 12:03:46 W. Europe
Daylight Time 2005)
Parameters: {"action"=>"edit",
"controller"=>"wiki",
"action_suffix"=>"HomePage?msg=undefined method
`length'' for nil:NilClass", "web"=>"wiki"}
Redirected to http://localhost:2500/wiki
Completed in 0.000100 (10000 reqs/sec)
127.0.0.1 - - [29/Jul/2005:12:03:46 W. Europe Daylight Time] "GET
/wiki/edit?action_suffix=HomePage%3Fmsg%3Dundefined+method+%60length%27+for+nil%3ANilClass
HTTP/1.1" 302 92
- ->
/wiki/edit?action_suffix=HomePage%3Fmsg%3Dundefined+method+%60length%27+for+nil%3ANilClass
Processing WikiController#index (for 127.0.0.1 at Fri Jul 29 12:03:47 W. Europe
Daylight Time 2005)
Parameters: {"action"=>"index",
"controller"=>"wiki",
"web"=>"wiki"}
Redirected to http://localhost:2500/wiki/show/HomePage
Completed in 0.010000 (100 reqs/sec)
127.0.0.1 - - [29/Jul/2005:12:03:47 W. Europe Daylight Time] "GET /wiki
HTTP/1.1" 302 106
- -> /wiki
Processing WikiController#show (for 127.0.0.1 at Fri Jul 29 12:03:47 W. Europe
Daylight Time 2005)
Parameters: {"action"=>"show",
"id"=>"HomePage",
"controller"=>"wiki",
"web"=>"wiki"}
Rendering wiki/page within layouts/default
undefined method `length'' for nil:NilClass (ActionView::TemplateError)
On line #81 of /wiki/page.rhtml
...
------
Any help appreciated.
Regards,
Claudius
--
Claudius Link, Software Engineer
Z?hlke Engineering GmbH - D?sseldorfer Stra?e 40a - 65760 Eschborn
Tel: +49 (0) 6196 777 54 0 / Fax: +49 (0) 6196 777 54 54