Project

General

Profile

internal error 500 on some issues pages

Added by Eudald Lerga almost 11 years ago

Hi,

I just upgraded redmine to 2.3.2 and in some projects the issues page now get an internal error 500.

Is there anyone that can help me troubleshoot this ? thank you!

Environment:
Redmine version 2.3.2.stable
Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

Here is the production log from one crash:

Processing by IssuesController#index as HTML
Parameters: {"set_filter"=>"1", "project_id"=>"ctdata"}
Current user: admin (id=1)
Rendered queries/_filters.html.erb (12.2ms)
Rendered queries/_columns.html.erb (2.1ms)
Rendered issues/_list.html.erb (13.4ms)
Rendered issues/index.html.erb within layouts/base (31.5ms)
Completed 500 Internal Server Error in 121ms

ActionView::Template::Error (undefined method `-' for nil:NilClass):
28: </td>
29: </tr>
30: <% previous_group = group >
31: <
end >
32: <tr id="issue-<
= issue.id >" class="hascontextmenu <= cycle('odd', 'even') > <= issue.css_classes > <= level > 0 ? "idnt idnt-#{level}" : nil >">
33: <td class="checkbox hide-when-print"><
= check_box_tag("ids[]", issue.id, false, :id => nil) ></td>
34: <
= raw query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:247:in `leaf?'
app/models/issue.rb:1049:in `css_classes'
app/views/issues/_list.html.erb:31:in `block (2 levels) in app_views_issues_list_html_erb___312602719039203380_60459920'
app/helpers/issues_helper.rb:29:in `block in issue_list'
app/helpers/issues_helper.rb:25:in `each'
app/helpers/issues_helper.rb:25:in `issue_list'
app/views/issues/_list.html.erb:18:in `block in app_views_issues_list_html_erb___312602719039203380_60459920'
app/views/issues/_list.html.erb:1:in `_app_views_issues__list_html_erb___312602719039203380_60459920'
app/views/issues/index.html.erb:62:in `_app_views_issues_index_html_erb__3846496901217226253_59045540'
app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
app/controllers/issues_controller.rb:82:in `index'

Than you!