spree / spree

An open source eCommerce platform giving you full control and customizability. Modular and API-first. Build any eCommerce solution that your business requires. Developed by @vendo-dev
https://spreecommerce.org
Other
13.07k stars 4.95k forks source link

NoMethodError in Spree::CheckoutController#update #2366

Closed abhiramesh closed 11 years ago

abhiramesh commented 11 years ago

I'm testing out the Bogus Gateway. I can't seem to get past the payments state in the checkout process.

on "checkout/update/payment", I get the error:

undefined method `[]' for nil:NilClass

Full Trace:

.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_gateway-3ab269a05a55/app/controllers/spree/checkout_controller_decorator.rb:36:in confirm_skrill' activesupport (3.2.9) lib/active_support/callbacks.rb:506:in_run3403971497662231797process_action2832325348555505657callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' activesupport (3.2.9) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.9) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (3.2.9) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.9) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.9) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:incall' spree_core (1.3.0) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in call' spree_core (1.3.0) lib/spree/core/middleware/seo_assist.rb:27:incall' railties (3.2.9) lib/rails/engine.rb:479:in call' railties (3.2.9) lib/rails/railtie/configurable.rb:30:inmethod_missing' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:incall' omniauth (1.1.1) lib/omniauth/strategy.rb:177:in call!' omniauth (1.1.1) lib/omniauth/strategy.rb:157:incall' client_side_validations (3.2.1) lib/client_side_validations/middleware.rb:21:in call' warden (1.2.1) lib/warden/manager.rb:35:inblock in call' warden (1.2.1) lib/warden/manager.rb:34:in catch' warden (1.2.1) lib/warden/manager.rb:34:incall' actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.1) lib/rack/etag.rb:23:incall' rack (1.4.1) lib/rack/conditionalget.rb:35:in call' actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:incall' actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.9) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in _run__4062196906885955079__call__375016622962433561__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:incall' actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.9) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.9) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.9) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall' activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall' actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.9) lib/rails/engine.rb:479:incall' railties (3.2.9) lib/rails/application.rb:223:in call' rack (1.4.1) lib/rack/content_length.rb:14:incall' railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.1) lib/rack/handler/webrick.rb:59:inservice' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in service' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:inrun' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' Request

Parameters:

{"utf8"=>"✓", "_method"=>"put", "authenticity_token"=>"pJ2QMNkfLOQAOnJsFmLzYHAcIubo/NUXdEOVYa5B8Os=", "payment_source"=>{"931422125"=>{"number"=>"[FILTERED]", "month"=>"12", "year"=>"2012", "verification_value"=>"", "first_name"=>"", "last_name"=>""}}, "state"=>"payment"}

radar commented 11 years ago

This seems to be a bug in spree_gateway. Can you please file an issue there please?

On 31/12/2012, at 17:01, abhiramesh notifications@github.com wrote:

I'm testing out the Bogus Gateway. I can't seem to get past the payments state in the checkout process.

on "checkout/update/payment", I get the error:

undefined method `[]' for nil:NilClass

Full Trace:

.rvm/gems/ruby-1.9.3-p194/bundler/gems/spree_gateway-3ab269a05a55/app/controllers/spree/checkout_controller_decorator.rb:36:in confirm_skrill' activesupport (3.2.9) lib/active_support/callbacks.rb:506:in_run3403971497662231797process_action2832325348555505657callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' activesupport (3.2.9) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.9) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (3.2.9) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.9) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.9) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:incall' spree_core (1.3.0) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in call' spree_core (1.3.0) lib/spree/core/middleware/seo_assist.rb:27:incall' railties (3.2.9) lib/rails/engine.rb:479:in call' railties (3.2.9) lib/rails/railtie/configurable.rb:30:inmethod_missing' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:incall' omniauth (1.1.1) lib/omniauth/strategy.rb:177:in call!' omniauth (1.1.1) lib/omniauth/strategy.rb:157:incall' client_side_validations (3.2.1) lib/client_side_validations/middleware.rb:21:in call' warden (1.2.1) lib/warden/manager.rb:35:inblock in call' warden (1.2.1) lib/warden/manager.rb:34:in catch' warden (1.2.1) lib/warden/manager.rb:34:incall' actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.1) lib/rack/etag.rb:23:incall' rack (1.4.1) lib/rack/conditionalget.rb:35:in call' actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:incall' actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.9) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in _run4062196906885955079call375016622962433561__callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.9) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.9) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:incall' actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.9) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.9) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.9) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall' activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall' actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in call' railties (3.2.9) lib/rails/engine.rb:479:incall' railties (3.2.9) lib/rails/application.rb:223:in call' rack (1.4.1) lib/rack/content_length.rb:14:incall' railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.1) lib/rack/handler/webrick.rb:59:inservice' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in service' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:inrun' /Users/abhiramesh/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' Request

Parameters:

{"utf8"=>"✓", "_method"=>"put", "authenticity_token"=>"pJ2QMNkfLOQAOnJsFmLzYHAcIubo/NUXdEOVYa5B8Os=", "payment_source"=>{"931422125"=>{"number"=>"[FILTERED]", "month"=>"12", "year"=>"2012", "verification_value"=>"", "first_name"=>"", "last_name"=>""}}, "state"=>"payment"}

— Reply to this email directly or view it on GitHub.

abhiramesh commented 11 years ago

Will do - thanks.

abhiramesh commented 11 years ago

@radar Moved the topic there - I also removed the spree_gateway gem and tried using just the Bogus Gateway...getting a similar error with the full-trace starting there...am I missing something obvious?

spree_core (1.3.0) app/controllers/spree/checkout_controller.rb:80:in object_params' spree_promo (1.3.0) app/controllers/spree/checkout_controller_decorator.rb:5:inupdate'