Creating a New Issue is failing

Added by Chris MacDonald 10 days ago

I have an instance running with all the Config I believe is required as well as users added and when I try to create a new issue in a project if gives an error 500.

Environment:
Redmine version 3.2.1.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.9.3
Mercurial 3.7.3
Cvs 1.12.13
Git 2.7.4
Filesystem
Redmine plugins:
a_common_libs 2.2.4
clipboard_image_paste 1.10
csv_import_issues 0.0.2
easy_baseline 1.2
easy_gantt 1.5
easy_gantt_pro 1.5
redmine_default_assign 0.6
redmine_issue_field_visibility 1.0.1
redmine_lightbox2 0.2.7
usability 2.1.5

Here is the log from the attempt:

_Started GET "/projects/x2018/issues/new" for xxx.xxx.xxx.xxx at 2018-06-13 17:40:15 +0000
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"x2018"}
Current user: cmacdonald (id=164)
Rendered plugins/easy_gantt_pro/app/views/hooks/easy_gantt_pro/_view_issues_form_details_top.html.erb (0.1ms)
Rendered issues/_form_custom_fields.html.erb (4.9ms)
Rendered issues/_attributes.html.erb (12.7ms)
Rendered issues/_form.html.erb (23.4ms)
Rendered attachments/_form.html.erb (1.7ms)
Rendered issues/new.html.erb within layouts/base (32.5ms)
Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_html_head.html.erb (1.3ms)
Rendered plugins/usability/app/views/hooks/usability/_html_head.html.erb (1.5ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.4ms)
Rendered plugins/usability/app/views/hooks/usability/_body_bottom.html.erb (0.1ms)
Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (2.4ms)
Completed 200 OK in 76ms (Views: 48.5ms | ActiveRecord: 10.6ms)
Started POST "/projects/x2018/issues/new.js" for xxx.xxx.xxx.xxx at 2018-06-13 17:40:22 +0000
Processing by IssuesController#new as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"F6oedn2wExvBp78PW38T3Fxe8CkqjOX8rwtJUMQlJVJO9O7bFWKP8y4pNxWLcIvDvC0OccE5yJZOzBEceqtzGQ==", "issue"=>{"skip_estimated_hours_validation"=>"1", "is_private"=>"0", "tracker_id"=>"21", "subject"=>"Area 51", "description"=>"", "status_id"=>"37", "priority_id"=>"2", "assigned_to_id"=>"164", "parent_issue_id"=>"", "start_date"=>"2018-06-13", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"13"=>[""]}}, "form_update_triggered_by"=>"issue_tracker_id", "project_id"=>"x2018"}
Current user: cmacdonald (id=164)
Rendered plugins/easy_gantt_pro/app/views/hooks/easy_gantt_pro/_view_issues_form_details_top.html.erb (0.1ms)
Rendered issues/_form_custom_fields.html.erb (0.9ms)
Rendered issues/_attributes.html.erb (9.2ms)
Rendered issues/_form.html.erb (15.7ms)
Rendered issues/new.js.erb (16.5ms)
Completed 200 OK in 75ms (Views: 16.1ms | ActiveRecord: 9.6ms)
Started POST "/projects/x2018/issues" for xxx.xxx.xxx.xxx at 2018-06-13 17:40:30 +0000
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"F6oedn2wExvBp78PW38T3Fxe8CkqjOX8rwtJUMQlJVJO9O7bFWKP8y4pNxWLcIvDvC0OccE5yJZOzBEceqtzGQ==", "issue"=>{"skip_estimated_hours_validation"=>"1", "is_private"=>"0", "tracker_id"=>"21", "subject"=>"Area 51", "description"=>"testing", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"164", "parent_issue_id"=>"", "start_date"=>"2018-06-13", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"13"=>[""]}}, "form_update_triggered_by"=>"", "was_default_status"=>"1", "commit"=>"Create", "project_id"=>"x2018"}
Current user: cmacdonald (id=164)
Rendered mailer/_issue.text.erb (2.2ms)
Rendered mailer/issue_add.text.erb (3.0ms)
Rendered plugins/usability/app/views/us_mailer_patched_views/mailer/_issue.html.erb (67.1ms)
Rendered plugins/usability/app/views/us_mailer_patched_views/mailer/issue_add.html.erb within layouts/rmp_mailer (68.5ms)
Completed 500 Internal Server Error in 143ms (ActiveRecord: 23.2ms)

ActionView::Template::Error (undefined method `us_email_issue_attributes' for #<#<Class:0x00000005112970>:0x007f3daf3260b0>):
1: <div style="padding: 0 20px 20px 20px; background-color: #fff">
2: <%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url, style: 'color:#0298CD') >
3:
4: <
items = us_email_issue_attributes(issue, users.first) >
5:
6: <table style="width: 100
;margin-top:20px">
7: <% items.each do |it| %>
plugins/usability/app/views/us_mailer_patched_views/mailer/_issue.html.erb:4:in `_plugins_usability_app_views_us_mailer_patched_views_mailer__issue_html_erb___457017094923784326_69951454070440'
plugins/usability/app/views/us_mailer_patched_views/mailer/issue_add.html.erb:3:in `_plugins_usability_app_views_us_mailer_patched_views_mailer_issue_add_html_erb___3643676271934888651_69951454520100'
app/models/mailer.rb:439:in `block in mail'
app/models/mailer.rb:437:in `mail'
app/models/mailer.rb:54:in `issue_add'
app/models/mailer.rb:450:in `initialize'
config/initializers/10-patches.rb:169:in `deliver'
app/models/mailer.rb:64:in `block in deliver_issue_add'
app/models/issue.rb:951:in `each_notification'
plugins/redmine_issue_field_visibility/lib/redmine_issue_field_visibility/issue_patch.rb:47:in `block in each_notification'
plugins/redmine_issue_field_visibility/lib/redmine_issue_field_visibility/issue_patch.rb:46:in `each'
plugins/redmine_issue_field_visibility/lib/redmine_issue_field_visibility/issue_patch.rb:46:in `each_notification'
app/models/mailer.rb:63:in `deliver_issue_add'
app/models/issue.rb:1677:in `send_notification'
app/models/issue.rb:182:in `create_or_update'
app/controllers/issues_controller.rb:141:in `create'
plugins/usability/lib/usability/issues_controller_patch.rb:40:in `create_with_usability'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'_

I apologize in advance if this is a simple fix that I should have found an answer for elsewhere.

Thank You