Project

General

Profile

I have an error 500 when I tried to add a new ticket after upgrade from 1.2.0 to 1.4.1 :(

Added by fred white over 12 years ago

Hi, I have finally upgraded my Redmine from 1.2 to 1.4.1 with a big help from the Site5 support however now that I can see in the admin that I have version 1.4.1 I have the same error when I try to open a new ticket, or chech activity or chech document page... any idea ? thanks...

Here is the log info for adding a new ticket for example :

Processing IssuesController#new (for XX.XX.XX.XX at 2012-04-30 08:45:08) [GET]
Parameters: {"project_id"=>"XXXXXXXXXX", "action"=>"new", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/new

ActionView::TemplateError (undefined method `saved_attachments' for #<Issue:0x7660939a1978>) on line #1 of app/views/attachments/_form.html.erb:
1: <% if defined?(container) && container && container.saved_attachments >
2: <
container.saved_attachments.each_with_index do |attachment, i| >
3: <span class="icon icon-attachment" style="display:block; line-height:1.5em;">
4: <
= h(attachment.filename) > (<= number_to_human_size(attachment.filesize) %>)

vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:260:in `method_missing'
app/views/attachments/_form.html.erb:1
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `send'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:306:in `with_template'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:30:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:20:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:30:in `benchmark'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:19:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/template.rb:205:in `render_template'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:44:in `render_partial'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/partials.rb:184:in `render_partial'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:267:in `render'
app/views/issues/new.html.erb:21
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_helper.rb:499:in `fields_for'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_helper.rb:282:in `form_for'
app/helpers/application_helper.rb:934:in `labelled_form_for'
app/views/issues/new.html.erb:5
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `send'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:306:in `with_template'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:30:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/template.rb:205:in `render_template'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:265:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:348:in `_render_with_layout'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:262:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1252:in `render_for_file'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:942:in `render_without_benchmark'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render'
app/controllers/issues_controller.rb:130:in `new'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in `custom'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `respond'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `each'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `respond'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:107:in `respond_to'
app/controllers/issues_controller.rb:129:in `new'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
vendor/bundle/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server:99

Rendering /xxxxx/releases/redmine141/public/500.html (500 Internal Server Error)