Bugs: Browse | Submit New | Admin

[#5140] Opening home page causes error, can't display any pages

Date:
2006-07-20 11:48
Priority:
3
Submitted By:
Joe Szodfridt (jszod)
Assigned To:
Assaph Mehr (assaph)
Category:
Basic Interface (show, list...)
State:
Open
Summary:
Opening home page causes error, can't display any pages

Detailed description
After shutting down pimki and restarting again, accessing the home page of pimki causes a major error and no content
page can be displayed.  I'm running pimki 1.8.2 on WinXP with ruby 1.8

Error message:  undefined method `categories' for nil:NilClass

Action: show

Request: GET /joewiki/show/HomePage HTTP/1.1 Host: localhost:2500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language:
en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection:
keep-alive

Backtrace:

c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/app/controllers/wiki.rb:88:in `parse_category'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/app/controllers/wiki.rb:450:in `set_menu_pages'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/app/controllers/wiki.rb:587:in `show'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/libraries/action_controller_servlet.rb:135:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/libraries/action_controller_servlet.rb:41:in `do_GET'
c:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/libraries/web_controller_server.rb:90:in `start_server'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/libraries/web_controller_server.rb:30:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/Pimki-1.8.200/./pimki.rb:180
c:/ruby/bin/pimki.rb:18

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-07-27 23:29
Sender: Assaph Mehr

Hi Joe,

I think this may be the (occasional) corruption bug with
zlib/Madeleine. A short term workaround is to open the latest
.snapshot file in the storage directory in a non-zlib based zipper
(e.g. from 7-zip.org), extract the contents, and zip them again
in GZip format. Place the new zip as the latest .snapshot (by
squential number) into the storage directory and restart Pimki.

You'll be glad to know we're currently working on a reimplementation
of Pimki with will not be based on madeliene but on standard
ActiveRecord and SQLite3 (which is almost as easy to setup :).

Let me know if it solves the issue.

Cheers,
Assaph

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item