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

时间:2015-02-05 09:55:23

标签: ruby redmine custom-fields redmine-plugins

我遇到错误,当我尝试访问管理标签中的自定义字段页面时(管理 - >自定义字段 - > 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 Agile插件(Light版) Redmine的Scrum和Agile项目管理插件 http://redminecrm.com RedmineCRM 1.3.5配置

Redmine Checklists插件(Light版) 这是Redmine的问题清单插件 http://redminecrm.com RedmineCRM 3.0.2配置

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

Redmine Tweaks Wiki和内容扩展 http://github.com/alexandermeindl/redmine_tweaks AlphaNodes GmbH 0.4.9配置

Redmine Wiki Extensions插件 这是Redmine的Wiki Extensions插件 http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en Haruyuki Iida 0.6.4

Redmine Work Time插件 每个用户查看和更新​​TimeEntry的插件 http://www.r-labs.org/projects/worktime

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

如何解决此问题?

1 个答案:

答案 0 :(得分:2)

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

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