tkusukawa / kusu

Automatically exported from code.google.com/p/kusu
0 stars 0 forks source link

Error 500 with Redmine R5723. #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I got the following issue, after updating to the latest SVN-Redmine-Version 
R5723 (with WorkTime R204 - by the way, the menu-link appears:-):

Processing WorkTimeController#index (for xx.xx.xx.xx at 2011-05-10 11:20:35) 
[GET]
  Parameters: {"action"=>"index", "controller"=>"work_time"}
Rendering template within layouts/base
Rendering work_time/show

ActionView::TemplateError (undefined method `customized' for 
#<TimeEntryCustomField:0xda07474>) on line #116 of 
vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:
113:       return self.default_value;
114:     end
115:   %>
116:      <td><%= custom_field_tag "new_time_entry["+issue_id.to_s+"][0]", cf 
%></td>
117:   <% end %>
118: </tr>
119: <%

    app/helpers/custom_fields_helper.rb:52:in `custom_field_tag'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:116
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:105:in `each'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:105
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:50:in `each'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:50
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:21:in `each'
    vendor/plugins/redmine_work_time/app/views/work_time/_user_day_table.html.erb:21
    vendor/plugins/redmine_work_time/app/views/work_time/show.html.erb:54
    vendor/plugins/redmine_work_time/app/views/work_time/show.html.erb:47
    vendor/plugins/redmine_work_time/app/controllers/work_time_controller.rb:22:in `index'
    passenger (2.2.14) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.14) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
    passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/utils.rb:252:in `safe_fork'
    passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
    passenger (2.2.14) lib/phusion_passenger/railz/framework_spawner.rb:291:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.14) lib/phusion_passenger/railz/framework_spawner.rb:286:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.14) lib/phusion_passenger/railz/framework_spawner.rb:284:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.14) lib/phusion_passenger/railz/framework_spawner.rb:101:in `start'
    passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /var/www/redmine/public/500.html (500 Error)
rendering section "request"
rendering section "session"
rendering section "environment"
rendering section "backtrace"

Any ideas on that?

Thanks.
Marc

Original issue reported on code.google.com by marc.bu...@gmail.com on 10 May 2011 at 9:25

GoogleCodeExporter commented 9 years ago
I found the problem:

In redmine-core, file app/helpers/custom_fields_helper.rb, I replaced line 52 
(R5723):
      select_tag(field_name, blank_option + options_for_select(custom_field.possible_values_options(custom_value.customized), custom_value.value), :id => field_id)

with the old one:
      select_tag(field_name, blank_option + options_for_select(custom_field.possible_values, custom_value.value), :id => field_id)

Now, Worktime is accessable ... but that won't fix the issue in Worktime.
Maybe you can provide a fix for Worktime?

Thanks.
Marc

Original comment by marc.bu...@gmail.com on 10 May 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Hi Marc.

Thanks for your report.

I fixed this problem in r211.

Please try this if you possible.

p.s.
I added one line into de.yml.
It's helpful if you translate it and send me.

Original comment by T.Kusukawa on 22 May 2011 at 5:33

GoogleCodeExporter commented 9 years ago

Original comment by T.Kusukawa on 15 Jul 2011 at 1:50