Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack level too deep - shipping_methods_controller_decorator #25

Open
bonekost opened this issue Aug 31, 2016 · 0 comments
Open

Stack level too deep - shipping_methods_controller_decorator #25

bonekost opened this issue Aug 31, 2016 · 0 comments

Comments

@bonekost
Copy link

Hello,
after trying to post new shipping method in admin I got server stacked.

Started POST "/admin/shipping_methods" for 127.0.0.1 at 2016-08-31 14:06:15 +0200
  ActiveRecord::SchemaMigration Load (2.0ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by Spree::Admin::ShippingMethodsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"wfaKkyjn0PqhRejMp8l9UiBdd+OiHe4Fev7RibbWc0R+AYlM7XsHQhmnhJzooDM8Z0fNnXbByno4WuefaPv9ZA==", "shipping_method"=>{"name"=>"GLS", "display_on"=>"", "admin_name"=>"gls", "code"=>"12", "tracking_url"=>"", "shipping_categories"=>["1"], "zones"=>["1"], "calculator_type"=>"Spree::Calculator::Shipping::FlexiRate", "tax_category_id"=>""}, "button"=>""}
  Spree::Preference Load (0.6ms)  SELECT  "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT 1  [["key", "spree/backend_configuration/locale"]]
  Spree::User Load (2.7ms)  SELECT  "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ?  ORDER BY "spree_users"."id" ASC LIMIT 1  [["id", 1]]
  Spree::Role Load (0.8ms)  SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_role_users" ON "spree_roles"."id" = "spree_role_users"."role_id" WHERE "spree_role_users"."user_id" = ?  [["user_id", 1]]
Completed 500 Internal Server Error in 738ms (ActiveRecord: 12.6ms)

SystemStackError (stack level too deep):
  app/controllers/spree/admin/shipping_methods_controller_decorator.rb:10:in `set_shipping_category'

I tried to use:

alias_method_chain :old_set_shipping_category, :set_shipping_category
alias_method_chain :old_set_zones, :set_zones

but no luck...

Spree v3.1.0
Rails v4.2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant