[Instiki] undefined method ''web''?

Watts Martin
Sun, 09 Jul 2006 01:17:39 -0000

I''ve been running a wiki on (someone else''s) Mac OS X machine
for a
while, first on Instiki 0.10.2 then 0.11, without much issue. However,
today someone reported that when they tried to create a new page on the
wiki, it gave them this error when they tried to save:

undefined method ''web'' for nil:NilClass

This is a wiki which has been working before and which I''m pretty sure
created pages successfully on the 0.11 release, too. To add to the
confusion, when I copied it all to my MacBook, it runs there with no
issue, letting me create pages without errors.

I''ve tried checking out the source from Subversion on my MacBook,
copying over the old database to the new and one and reapplying my
stylesheet tweaks. It works... but again, only on the MacBook. On the
friend''s box (a PPC-based Mac Mini), it gets the same error.

Does anyone have any ideas? Could something have changed on my friend''s
server that would cause this problem? We''re both using DarwinPorts for
Ruby, as far as I know, and so both have the same version. I don''t
honestly know enough about Rails to debug this; from the production.log
file it looks like it''s happening in the "save" method of the
wiki_controller file, but this is really mysterious to me.

P.S.: To add a little insult to injury, it looks like the "-d" option
no
longer works on Instiki when checked out from SVN.

--
Watts Martin <watts at ranea.org>