redmine 2.6.0 my account page Internal error
Added by Ken suen almost 11 years ago
Hello,
I installed a fresh redmine but when i click "My account" it return "Internal error". 
Other functions seems working fine except "My account". Can anyone help me with this problem?
==============================================================================
Environment:
  Redmine version                2.6.0.stable
  Ruby version                   2.2.0-p0 (2014-12-25) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.11
  Git                            1.7.1
  Filesystem
Redmine plugins:
  no plugin installed
==============================================================================
Log:
==============================================================================
Started GET "/my/account" for 192.168.1.1 at 2014-12-31 12:00:49 +0800
Processing by MyController#account as HTML
  Current user: admin (id=1)
  Rendered users/_mail_notifications.html.erb (7.3ms)
  Rendered my/account.html.erb within layouts/base (15.4ms)
Completed 500 Internal Server Error in 26.1ms
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___1333829533671286220_70232890439000'
  app/views/users/_mail_notifications.html.erb:10:in `_app_views_users__mail_notifications_html_erb___1333829533671286220_70232890439000'
  app/views/my/account.html.erb:38:in `block in app_views_my_account_html_erb_4422682756050431360_70232890067000'
  app/helpers/application_helper.rb:1056:in `labelled_form_for'
  app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__4422682756050431360_70232890067000'
==============================================================================
Thanks,
Ken
Replies (4)
    
    RE: redmine 2.6.0 my account page Internal error
    -
    Added by Csaba Szatmari almost 11 years ago
  
  I had the same problem, uninstalling ruby 2.2 and installing 2.0 (also installing gems again for 2.0) solved it for me.
    
    RE: redmine 2.6.0 my account page Internal error
    -
    Added by Pablo Perich almost 11 years ago
  
  Hi.
I have the same problem.
Is there any solution without downgrading ruby?
Thanks.
Pablo
    
    RE: redmine 2.6.0 my account page Internal error
    -
    Added by Csaba Szatmari almost 11 years ago
  
  You could try installing multiple versions of ruby and set redmine to use 2.0. In my case only redmine was using ruby so I didn't bother with it.
There is something called Ruby Version Manager, you could try that but I've never used it so I cant help with it.
    
    RE: redmine 2.6.0 my account page Internal error
    -
    Added by Pablo Perich almost 11 years ago
  
  OK, Thanks!
I will try with RVM.