(Redmine) 如何修复自定义字段的错误?
(Redmine) how to fix an error with custom fields?
当我尝试访问管理选项卡中的自定义字段页面时出现错误(管理 -> 自定义字段 -> 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.com
RedmineCRM 1.3.5 配置
Redmine Checklists插件(精简版)
这是 Redmine 的问题清单插件
http://redminecrm.com
RedmineCRM 3.0.2 配置
Redmine 标签
Redmine 问题和 wiki 页面标记支持
https://github.com/redminecrm/redmine_tags/
Aleksey V Zapparov AKA "ixti" 2.0.1-dev 配置
Redmine 调整
Wiki 和内容扩展
http://github.com/alexandermeindl/redmine_tweaks
AlphaNodes 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
在数据库中留下了自定义字段。删除插件后,Redmine 无法再加载这些自定义字段。
解决方法:在Db中找到不正确的记录(自定义字段就是记录!),手动销毁。
当我尝试访问管理选项卡中的自定义字段页面时出现错误(管理 -> 自定义字段 -> 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.com RedmineCRM 1.3.5 配置
Redmine Checklists插件(精简版) 这是 Redmine 的问题清单插件 http://redminecrm.com RedmineCRM 3.0.2 配置
Redmine 标签 Redmine 问题和 wiki 页面标记支持 https://github.com/redminecrm/redmine_tags/ Aleksey V Zapparov AKA "ixti" 2.0.1-dev 配置
Redmine 调整 Wiki 和内容扩展 http://github.com/alexandermeindl/redmine_tweaks AlphaNodes 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
在数据库中留下了自定义字段。删除插件后,Redmine 无法再加载这些自定义字段。
解决方法:在Db中找到不正确的记录(自定义字段就是记录!),手动销毁。