Skip to content

Instantly share code, notes, and snippets.

@bld2104
Created March 22, 2016 17:58
Show Gist options
  • Save bld2104/364d532735804e5a23c8 to your computer and use it in GitHub Desktop.
Save bld2104/364d532735804e5a23c8 to your computer and use it in GitHub Desktop.
heroku logs states error
2016-03-10T22:17:59.603409+00:00 app[web.1]: Started PATCH "/shop/cart" for 100.14.176.16 at 2016-03-10 22:17:59 +0000
2016-03-10T22:17:59.606164+00:00 app[web.1]: Processing by Spree::OrdersController#update as HTML
2016-03-10T22:17:59.606267+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"ixp4G4AU6/SCWb6Pqd7t4k7wNib+2YYa2FdaE4jLE7kem5IEuQd4li9ig+nO0t5xtqNTfBriu3J+DZlWcnFPfA==", "order"=>{"line_items_attributes"=>{"0"=>{"quantity"=>"1", "id"=>"1"}, "1"=>{"quantity"=>"1", "id"=>"2"}}}, "checkout"=>""}
2016-03-10T22:17:59.610508+00:00 app[web.1]: Spree::Preference Load (2.8ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/frontend_configuration/locale"]]
2016-03-10T22:17:59.614534+00:00 app[web.1]: Spree::User Load (2.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 ORDER BY "spree_users"."id" ASC LIMIT 1 [["id", 1]]
2016-03-10T22:17:59.618957+00:00 app[web.1]: Spree::Store Load (2.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%sweetfields.herokuapp.com%') ORDER BY "spree_stores"."id" ASC LIMIT 1
2016-03-10T22:17:59.621774+00:00 app[web.1]: Spree::Store Load (2.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1
2016-03-10T22:17:59.625280+00:00 app[web.1]: Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = $1 AND "spree_orders"."guest_token" = $2 AND "spree_orders"."store_id" = $3 AND "spree_orders"."user_id" = $4 LIMIT 1 [["currency", "USD"], ["guest_token", "5SpFgeset__xI3zwfaruvg"], ["store_id", 1], ["user_id", 1]]
2016-03-10T22:17:59.629457+00:00 app[web.1]: Spree::Adjustment Load (2.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (1) ORDER BY spree_adjustments.created_at ASC
2016-03-10T22:17:59.633701+00:00 app[web.1]: Spree::Order Load (1.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = $1 AND "spree_orders"."completed_at" IS NULL AND (id != 1) [["user_id", 1]]
2016-03-10T22:17:59.636870+00:00 app[web.1]: Spree::Order Load (2.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" IS NULL LIMIT 1
2016-03-10T22:17:59.641592+00:00 app[web.1]: (2.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = $1 AND "spree_roles"."name" = $2 [["user_id", 1], ["name", "admin"]]
2016-03-10T22:17:59.645603+00:00 app[web.1]: (1.8ms) SELECT "spree_line_items"."id" FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 ORDER BY spree_line_items.created_at ASC [["order_id", 1]]
2016-03-10T22:17:59.647373+00:00 app[web.1]: (1.6ms) BEGIN
2016-03-10T22:17:59.649793+00:00 app[web.1]: Spree::LineItem Load (1.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 AND "spree_line_items"."id" IN (1, 2) ORDER BY spree_line_items.created_at ASC [["order_id", 1]]
2016-03-10T22:17:59.653318+00:00 app[web.1]: Spree::Order Exists (1.8ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R107374170' AND "spree_orders"."id" != 1) LIMIT 1
2016-03-10T22:17:59.657860+00:00 app[web.1]: Spree::Payment Load (1.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.661396+00:00 app[web.1]: (1.6ms) COMMIT
2016-03-10T22:17:59.663913+00:00 app[web.1]: Spree::LineItem Load (1.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 ORDER BY spree_line_items.created_at ASC [["order_id", 1]]
2016-03-10T22:17:59.668934+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."quantity") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.672102+00:00 app[web.1]: Spree::Payment Load (1.8ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND "spree_payments"."state" = $2 ORDER BY spree_payments.created_at [["order_id", 1], ["state", "completed"]]
2016-03-10T22:17:59.674982+00:00 app[web.1]: (1.7ms) SELECT SUM(price * quantity) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.678276+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_shipments"."cost") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.681055+00:00 app[web.1]: Spree::Adjustment Load (1.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.683518+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_line_items"."adjustment_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.685976+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_shipments"."adjustment_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.689126+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_adjustments"."amount") FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = $1 AND "spree_adjustments"."adjustable_type" = $2 AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
2016-03-10T22:17:59.691510+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_line_items"."included_tax_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.693999+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_shipments"."included_tax_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.696470+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."additional_tax_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.698952+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_shipments"."additional_tax_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.701410+00:00 app[web.1]: (1.8ms) SELECT SUM("spree_line_items"."promo_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.703773+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_shipments"."promo_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.706252+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_adjustments"."amount") FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = $1 AND "spree_adjustments"."adjustable_type" = $2 AND "spree_adjustments"."source_type" = $3 AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["source_type", "Spree::PromotionAction"]]
2016-03-10T22:17:59.711226+00:00 app[web.1]: SQL (2.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 849.98, "item_count" = 2, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 849.98, "updated_at" = '2016-03-10 22:17:59.706516' WHERE "spree_orders"."id" = $1 [["id", 1]]
2016-03-10T22:17:59.721469+00:00 app[web.1]: Spree::Promotion Load (2.2ms) SELECT * FROM ( SELECT "spree_promotions".* FROM "spree_promotions" INNER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE "spree_orders_promotions"."order_id" = $1 AND (spree_promotions.starts_at IS NULL OR spree_promotions.starts_at < '2016-03-10 22:17:59.712094') AND (spree_promotions.expires_at IS NULL OR spree_promotions.expires_at > '2016-03-10 22:17:59.712279') UNION SELECT "spree_promotions".* FROM "spree_promotions" WHERE (spree_promotions.starts_at IS NULL OR spree_promotions.starts_at < '2016-03-10 22:17:59.712410') AND (spree_promotions.expires_at IS NULL OR spree_promotions.expires_at > '2016-03-10 22:17:59.712559') AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL ) "spree_promotions" [["order_id", 1]]
2016-03-10T22:17:59.724391+00:00 app[web.1]: Spree::Shipment Exists (1.7ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 LIMIT 1 [["order_id", 1]]
2016-03-10T22:17:59.727083+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."quantity") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.729990+00:00 app[web.1]: Spree::Payment Load (1.6ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND "spree_payments"."state" = $2 ORDER BY spree_payments.created_at [["order_id", 1], ["state", "completed"]]
2016-03-10T22:17:59.732394+00:00 app[web.1]: (1.7ms) SELECT SUM(price * quantity) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.735229+00:00 app[web.1]: (1.6ms) SELECT SUM("spree_shipments"."cost") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.738017+00:00 app[web.1]: Spree::Adjustment Load (1.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.740993+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."adjustment_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.744181+00:00 app[web.1]: (2.2ms) SELECT SUM("spree_shipments"."adjustment_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.747433+00:00 app[web.1]: (1.8ms) SELECT SUM("spree_adjustments"."amount") FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = $1 AND "spree_adjustments"."adjustable_type" = $2 AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]]
2016-03-10T22:17:59.749921+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."included_tax_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.753177+00:00 app[web.1]: (2.5ms) SELECT SUM("spree_shipments"."included_tax_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.755724+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."additional_tax_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.758170+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_shipments"."additional_tax_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.760716+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_line_items"."promo_total") FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.763233+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_shipments"."promo_total") FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.766293+00:00 app[web.1]: (1.7ms) SELECT SUM("spree_adjustments"."amount") FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = $1 AND "spree_adjustments"."adjustable_type" = $2 AND "spree_adjustments"."source_type" = $3 AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"], ["source_type", "Spree::PromotionAction"]]
2016-03-10T22:17:59.771770+00:00 app[web.1]: SQL (2.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 849.98, "item_count" = 2, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 849.98, "updated_at" = '2016-03-10 22:17:59.766637' WHERE "spree_orders"."id" = $1 [["id", 1]]
2016-03-10T22:17:59.775464+00:00 app[web.1]: Spree::Payment Load (1.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.776345+00:00 app[web.1]: Redirected to https://sweetfields.herokuapp.com/shop/checkout/address
2016-03-10T22:17:59.776543+00:00 app[web.1]: Completed 302 Found in 170ms (ActiveRecord: 93.6ms)
2016-03-10T22:17:59.804826+00:00 app[web.1]: Started GET "/shop/checkout/address" for 100.14.176.16 at 2016-03-10 22:17:59 +0000
2016-03-10T22:17:59.807680+00:00 app[web.1]: Processing by Spree::CheckoutController#edit as HTML
2016-03-10T22:17:59.807702+00:00 app[web.1]: Parameters: {"state"=>"address"}
2016-03-10T22:17:59.810478+00:00 app[web.1]: Spree::Preference Load (1.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/frontend_configuration/locale"]]
2016-03-10T22:17:59.813903+00:00 app[web.1]: Spree::User Load (1.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 ORDER BY "spree_users"."id" ASC LIMIT 1 [["id", 1]]
2016-03-10T22:17:59.817323+00:00 app[web.1]: Spree::Store Load (1.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%sweetfields.herokuapp.com%') ORDER BY "spree_stores"."id" ASC LIMIT 1
2016-03-10T22:17:59.819878+00:00 app[web.1]: Spree::Store Load (1.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1
2016-03-10T22:17:59.822691+00:00 app[web.1]: Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = $1 AND "spree_orders"."guest_token" = $2 AND "spree_orders"."store_id" = $3 AND "spree_orders"."user_id" = $4 LIMIT 1 [["currency", "USD"], ["guest_token", "5SpFgeset__xI3zwfaruvg"], ["store_id", 1], ["user_id", 1]]
2016-03-10T22:17:59.826962+00:00 app[web.1]: Spree::Adjustment Load (1.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (1) ORDER BY spree_adjustments.created_at ASC
2016-03-10T22:17:59.830889+00:00 app[web.1]: Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = $1 AND "spree_orders"."completed_at" IS NULL AND (id != 1) [["user_id", 1]]
2016-03-10T22:17:59.835197+00:00 app[web.1]: Spree::Payment Load (1.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.836484+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.837757+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.838999+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.842106+00:00 app[web.1]: (1.7ms) SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1]]
2016-03-10T22:17:59.844483+00:00 app[web.1]: Spree::LineItem Load (1.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 ORDER BY spree_line_items.created_at ASC [["order_id", 1]]
2016-03-10T22:17:59.847586+00:00 app[web.1]: Spree::Variant Load (1.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = $1 LIMIT 1 [["id", 3]]
2016-03-10T22:17:59.852431+00:00 app[web.1]: (1.9ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'
2016-03-10T22:17:59.792822+00:00 heroku[router]: at=info method=POST path="/shop/cart" host=sweetfields.herokuapp.com request_id=ba5ede07-9b1d-414c-977a-1612dbd770ab fwd="100.14.176.16" dyno=web.1 connect=1ms service=181ms status=302 bytes=1057
2016-03-10T22:17:59.921245+00:00 heroku[router]: at=info method=GET path="/shop/checkout/address" host=sweetfields.herokuapp.com request_id=2edcac0b-4104-42b6-b6e9-7a0522fa1e6b fwd="100.14.176.16" dyno=web.1 connect=1ms service=106ms status=500 bytes=1754
2016-03-10T22:17:59.857196+00:00 app[web.1]: Spree::StockItem Load (4.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'
2016-03-10T22:17:59.859906+00:00 app[web.1]: Spree::Variant Load (1.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = $1 LIMIT 1 [["id", 2]]
2016-03-10T22:17:59.863164+00:00 app[web.1]: (1.9ms) SELECT SUM("spree_stock_items"."count_on_hand") FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'
2016-03-10T22:17:59.865878+00:00 app[web.1]: Spree::StockItem Load (1.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'
2016-03-10T22:17:59.867796+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.871451+00:00 app[web.1]: Spree::User Load (1.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 LIMIT 1 [["id", 1]]
2016-03-10T22:17:59.874699+00:00 app[web.1]: Spree::Country Load (1.8ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = $1 LIMIT 1 [["id", 214]]
2016-03-10T22:17:59.877418+00:00 app[web.1]: Spree::Country Load (2.0ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1
2016-03-10T22:17:59.879573+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.883867+00:00 app[web.1]: (1.8ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = $1 AND "spree_roles"."name" = $2 [["user_id", 1], ["name", "admin"]]
2016-03-10T22:17:59.886145+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.2.0/gems/spree_frontend-3.0.5/app/views/spree/shared/_error_messages.html.erb (0.2ms)
2016-03-10T22:17:59.887656+00:00 app[web.1]: CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]]
2016-03-10T22:17:59.894578+00:00 app[web.1]: Spree::Preference Load (1.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT 1 [["key", "spree/app_configuration/checkout_zone"]]
2016-03-10T22:17:59.898914+00:00 app[web.1]: Spree::Zone Load (2.9ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" IS NULL LIMIT 1
2016-03-10T22:17:59.901207+00:00 app[web.1]: Spree::Country Load (1.7ms) SELECT "spree_countries".* FROM "spree_countries"
2016-03-10T22:17:59.903172+00:00 app[web.1]: Rendered spree/address/_form.html.erb (13.4ms)
2016-03-10T22:17:59.903295+00:00 app[web.1]: Rendered spree/checkout/_address.html.erb (14.0ms)
2016-03-10T22:17:59.903406+00:00 app[web.1]: Rendered spree/checkout/edit.html.erb within spree/layouts/spree_application (17.9ms)
2016-03-10T22:17:59.903686+00:00 app[web.1]: Completed 500 Internal Server Error in 96ms (ActiveRecord: 44.6ms)
2016-03-10T22:17:59.905857+00:00 app[web.1]:
2016-03-10T22:17:59.905871+00:00 app[web.1]: ActionView::Template::Error (undefined method `states' for nil:NilClass):
2016-03-10T22:17:59.905872+00:00 app[web.1]: 35:
2016-03-10T22:17:59.905873+00:00 app[web.1]: 36: <% if Spree::Config[:address_requires_state] %>
2016-03-10T22:17:59.905874+00:00 app[web.1]: 37: <p class="field" id=<%="#{address_id}state" %>>
2016-03-10T22:17:59.905874+00:00 app[web.1]: 38: <% have_states = !address.country.states.empty? %>
2016-03-10T22:17:59.905875+00:00 app[web.1]: 39: <%= form.label :state, Spree.t(:state) %><span class='required' id=<%="#{address_id}state-required"%>>*</span><br/>
2016-03-10T22:17:59.905876+00:00 app[web.1]: 40:
2016-03-10T22:17:59.905877+00:00 app[web.1]: 41: <% state_elements = [
2016-03-10T22:17:59.905880+00:00 app[web.1]: app/views/spree/address/_form.html.erb:38:in `_ff84f75278908ec5181327c5c0bd7eec'
2016-03-10T22:17:59.905880+00:00 app[web.1]: app/views/spree/checkout/_address.html.erb:6:in `block in _9ba1ebb6c1a0bfe6c5699673873e0890'
2016-03-10T22:17:59.905881+00:00 app[web.1]: app/views/spree/checkout/_address.html.erb:4:in `_9ba1ebb6c1a0bfe6c5699673873e0890'
2016-03-10T22:17:59.905882+00:00 app[web.1]: app/views/spree/checkout/edit.html.erb:20:in `block in _3b87d06f67cd67c75e13475bf1de88d1'
2016-03-10T22:17:59.905882+00:00 app[web.1]: app/views/spree/checkout/edit.html.erb:13:in `_3b87d06f67cd67c75e13475bf1de88d1'
2016-03-10T22:17:59.905883+00:00 app[web.1]:
2016-03-10T22:17:59.905884+00:00 app[web.1]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment