I installed a few plugins yesterday for Redmine, and today I've just noticed that after editing an issue I got an 500 server error. The verbose ruby error message was this:
Completed 200 OK in 189.4ms (Views: 90.7ms | ActiveRecord: 4.9ms)
Started PUT "/issues/4935" for IP.IP.IP.IP at 2014-07-24 10:17:49 +0200
Processing by IssuesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"mytoken", "issue"=>{"is_private"=>"0", "project_id"=>"5", "tracker_id"=>"2", "subject"=>"asdfasf teszt", "description"=>"", "status_id"=>"3", "priority_id"=>"4", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2014-07-24", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"100", "notes"=>"y", "private_notes"=>"0", "lock_version"=>"0"}, "check_list_items"=>[{"subject"=>"egyeske", "is_done"=>"1"}, {"subject"=>"ketteske", "is_done"=>"1"}], "new_checklist"=>"", "time_entry"=>{"hours"=>"0.10", "activity_id"=>"11", "comments"=>"x"}, "last_journal_id"=>"", "commit"=>"Submit", "id"=>"4935"}
Current user: Pene (id=33)
Completed 500 Internal Server Error in 219.4ms
NoMethodError (undefined method collect' for nil:NilClass): lib/redmine/hook.rb:61:inblock (2 levels) in call_hook'
lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:inblock in call_hook'
lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:incall_hook'
lib/redmine/hook.rb:153:in call_hook' app/controllers/issues_controller.rb:477:inblock in save_issue_with_child_records'
app/controllers/issues_controller.rb:466:in save_issue_with_child_records' app/controllers/issues_controller.rb:188:inupdate'
After googling, I found a thread which was related with one of my installed plugin: redmine_issue_checklist. So I uninstalled that properly too, but the problem was still the same (as you can see, there aren't any check_list_items or new_checklist in the array).
Completed 200 OK in 142.2ms (Views: 48.2ms | ActiveRecord: 6.0ms)
Started PUT "/issues/4935" for IP.IP.IP.IP at 2014-07-24 10:52:33 +0200
Processing by IssuesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"mytoken", "issue"=>{"is_private"=>"0", "project_id"=>"5", "tracker_id"=>"2", "subject"=>"asdfasf teszt", "description"=>"", "status_id"=>"3", "priority_id"=>"4", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2014-07-24", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"100", "notes"=>"sdf", "private_notes"=>"0", "lock_version"=>"0"}, "time_entry"=>{"hours"=>"0:10", "activity_id"=>"11", "comments"=>"df"}, "last_journal_id"=>"", "commit"=>"Submit", "id"=>"4935"}
Current user: Pene (id=33)
Completed 500 Internal Server Error in 210.8ms
NoMethodError (undefined method collect' for nil:NilClass): lib/redmine/hook.rb:61:inblock (2 levels) in call_hook'
lib/redmine/hook.rb:61:in each' lib/redmine/hook.rb:61:inblock in call_hook'
lib/redmine/hook.rb:58:in tap' lib/redmine/hook.rb:58:incall_hook'
lib/redmine/hook.rb:153:in call_hook' app/controllers/issues_controller.rb:477:inblock in save_issue_with_child_records'
app/controllers/issues_controller.rb:466:in save_issue_with_child_records' app/controllers/issues_controller.rb:188:inupdate'
So I started to uninstall plugins and after the first (redmine_auto_assigned_user) the problem was solved. I do not know why, but now I can edit my issues without any problem (put back the redmine_issue_checklist plugin as well).
So I think there is a problem with your plugin :)
My system:
Environment:
Redmine version 2.5.2.stable
Ruby version 1.9.3-p547 (2014-05-14) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Git 1.9.1
I installed a few plugins yesterday for Redmine, and today I've just noticed that after editing an issue I got an 500 server error. The verbose ruby error message was this:
Completed 200 OK in 189.4ms (Views: 90.7ms | ActiveRecord: 4.9ms) Started PUT "/issues/4935" for IP.IP.IP.IP at 2014-07-24 10:17:49 +0200 Processing by IssuesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mytoken", "issue"=>{"is_private"=>"0", "project_id"=>"5", "tracker_id"=>"2", "subject"=>"asdfasf teszt", "description"=>"", "status_id"=>"3", "priority_id"=>"4", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2014-07-24", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"100", "notes"=>"y", "private_notes"=>"0", "lock_version"=>"0"}, "check_list_items"=>[{"subject"=>"egyeske", "is_done"=>"1"}, {"subject"=>"ketteske", "is_done"=>"1"}], "new_checklist"=>"", "time_entry"=>{"hours"=>"0.10", "activity_id"=>"11", "comments"=>"x"}, "last_journal_id"=>"", "commit"=>"Submit", "id"=>"4935"} Current user: Pene (id=33) Completed 500 Internal Server Error in 219.4ms
NoMethodError (undefined method
collect' for nil:NilClass): lib/redmine/hook.rb:61:in
block (2 levels) in call_hook' lib/redmine/hook.rb:61:ineach' lib/redmine/hook.rb:61:in
block in call_hook' lib/redmine/hook.rb:58:intap' lib/redmine/hook.rb:58:in
call_hook' lib/redmine/hook.rb:153:incall_hook' app/controllers/issues_controller.rb:477:in
block in save_issue_with_child_records' app/controllers/issues_controller.rb:466:insave_issue_with_child_records' app/controllers/issues_controller.rb:188:in
update'After googling, I found a thread which was related with one of my installed plugin: redmine_issue_checklist. So I uninstalled that properly too, but the problem was still the same (as you can see, there aren't any check_list_items or new_checklist in the array).
Completed 200 OK in 142.2ms (Views: 48.2ms | ActiveRecord: 6.0ms) Started PUT "/issues/4935" for IP.IP.IP.IP at 2014-07-24 10:52:33 +0200 Processing by IssuesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mytoken", "issue"=>{"is_private"=>"0", "project_id"=>"5", "tracker_id"=>"2", "subject"=>"asdfasf teszt", "description"=>"", "status_id"=>"3", "priority_id"=>"4", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2014-07-24", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"100", "notes"=>"sdf", "private_notes"=>"0", "lock_version"=>"0"}, "time_entry"=>{"hours"=>"0:10", "activity_id"=>"11", "comments"=>"df"}, "last_journal_id"=>"", "commit"=>"Submit", "id"=>"4935"} Current user: Pene (id=33) Completed 500 Internal Server Error in 210.8ms
NoMethodError (undefined method
collect' for nil:NilClass): lib/redmine/hook.rb:61:in
block (2 levels) in call_hook' lib/redmine/hook.rb:61:ineach' lib/redmine/hook.rb:61:in
block in call_hook' lib/redmine/hook.rb:58:intap' lib/redmine/hook.rb:58:in
call_hook' lib/redmine/hook.rb:153:incall_hook' app/controllers/issues_controller.rb:477:in
block in save_issue_with_child_records' app/controllers/issues_controller.rb:466:insave_issue_with_child_records' app/controllers/issues_controller.rb:188:in
update'So I started to uninstall plugins and after the first (redmine_auto_assigned_user) the problem was solved. I do not know why, but now I can edit my issues without any problem (put back the redmine_issue_checklist plugin as well).
So I think there is a problem with your plugin :)
My system:
Environment: Redmine version 2.5.2.stable Ruby version 1.9.3-p547 (2014-05-14) [x86_64-linux] Rails version 3.2.19 Environment production Database adapter Mysql2 SCM: Git 1.9.1
Redmine plugins: redmine_agile 1.3.2 redmine_issue_checklist 2.0.5 redmine_mentions 0.0.1 redmine_revision_diff 0.1.1 redmine_time_tracker 0.9.13 Server version: Apache/2.4.7 (Ubuntu) Server built: Apr 3 2014 12:20:28 passenger-4.0.46