Project

General

Profile

Internal error

Added by xtu tut over 11 years ago

Internal error this message I started to see on many section in redmine after last upgrade.

Now I have

Environment:
Redmine version 2.3.0.stable
Ruby version 1.8.7 (i686-linux)
Rails version 3.2.12
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed

and when I see error page, for example on Roadmap page, I can see next lines in log file

Completed 500 Internal Server Error in 60ms

ActionView::Template::Error (undefined method `closed_percent' for #<Version:0xb4d2e7b8>):
    16: <% end %>
    17: 
    18: <% if version.issues_count > 0 %>
    19:     <%= progress_bar([version.closed_percent, version.completed_percent], :width => '40em', :legend => ('%0.0f%' % version.completed_percent)) %>
    20:     <p class="progress-info">
    21:           <%= link_to(l(:label_x_issues, :count => version.issues_count), 
    22:               project_issues_path(version.project, :status_id => '*', :fixed_version_id => version, :set_filter => 1)) %>
  app/views/versions/_overview.html.erb:19:in `_app_views_versions__overview_html_erb__485391251__630964888'
  app/views/versions/index.html.erb:13:in `_app_views_versions_index_html_erb__311369801__630929668'
  app/views/versions/index.html.erb:11:in `each'
  app/views/versions/index.html.erb:11:in `_app_views_versions_index_html_erb__311369801__630929668'

different error pages generates different log messages, but all of them has one similar thing, is: ActionView::Template::Error (undefined method `xxx` and xxx everytime is different

how can I fix it ?