Hi!
I have some problems with instiki, which we use as a internal projekt wiki
here in our company. The problem is the following:
Instiki refuses to render a page with following error message:
Please correct the error that caused this error in rendering:
private method `gsub' called for nil:NilClass
Stack trace is the following:
Rendering: GeneralConsiderations
F:/wiki/instiki-0.9.1/app/models/wiki_words.rb:22:in `separate'
F:/wiki/instiki-0.9.1/app/models/web.rb:45:in `make_link'
F:/wiki/instiki-0.9.1/app/models/page.rb:70:in `link'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:221:in
`template_re
sult'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:221:in
`collect'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:221:in
`template_re
sult'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:162:in
`template_re
sult'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:65:in `render'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:77:in
`render_actio
n'
F:/wiki/instiki-0.9.1/app/controllers/wiki.rb:171:in `show'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in `send'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:126:in
`perform_act
ion'
F:/wiki/instiki-0.9.1/libraries/action_controller_servlet.rb:32:in `do_GET'
c:/programme/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`__send__'
c:/programme/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in
`service'
c:/programme/ruby/lib/ruby/1.8/webrick/httpserver.rb:92:in `service'
c:/programme/ruby/lib/ruby/1.8/webrick/httpserver.rb:54:in `run'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:150:in `start_thread'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/programme/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
F:/wiki/instiki-0.9.1/libraries/web_controller_server.rb:79:in
`start_server'
F:/wiki/instiki-0.9.1/libraries/web_controller_server.rb:22:in `initialize'
F:/wiki/instiki-0.9.1/instiki.rb:58:in `new'
F:/wiki/instiki-0.9.1/instiki.rb:58192.168.100.40 - - [22/Nov/2004:10:54:03
West
europõische Normalzeit] "GET /companywiki/show/GeneralConsiderations
HTTP/1.1" 3
01 220
http://pferd/companywiki/show/conception+of+content ->
/companywiki/show/General
Considerations
[2004-11-22 10:54:04] INFO Performing edit
[2004-11-22 10:54:04] INFO Parameters: {"msg"=>"private method `gsub'
called
for nil:NilClass"}
[2004-11-22 10:54:04] INFO Cookies: author => Henrik
[2004-11-22 10:54:04] INFO Rendering: wiki/edit
192.168.100.40 - - [22/Nov/2004:10:54:04 Westeuropõische Normalzeit] "GET
/compa
nywiki/edit/GeneralConsiderations?msg=private+method+%60gsub%27+called+for+nil%3
ANilClass HTTP/1.1" 200 3549
http://pferd/companywiki/show/conception+of+content ->
/companywiki/edit/General
Considerations?msg=private+method+%60gsub%27+called+for+nil%3ANilClass
[2004-11-22 10:54:04] INFO Performing static_style_sheet
[2004-11-22 10:54:04] INFO Parameters: {}
[2004-11-22 10:54:04] INFO Cookies: author => Henrik
[2004-11-22 10:54:04] INFO Rendering: static_style_sheet
192.168.100.40 - - [22/Nov/2004:10:54:04 Westeuropõische Normalzeit] "GET
/compa
nywiki/static_style_sheet/ HTTP/1.1" 200
2972
http://pferd/companywiki/edit/GeneralConsiderations?msg=private+method+`gsub%2
7+called+for+nil%3ANilClass -> /companywiki/static_style_sheet/
I _guess_ the root cause is that one of my coworkers tried to insert a page,
which contained some unusual wiki words (actually I would call them wrong...
you'll see what I mean). Something like
[[Lösungen]]
(note the German O 'Umlaut' )
or
[[Installieren der Produkt Umgebung!]]
(note ! after Umgebung, and capital letter words)
In that case it would be related to the problem Roger Sperberg reported on
page ExplainedBugs in the instiki wiki.
Even editing the page so that it contains simple, non-mark up, non-wiki
words text doesn't solve the problem. Shouldn't fixing the offending pages
solve it?
What's the proposed solution? Going back to the latest storage snapshot
where the problem did not occur yet? Somehow I suspect that we'll lose data
in that case, so I am reluctant to try that.
Any clues?
Platform is WinXP, SP2, latest ruby one-click-installer, Instiki 0.9.1
regards,
Henrik
···
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!