Topic: ActiveRecord::MultiparameterAssignmentErrors

Hi Guysi seem to randomly get this ActiveRecord::MultiparameterAssignmentErrors Error on the production version of my site.using the same parameters as below, ive tested this in development and it works fine.. i can't reproduce the error. im wondering if anyone here can shed some light on this.the error seems to happen about 2.5% of the time.. Rails 2.3.8

Processing EventsController#create (for 177.35.41.28 at 2012-10-30 16:10:39) [POST]
  Parameters: {"commit"=>"Submit", "minutes"=>{"min"=>""}, "commit.x"=>"73", "action"=>"create", "authenticity_token"=>"YvWXD1/maxB/C3l5rlmC6bZ0hmT+rpPJY57njge/PNg=", "commit.y"=>"25", "user_id"=>"3653", "event"=>{"name"=>"CLUB FATTO GASTROBAR", "city"=>"São Carlos", "confirmed"=>"1", "country"=>"Brazil", "url"=>"", "showtime(4i)"=>"23", "info"=>"", "showtime(5i)"=>"0", "eventdate(1i)"=>"2012", "eventdate(2i)"=>"10", "venue"=>"São Carlos", "eventdate(3i)"=>"10", "state"=>""}, "controller"=>"events"}

ActiveRecord::MultiparameterAssignmentErrors (1 error(s) on assignment of multiparameter attributes):
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:3114:in `execute_callstack_for_multiparameter_attributes'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:3069:in `assign_multiparameter_attributes'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2910:in `assign_attributes'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2775:in `attributes='
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2473:in `initialize'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/reflection.rb:162:in `new'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/reflection.rb:162:in `build_association'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:436:in `build_record'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:102:in `build'
  app/controllers/events_controller.rb:108:in `create'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in `send'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process_without_filters'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
  /home/sansserifgrafik/.gem/ruby/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:106:in `call'
  /dh/passenger/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
  /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
  /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
  /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
  /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/utils.rb:470:in `safe_fork'
  /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
  /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
  /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
  /dh/passenger/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  /dh/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  /dh/passenger/helper-scripts/passenger-spawn-server:99

Last edited by ssgrfk (2012-10-30 12:09:59)