mbasset / project_overview

Adds a new project overview page to redmine 2+.
MIT License
13 stars 9 forks source link

500 Internal Server Error - ActionView::Template::Error (divided by 0) - v1.2.0, Redmine 2.5.3 #18

Open tzieleniewski opened 9 years ago

tzieleniewski commented 9 years ago

Hi,

I've encountered the following error when trying to access the Overview section (plugin version 1.2.0).

Started GET "/redmine/overview" for 10.27.224.207 at 2015-02-06 10:11:17 +0100
Processing by OverviewController#index as HTML
  Current user: tzieleniewski (id=6)
  Rendered plugins/project_overview/app/views/overview/_project.html.erb (6502.0ms)
  Rendered plugins/project_overview/app/views/overview/_projects.html.erb (6522.4ms)
  Rendered common/_tabs.html.erb (6526.0ms)
  Rendered plugins/project_overview/app/views/overview/index.html.erb within layouts/base (6527.0ms)
Completed 500 Internal Server Error in 6589.5ms

ActionView::Template::Error (divided by 0):
    111:            
    112:        <% end %>
    113:
    114:        <% budget_tending_towards = hours_burned_percentage/ticket_completion_percentage %>
    115:        <% velocity_class = "on_track" %>
    116:        <% velocity_title = l(:project_velocity_on_track) %>
    117:        <% if budget_tending_towards > 1.15 %>
  app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb__1683097546013717816_59528660'
  app/views/common/_tabs.html.erb:21:in `each'
  app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb__1683097546013717816_59528660'
  app/helpers/application_helper.rb:318:in `render_tabs'

System information

Environment:
  Redmine version                2.5.3.stable.13959
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.17
  Git                            1.7.10.4
  Filesystem      

All the best Tomasz Krzysztof