(Redmine)如何修复自定义字段的错误



当我试图访问管理选项卡中的自定义字段页面时,我遇到了一个错误(管理->自定义字段->500错误):

Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.

在production.log中,我有以下错误:

Started GET "/custom_fields" for ip at 2015-02-05 09:33:42 +0000
Processing by CustomFieldsController#index as HTML
  Current user: user (id=1)
Completed 500 Internal Server Error in 8.0ms
ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'Impasse::ExecutionCustomField'. 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 CustomField.inheritance_column to use another column for that information.):
  app/controllers/custom_fields_controller.rb:29:in `block (2 levels) in index'
  app/controllers/custom_fields_controller.rb:27:in `index'

我还安装了几个插件:

Redmine敏捷插件(轻量级)redmine的Scrum和敏捷项目管理插件http://redminecrm.comRedmineCRM 1.3.5配置

Redmine Checklist插件(Light版本)这是Redmine的问题清单插件http://redminecrm.comRedmineCRM 3.0.2配置

Redmine标签Redmine问题和wiki页面标记支持https://github.com/redminecrm/redmine_tags/Aleksey V Zapparov AKA"ixti"2.0.1-dev配置

Redmine TweaksWiki和内容扩展http://github.com/alexandermeindl/redmine_tweaksAlphaNodes GmbH 0.4.9配置

Redmine Wiki扩展插件这是Redmine的Wiki扩展插件http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en饭田春树0.6.4

Redmine工作时间插件每个用户查看和更新TimeEntry的插件http://www.r-labs.org/projects/worktime

我在干净的redmine安装上检查了所有这些插件,并且工作正常,没有任何冲突。Redmine版本2.6.0

如何解决此问题?

经过讨论,我们发现插件impasse在DB中留下了自定义字段。插件被删除后,Redmine无法再加载这些自定义字段。

解决方案:在Db中找到不正确的记录(自定义字段是记录!)并手动销毁它们。

最新更新