redmine 500 internal error vendor/plugins/redmine_autohier/app/helpers/application_helper.rb:40:in `breadcrumb’. autohier

При нажатии в задаче трекера redmine на “Затраченное время:” выдало ошибку 500 internal error.
в логах redmine log/production.log:

Processing TimelogController#index (for 111.111.111.111 at 2011-10-22 11:22:24) [GET]
Parameters: {“issue_id”=>”222”, “project_id”=>”project”, “action”=>”index”, “controller”=>”timelog”}
Rendering template within layouts/base
Rendering timelog/index
ActionView::TemplateError (undefined method `short_title’ for nil:NilClass) on line #5 of app/views/timelog/index.html.erb:
2: <%= link_to_if_authorized l(:button_log_time), {:controller => ‘timelog’, :action => ‘new’, :project_id => @project, :issue_id => @issue}, :class => ‘icon icon-time-add’ %>
3:
4:
5: <%= render_timelog_breadcrumb %>
6:
7:
8:
vendor/plugins/redmine_autohier/app/helpers/application_helper.rb:40:in `breadcrumb’

app/helpers/timelog_helper.rb:32:in `render_timelog_breadcrumb’
app/views/timelog/index.html.erb:5
app/controllers/timelog_controller.rb:67:in `index’
app/controllers/timelog_controller.rb:54:in `index’
passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request’
passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request’
passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop’
passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler’
passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send’
passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application’
passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork’
passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in `start’
passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start’
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application’
passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add’
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application’
passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize’
passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize’
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application’
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application’
passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop’
passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously’
passenger (3.0.7) helper-scripts/passenger-spawn-server:99
Rendering redmine/public/500.html (500 Internal Server Error)

обратил внимание на строчку:

vendor/plugins/redmine_autohier/app/helpers/application_helper.rb:40:in `breadcrumb’

Решение: убрать модуль autohier. Просто удалить или перенести куда-нибудь папку vendor/plugins/redmine_autohier/, делаем перезапуск веб-сервера и ошибка пропала.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>