Project

General

Profile

Actions

Defect #18945

closed

new user page showing 500 error

Added by sushil kumar almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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'


Related issues

Related to Redmine - Feature #18947: Ruby 2.2 supportClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #18936: ActionView::Template::Error (undefined method `name' for nil:NilClass) rendering issue pages after upgrade to 2.6.1 stableClosed

Actions
Actions #1

Updated by Vincent Gerris almost 10 years ago

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.

Actions #2

Updated by Jean-Philippe Lang almost 10 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Ruby 2.2 will be supported in Redmine 3.0

Actions #3

Updated by Jean-Philippe Lang almost 10 years ago

Actions #4

Updated by Toshi MARUYAMA over 9 years ago

  • Related to Defect #18936: ActionView::Template::Error (undefined method `name' for nil:NilClass) rendering issue pages after upgrade to 2.6.1 stable added
Actions

Also available in: Atom PDF