Defect #18945
closed
new user page showing 500 error
Added by sushil kumar almost 10 years ago.
Updated almost 10 years ago.
Description
500 internal server error for both "new user registration" tab and "my account" tab
ActionView::Template::Error (undefined method `name' for nil:NilClass):
8: ) >
9: </p>
10: <= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do >
11: <= render_project_nested_lists(@user.projects) do |project|
12: content_tag('label',
13: check_box_tag(
14: 'user[notified_project_ids][]',
app/helpers/application_helper.rb:268:in `render_project_nested_lists'
app/views/users/_mail_notifications.html.erb:11:in `block in app_views_users_mail_notifications_html_erb__192379183_49062580'
app/views/users/_mail_notifications.html.erb:10:in `_app_views_users__mail_notifications_html_erb__192379183_49062580'
app/views/my/account.html.erb:38:in `block in app_views_my_account_html_erb_35267432_49329300'
app/helpers/application_helper.rb:1056:in `labelled_form_for'
app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__35267432_49329300'
sushil kumar wrote:
500 internal server error for both "new user registration" tab and "my account" tab
ActionView::Template::Error (undefined method `name' for nil:NilClass):
8: ) >
9: </p>
10: <= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do >
11: <= render_project_nested_lists(@user.projects) do |project|
12: content_tag('label',
13: check_box_tag(
14: 'user[notified_project_ids][]',
app/helpers/application_helper.rb:268:in `render_project_nested_lists'
app/views/users/_mail_notifications.html.erb:11:in `block in app_views_users_mail_notifications_html_erb__192379183_49062580'
app/views/users/_mail_notifications.html.erb:10:in `_app_views_users__mail_notifications_html_erb__192379183_49062580'
app/views/my/account.html.erb:38:in `block in app_views_my_account_html_erb_35267432_49329300'
app/helpers/application_helper.rb:1056:in `labelled_form_for'
app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__35267432_49329300'
I have the same issue. It is caused by Ruby 2.2.0. When reverting to 2.1.5 it works.
Hopefully this will be fixed.
- Status changed from New to Closed
- Resolution set to Invalid
Ruby 2.2 will be supported in Redmine 3.0
- Related to Defect #18936: ActionView::Template::Error (undefined method `name' for nil:NilClass) rendering issue pages after upgrade to 2.6.1 stable added
Also available in: Atom
PDF