[Instiki] undefined method ''web''?

Chris Gehlker
Sun, 09 Jul 2006 03:04:46 -0000

On Jul 8, 2006, at 6:17 PM, Watts Martin wrote:

> 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.

I didn''t use DarwinPorts but I got the same error on a G4 Mac until I
found some advice to install SWIG and then to re-install the sqlite3-
ruby gem. After I did that, Instiki runs fine, including in daemon
mode. I certainly didn''t experience it working for awhile and then
breaking though. It never worked until I did SWIG - sqlite3-ruby.

--
A young idea is a beautiful and a fragile thing. Attack people, not
ideas.