merikonjatta / redmine_autohier

A Redmine plugin that provides a more convenient wiki page hierarchy
https://github.com/merikonjatta/redmine_autohier
4 stars 7 forks source link

Plugin breaks breadcrumbs and Boards stop working #1

Open n3storm opened 13 years ago

n3storm commented 13 years ago

I'm not sure why I ended up removing autohier and then boards started working.

Redmine 1.1.2.stable.5317 (MySQL) on Ubuntu 10.04

Production log:


Processing BoardsController#index (for 85.57.200.252 at 2011-05-02 09:30:30) [GET]
  Parameters: {"project_id"=>"tests-redmine", "action"=>"index", "controller"=>"boards"}
Rendering template within layouts/base
Rendering boards/show

ActionView::TemplateError (undefined method `short_title' for nil:NilClass) on line #1 of app/views/boards/show.rhtml:
1: <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
2: 
3: <div class="contextual">
4: <%= link_to_if_authorized l(:label_message_new),

    vendor/plugins/redmine_autohier/app/helpers/application_helper.rb:40:in `breadcrumb'
    app/views/boards/show.rhtml:1:in `_run_rhtml_app47views47boards47show46rhtml'
    app/controllers/boards_controller.rb:54
    app/controllers/boards_controller.rb:40:in `show'
    app/controllers/boards_controller.rb:35:in `index'
    /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/phusion_passenger/passenger-spawn-server:61

Rendering /usr/share/redmine-1.1/public/500.html (500 Internal Server Error)
´´´
n3storm commented 13 years ago

I think it breaks breadcrumbs in general, cause time_entries and any other view that used breadcrumbs broke before I removed redmine_autohier

merikonjatta commented 13 years ago

Thank you for the report, I'll look into it.

beebase commented 12 years ago

Same problem here. After removing autohier, everything worked again.

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: </div>
4: 
5: <%= render_timelog_breadcrumb %>
6: 
7: <h2><%= l(:label_spent_time) %></h2>
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'
    config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'
tgetgood commented 12 years ago

I'm guessing that what I just sent as a 1.2.1 port is actually a fix for this. This looks like the same error I was having, anyway. Never tried it on 1.1, so I assumed something had changed...