ashton / redmine_closed_issue

A plugin that records the date when the issue is closed and shows it on the issue detail view
15 stars 15 forks source link

Install problem #1

Closed henry1987620 closed 13 years ago

henry1987620 commented 13 years ago

Redmine version 1.1.2 Apache 2.2.3 and passenger with a sub-url , like this : http://192.168.28.218/redmine/projects/bbs/issues?set_filter=1&tracker_id=1

ruby 1.8.7 When I click issus button(I use Chinese translation zh.yml)

the redmine log presents:

Processing IssuesController#index (for 192.168.133.240 at 2011-04-11 14:40:38) [GET] Parameters: {"project_id"=>"bbs", "set_filter"=>"1", "action"=>"index", "tracker_id"=>"1", "controller"=>"issues"} Rendering template within layouts/base Rendering issues/index.rhtml

ActionView::TemplateError (undefined method `sort' for nil:NilClass) on line #75 of app/views/queries/_filters.rhtml: 72: 73: 74:

75: <% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> 76: <% field = filter[0] 77: options = filter[1] %> 78: <tr <%= 'style="display:none;"' unless query.hasfilter?(field) %> id="tr<%= field %>" class="filter">

app/views/queries/_filters.rhtml:75:in `_run_rhtml_app47views47queries47_filters46rhtml_locals_filters_object_query'
app/views/issues/index.rhtml:17:in `_run_rhtml_app47views47issues47index46rhtml'
app/views/issues/index.rhtml:11:in `_run_rhtml_app47views47issues47index46rhtml'
app/controllers/issues_controller.rb:91:in `index'
app/controllers/issues_controller.rb:90:in `index'
passenger (3.0.5) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.5) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.5) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.5) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.5) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.5) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.5) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.5) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.5) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.5) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.5) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.5) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.5) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.5) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.5) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.5) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.5) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.5) helper-scripts/passenger-spawn-server:99

Rendering /home/redmine/public/500.html (500 Internal Server Error)

ghost commented 13 years ago

I seem to have the same error. I am also trying to install this on Redmine v 1.1.2

Rendering template within layouts/base Rendering issues/index.rhtml

ActionView::TemplateError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.sort) on line #75 of app/views/queries/_filters.rhtml: 72:

73:
74: 75: <% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> 76: <% field = filter[0] 77: options = filter[1] %> 78: <tr <%= 'style="display:none;"' unless query.hasfilter?(field) %> id="tr<%= field %>" class="filter">

ghost commented 13 years ago

I have just tried installing this plugin again on a fresh version of Redmine 1.1.2 and get the following error when clicking on the 'issues' tab for a specific project. Any ideas?

Rendering template within layouts/base Rendering activities/index Completed in 152ms (View: 87, DB: 11) | 200 OK [http://localhost/projects/bart-lighthouse/activity]

Processing IssuesController#index (for 127.0.0.1 at 2011-04-18 09:43:06) [GET] Parameters: {"project_id"=>"bart-lighthouse", "action"=>"index", "controller"=>"issues"} Rendering template within layouts/base Rendering issues/index.rhtml

ActionView::TemplateError (undefined method `[]' for :date:Symbol) on line #75 of app/views/queries/_filters.rhtml: 72:

73:
74: 75: <% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> 76: <% field = filter[0] 77: options = filter[1] %> 78: <tr <%= 'style="display:none;"' unless query.hasfilter?(field) %> id="tr<%= field %>" class="filter">

ghost commented 13 years ago

Can the author respond on this outstanding issue please. I would love to get this plugin working, but I am at a loss how to resolve this problem.

ghost commented 13 years ago

I think you can mark this issue as closed now. I'm happy to confirm that it installed and works fine on Redmine v1.1.3.

Thanks!