ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Error When Loading a Wiki Page - ActionView::TemplateError (undefined method `version' for nil:NilClass) on line #3 of app/views/wiki/show.rhtml:

Added by Dan Cameron at 2011-09-16 06:47 pm

I recently migrated from Redmine and I'm finding an error on all my wiki pages.

I searched around and couldn't find any similar threads or issues.


Processing WikiController#show (for 10.0.1.31 at 2011-09-16 11:31:58) [GET]
  Parameters: {"controller"=>"wiki", "action"=>"show", "project_id"=>"group-buyer"}
Rendering template within layouts/base
Rendering wiki/show

ActionView::TemplateError (undefined method `version' for nil:NilClass) on line #3 of app/views/wiki/show.rhtml:
1: <div class="contextual">
2: <% if @editable %>
3: <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %>
4: <%= watcher_link(@page, User.current) %>
5: <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
6: <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>

    app/models/wiki_content.rb:62:in `version'
    app/views/wiki/show.rhtml:3:in `_run_rhtml_app47views47wiki47show46rhtml'
    <internal:prelude>:10:in `synchronize'
    passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
    passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
    passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
    passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
    passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application'
    passenger (3.0.9) lib/phusion_passenger/utils.rb:479:in `safe_fork'
    passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
    passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:in `start'
    passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
    passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application'
    passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
    passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application'
    passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
    <internal:prelude>:10:in `synchronize'
    passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
    passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
    passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    passenger (3.0.9) helper-scripts/passenger-spawn-server:99:in `<main>'

Rendering /Library/WebServer/vhosts/sproutventure.com/subdomains/huddle/httpsdocs/chiliproject/public/500.html (500 Internal Server Error)


Replies (1)

RE: Error When Loading a Wiki Page - ActionView::TemplateError (undefined method `version' for nil:NilClass) on line #3 of app/views/wiki/show.rhtml: - Added by Felix Schäfer at 2011-09-17 01:08 pm

That looks like a migration error, either the db not migrated, some files not upgraded or a plugin that's not compatible with ChiliProject 2.x.

(1-1/1)