ActionView::TemplateError for Single User on Single Issue.

Added by Ben Woods over 11 years ago

We have run into a bit of an issue with our Redmine install. The error mentioned in the subject line is being raised every time a single user tries to access a single issue. The kicker is, that he is only one user that is having the problem, and he is only having it with one issue. The user can access everything else in the system without a problem, and no other users have reported having issues. I have even tried recreating the the error with a different user with exactly the same permissions, but it doesn't happen. Error log contents is below.

Processing IssuesController#show (for 74.130.113.230 at 2010-08-30 15:48:40) [GET]
Parameters: {"action"=>"show", "id"=>"829", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (undefined method `notes' for nil:NilClass) on line #38 of app/views/issues/_edit.rhtml:
35: <fieldset><legend><%= l(:field_notes) ></legend>
36: <
= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' >
37: <
= wikitoolbar_for 'notes' >
38: <
= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) >
39:
40: <p><
=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
41: </fieldset>

lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/issues/_edit.rhtml:38:in `_run_rhtml_app47views47issues47_edit46rhtml_locals_edit_object'
app/helpers/application_helper.rb:614:in `labelled_tabular_form_for'
app/views/issues/_edit.rhtml:1:in `_run_rhtml_app47views47issues47_edit46rhtml_locals_edit_object'
app/views/issues/show.rhtml:97:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:124
app/controllers/issues_controller.rb:123:in `show'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/intweb/domains/redmine.inteli-com.com/redmine/public/500.html (500 Internal Server Error)

Replies (1)

RE: ActionView::TemplateError for Single User on Single Issue. - Added by Ben Woods over 11 years ago

Sorry, hit the wrong button for the code, here it is, more readable this time:

@Processing IssuesController#show (for 74.130.113.230 at 2010-08-30 15:48:40) [GET]
Parameters: {"action"=>"show", "id"=>"829", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (undefined method `notes' for nil:NilClass) on line #38 of app/views/issues/_edit.rhtml:
35: <fieldset><legend><%= l(:field_notes) ></legend>
36: <
= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' >
37: <
= wikitoolbar_for 'notes' >
38: <
= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) >
39:
40: <p><
=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
41: </fieldset>

lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/issues/_edit.rhtml:38:in `_run_rhtml_app47views47issues47_edit46rhtml_locals_edit_object'
app/helpers/application_helper.rb:614:in `labelled_tabular_form_for'
app/views/issues/_edit.rhtml:1:in `_run_rhtml_app47views47issues47_edit46rhtml_locals_edit_object'
app/views/issues/show.rhtml:97:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:124
app/controllers/issues_controller.rb:123:in `show'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/intweb/domains/redmine.inteli-com.com/redmine/public/500.html (500 Internal Server Error)@

(1-1/1)