Custom Field Internal Error
Added by Joshua Parker over 10 years ago
I am trying to create a custom field called "Affected Releases". Every time I create this custom field, and then visit the project's settings, I get an internal error. Below is the log message from the production.log file. Any help figuring out my issue is greatly appreciated.
Completed 200 OK in 182ms (Views: 164.5ms | ActiveRecord: 4.5ms)
Started GET "/custom_fields" for ****** at 2015-08-18 00:45:39 -0400
Processing by CustomFieldsController#index as HTML
Current user: ******
Rendered custom_fields/_index.html.erb (27.7ms)
Rendered custom_fields/_index.html.erb (6.1ms)
Rendered common/_tabs.html.erb (41.1ms)
Rendered custom_fields/index.html.erb within layouts/admin (44.8ms)
Rendered admin/_menu.html.erb (6.1ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_header.erb (16.8ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_content.erb (0.3ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_footer.erb (0.2ms)
Rendered layouts/base.html.erb (53.4ms)
Completed 200 OK in 125ms (Views: 109.1ms | ActiveRecord: 4.7ms)
Started GET "/custom_fields/3/edit" for ******** at 2015-08-18 00:45:40 -0400
Processing by CustomFieldsController#edit as HTML
Parameters: {"id"=>"3"}
Current user: *******
Rendered custom_fields/formats/_version.html.erb (2.9ms)
Rendered custom_fields/_form.html.erb (52.4ms)
Rendered custom_fields/edit.html.erb within layouts/admin (57.6ms)
Rendered admin/_menu.html.erb (3.2ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_header.erb (8.3ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_content.erb (0.1ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_footer.erb (0.1ms)
Rendered layouts/base.html.erb (22.8ms)
Completed 200 OK in 98ms (Views: 83.0ms | ActiveRecord: 8.6ms)
Started PUT "/custom_fields/3" for *********** at 2015-08-18 00:45:58 -0400
Processing by CustomFieldsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"****************************************************************************", "custom_field"=>{"name"=>"Affected Version", "description"=>"", "multiple"=>"0", "version_status"=>[""], "edit_tag_style"=>"", "is_required"=>"0", "is_for_all"=>"0", "is_filter"=>"1", "visible"=>"1", "role_ids"=>[""], "tracker_ids"=>["1", ""], "project_ids"=>["1", ""]}, "status"=>"1", "commit"=>"Save", "id"=>"3"}
Current user: ************
Redirected to http://trac.edutracsis.com/custom_fields?tab=IssueCustomField
Completed 302 Found in 117ms (ActiveRecord: 11.8ms)
Started GET "/custom_fields?tab=IssueCustomField" for *********** at 2015-08-18 00:45:58 -0400
Processing by CustomFieldsController#index as HTML
Parameters: {"tab"=>"IssueCustomField"}
Current user: *******
Rendered custom_fields/_index.html.erb (23.6ms)
Rendered custom_fields/_index.html.erb (13.9ms)
Rendered common/_tabs.html.erb (41.1ms)
Rendered custom_fields/index.html.erb within layouts/admin (43.6ms)
Rendered admin/_menu.html.erb (9.3ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_header.erb (34.2ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_content.erb (0.4ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_footer.erb (0.2ms)
Rendered layouts/base.html.erb (78.3ms)
Completed 200 OK in 151ms (Views: 131.9ms | ActiveRecord: 5.7ms)
Started GET "/custom_fields/3/edit" for ******* at 2015-08-18 00:46:14 -0400
Processing by CustomFieldsController#edit as HTML
Parameters: {"id"=>"3"}
Current user: *******
Rendered custom_fields/formats/_version.html.erb (3.1ms)
Rendered custom_fields/_form.html.erb (270.2ms)
Rendered custom_fields/edit.html.erb within layouts/admin (324.0ms)
Rendered admin/_menu.html.erb (14.1ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_header.erb (37.2ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_content.erb (1.0ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_footer.erb (0.4ms)
Rendered layouts/base.html.erb (246.6ms)
Completed 200 OK in 701ms (Views: 582.7ms | ActiveRecord: 20.4ms)
Started GET "/projects/edutrac-sis?jump=custom_fields" for ********* at 2015-08-18 00:46:19 -0400
Processing by ProjectsController#show as HTML
Parameters: {"jump"=>"custom_fields", "id"=>"edutrac-sis"}
Current user: *********
Rendered plugins/redmine_tweaks/app/views/projects/_members_box.html.erb (10.5ms)
Rendered plugins/redmine_tweaks/app/views/projects/_project_overview.html.erb (1.8ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_sidebar.html.erb (2.5ms)
Rendered projects/_sidebar.html.erb (16.4ms)
Rendered projects/show.html.erb within layouts/base (235.9ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_header.erb (34.0ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_content.erb (0.4ms)
Rendered plugins/redmine_tweaks/app/views/application/_global_footer.erb (0.2ms)
Completed 200 OK in 570ms (Views: 435.6ms | ActiveRecord: 35.5ms)
Started GET "/projects/edutrac-sis/settings" for ********* at 2015-08-18 00:46:21 -0400
Processing by ProjectsController#settings as HTML
Parameters: {"id"=>"edutrac-sis"}
Current user: *******
Rendered plugins/redmine_tweaks/app/views/projects/_form.html.erb (172.2ms)
Rendered projects/_edit.html.erb (179.8ms)
Rendered common/_tabs.html.erb (197.3ms)
Rendered projects/settings.html.erb within layouts/base (204.4ms)
Completed 500 Internal Server Error in 253ms (ActiveRecord: 9.2ms)
ActionView::Template::Error (undefined method `custom_field_name_tag' for #<#<Class:0x007fb175b6d680>:0x007fb19a103e90>):
67: <% if ActiveRecord::VERSION::MAJOR < 4 %>
68: <%= custom_field.name %>
69: <% else %>
70: <%= custom_field_name_tag(custom_field) %>
71: <% end %>
72: </label>
73: <% end %>
app/views/projects/_edit.html.erb:2:in `block in _app_views_projects__edit_html_erb__273445167048503745_70200384845680'
app/helpers/application_helper.rb:1026:in `labelled_form_for'
app/views/projects/_edit.html.erb:1:in `_app_views_projects__edit_html_erb__273445167048503745_70200384845680'
app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb__3059086302476002660_70200385195660'
app/views/common/_tabs.html.erb:21:in `each'
app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb__3059086302476002660_70200385195660'
app/helpers/application_helper.rb:321:in `render_tabs'
app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb__114720965539152406_70200385307080'
Addendum: Forgot to include system information
sh: darcs: command not found sh: hg: command not found sh: cvs: command not found sh: bzr: command not found Environment: Redmine version 3.0.4.stable.14445 Ruby version 2.1.2-p95 (2014-05-08) [x86_64-linux] Rails version 4.2.3 Environment production Database adapter Mysql2 SCM: Subversion 1.8.10 Git 2.1.4 Filesystem Redmine plugins: event_notifications 3.0.0 redmine_apijs 5.2.0 redmine_checklists 3.1.1 redmine_slack 0.1 redmine_tweaks 0.5.3
Replies (1)
RE: Custom Field Internal Error
-
Added by Joshua Parker about 10 years ago
Issue has been fixed by upgrading to the latest release.