我们最近将Redmine从2.5.2升级到2.6,但是当我们访问项目的设置页面时,我们收到错误“Redmine 500 error”。当我查看错误日志时,这就是我所看到的:
Started GET "/projects/leaders-premier/settings" for xx.xx.xxx.xxx at 2014-12-09 16:21:58 -0500
Processing by ProjectsController#settings as HTML
Parameters: {"id"=>"leaders-premier"}
Current user: ajankowski (id=3)
Rendered projects/_form.html.erb (27.8ms)
Rendered projects/_edit.html.erb (29.8ms)
Rendered projects/settings/_modules.html.erb (4.7ms)
Rendered projects/settings/_members.html.erb (77.6ms)
Rendered common/_tabs.html.erb (117.8ms)
Rendered projects/settings.html.erb within layouts/base (118.6ms)
Completed 500 Internal Server Error in 268.9ms
ActionView::Template::Error (The single-table inheritance mechanism failed to locate the subclass: 'GroupNonMember'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Principal.inheritance_column to use another column for that information.):
77: </p>
78: <%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript autocomplete_project_memberships_path(@project, :format => 'js') }')" %>
79: <div id="principals_for_new_member">
80: <%= render_principals_for_new_members(@project) %>
81: </div>
82: <p>
83: <%= l(:label_role_plural) %>:
app/helpers/members_helper.rb:25:in `render_principals_for_new_members'
app/views/projects/settings/_members.html.erb:80:in `block in _app_views_projects_settings__members_html_erb__3521341374444963390_113866560'
app/views/projects/settings/_members.html.erb:69:in `_app_views_projects_settings__members_html_erb__3521341374444963390_113866560'
app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb___1280924502012219319_110275440'
我们甚至回到了2.5.2,我们仍然得到同样的错误。任何人都知道造成这个问题的原因是什么?
答案 0 :(得分:7)
当我升级然后降级时,它必须创建两个新组。我从users表中删除了以下组:GroupNonMember和GroupAnonymous,问题就消失了。
答案 1 :(得分:0)
我遇到过类似的问题。根据之前的回答,我已将GroupAnonymous
的{{1}}列和GroupNonMember
(查看type
列)用户更改为0
(零),实际上删除它们。