# Bug OP-2460 - Internal error /admin/enumerations on OPv5

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-2460

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Immediate |
| Module |  |
| Target versions | 5.0.1 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Markus Kahl |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

In fresh installed OpenProject 5, when navigating to /admin/enumerations, returns a Internal error with log:

I, [2015-11-19T19:23:34.368775 <mention class="mention" data-id="6804" data-type="work_package" data-text="#6804">#6804</mention>] INFO — : Started GET “/admin/enumerations” for 127.0.0.1 at 2015-11-19 19:23:34 +0200  
I, [2015-11-19T19:23:34.370619 <mention class="mention" data-id="6804" data-type="work_package" data-text="#6804">#6804</mention>] INFO — : Processing by EnumerationsController#index as HTML  
I, [2015-11-19T19:23:34.439995 <mention class="mention" data-id="6804" data-type="work_package" data-text="#6804">#6804</mention>] INFO — : Rendered enumerations/index.html.erb within layouts/admin (58.1ms)  
I, [2015-11-19T19:23:34.440431 <mention class="mention" data-id="6804" data-type="work_package" data-text="#6804">#6804</mention>] INFO — : Completed 500 Internal Server Error in 70ms (ActiveRecord: 2.0ms)  
F, [2015-11-19T19:23:34.442523 <mention class="mention" data-id="6804" data-type="work_package" data-text="#6804">#6804</mention>] FATAL — :  
ActionView::Template::Error (uninitialized constant DocumentCategory::OptionName):  
29: \<% html\_title l(:label\_administration), l(:label\_enumerations) %\>  
30: \<%= toolbar title: l(:label\_enumerations) %\>  
31: \<% Enumeration.descendants.each do |klass| %\>  
32:

<h3>

\<%= l(klass::OptionName) %\>

</h3>

33: \<% enumerations = klass.shared %\>  
34: \<% if enumerations.any? %\>  
35:

<div class="generic-table--container">

app/views/enumerations/index.html.erb:32:in \`block in *app\_views\_enumerations\_index\_html\_erb*\_\_3385429380676945694\_70136754780200’  
app/views/enumerations/index.html.erb:31:in \`each’  
app/views/enumerations/index.html.erb:31:in \`\_app\_views\_enumerations\_index\_html\_erb\*\*\_3385429380676945694\_70136754780200’  
app/middleware/params\_parser\_with\_exclusion.rb:40:in \`call’
