Project

General

Profile

Feature #305

Plugin crashes on RM 1.0.1 (error 500)

Added by Paul L about 14 years ago. Updated almost 14 years ago.

Status:
Rejected
Priority:
High
Category:
General
Target version:
Start date:
2010-08-26
Due date:
2010-12-10
% Done:

100%

Estimated time:
Milestones:

Description

Clicking Roadmap produces the following error:


ActionView::TemplateError (undefined method `rest_hours' for #<Issue:0x2d6fe730>) on line #21 of vendor/plugins/advanced_roadmap/app/views/projects/roadmap.rhtml:
18:     @versions.each do |version|
19:       estimated_hours += version.estimated_hours
20:       spent_hours += version.spent_hours
21:       rest_hours += version.rest_hours
22:       completed_pourcent += version.spent_hours
23:       closed_pourcent += version.closed_spent_hours
24:     end

    vendor/plugins/advanced_roadmap/app/views/projects/roadmap.rhtml:21:in `_run_rhtml_vendor47plugins47advanced_roadmap47app47views47projects47roadmap46rhtml'
    vendor/plugins/advanced_roadmap/app/views/projects/roadmap.rhtml:18:in `each'
    vendor/plugins/advanced_roadmap/app/views/projects/roadmap.rhtml:18:in `_run_rhtml_vendor47plugins47advanced_roadmap47app47views47projects47roadmap46rhtml'
    passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'

Rendering /usr/local/www/redmine/public/500.html (500 Internal Server Error)

Clicking an issue generates the same error.

Also available in: Atom PDF