Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.56 KB | None | 0 0
  1. ** (Phoenix.Template.UndefinedError) Could not render "_meta_bar.html" for DkWeb.Email.NotificationView, please define a matching clause for render/2 or define a template at "lib/dk_web/templates/email/notification". The following templates were compiled:
  2.  
  3. * notification.html
  4.  
  5. Assigns:
  6.  
  7. %{customer_email: "mortwillard@mortwillard.com", customer_name: "Mort Willard", email: %Swoosh.Email{assigns: %{customer_email: "mortwillard@mortwillard.com", customer_name: "Mort Willard", layout: {DkWeb.LayoutView, "email.html"}, message: "Blah blah", product: %{display_width: #Decimal<12.5>, display_height: #Decimal<12.5>, base_price_in_cents: 10000, product_dimensions: "some content", package_depth: #Decimal<12.5>, id: 5559, weight: #Decimal<12.5>, manufacturer: "some content", sale_price_in_cents: 1000, package_dimensions: nil, deleted_at: nil, flat_rate_shipping_cost_in_cents: 0, sku: "some content", store: %Dk.Data.Store{contact_email: "some@teststore.com", approved_at: nil, id: 7555, trade_user_discount_percent: #Decimal<0.0>, subscription_id: nil, announced: false, slug: "store-224", signed_agreement: false, deleted_at: nil, phone: "123-123-1234", published: true, store_settings: #Ecto.Association.NotLoaded<association :store_settings is not loaded>, featured: false, subscription_status: :trialing, updated_at: ~N[2018-04-12 20:18:21.223279], commission_percentage: #Decimal<10.0>, store_addresses: #Ecto.Association.NotLoaded<association :store_addresses is not loaded>, images: #Ecto.Association.NotLoaded<association :images is not loaded>, addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", ...}], description: "A store", approved: true, products_count: 0, products: #Ecto.Association.NotLoaded<association :products is not loaded>, website: "http://designkollective.com", stripe_account_id: nil, search_boost: 0, tax_policies: #Ecto.Association.NotLoaded<association :tax_policies is not loaded>, ...}, package_width: #Decimal<12.5>, sales: #Ecto.Association.NotLoaded<association :sales is not loaded>, published: true, display_depth: #Decimal<12.5>, tags: [], updated_at: ~N[2018-04-12 20:18:21.268552], images: [], addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", id: 7219, last_name: "Washington", phone_number: "123-123-1234", point: nil, postal_code: "95001", state: "CA", stores: #Ecto.Association.NotLoaded<association :stores is not loaded>, title: "address259", updated_at: ~N[2018-04-12 20:18:21.226451]}], categories: #Ecto.Association.NotLoaded<association :categories is not loaded>, description: "some content", favorite: nil, sort_index: 42, location: "some content", package_height: #Decimal<12.5>, __struct__: Dk.Data.Product, store_id: 7555, distance_in_miles: nil, created_at: ~N[2018-04-12 20:18:21.268543], inventory_total: 42, has_custom_package_dimensions: false, __meta__: #Ecto.Schema.Metadata<:loaded, "products">, name: "A chair", rooms: #Ecto.Association.NotLoaded<association :rooms is not loaded>, inventory_remaining: 42, trade_user_discount_applied: false}, store: %Dk.Data.Store{contact_email: "some@teststore.com", approved_at: nil, id: 7555, trade_user_discount_percent: #Decimal<0.0>, subscription_id: nil, announced: false, slug: "store-224", signed_agreement: false, deleted_at: nil, phone: "123-123-1234", published: true, store_settings: #Ecto.Association.NotLoaded<association :store_settings is not loaded>, featured: false, subscription_status: :trialing, updated_at: ~N[2018-04-12 20:18:21.223279], commission_percentage: #Decimal<10.0>, store_addresses: #Ecto.Association.NotLoaded<association :store_addresses is not loaded>, images: #Ecto.Association.NotLoaded<association :images is not loaded>, addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", id: 7219, last_name: "Washington", phone_number: "123-123-1234", point: nil, postal_code: "95001", state: "CA", stores: #Ecto.Association.NotLoaded<association :stores is not loaded>, title: "address259", updated_at: ~N[2018-04-12 20:18:21.226451]}], description: "A store", approved: true, products_count: 0, products: #Ecto.Association.NotLoaded<association :products is not loaded>, website: "http://designkollective.com", stripe_account_id: nil, search_boost: 0, tax_policies: #Ecto.Association.NotLoaded<association :tax_policies is not loaded>, created_at: ~N[2018-04-12 20:18:21.223268], managers: #Ecto.Association.NotLoaded<association :managers is not loaded>, logos: #Ecto.Association.NotLoaded<association :logos is not loaded>, stripe_customer_id: nil, contacts: #Ecto.Association.NotLoaded<association :contacts is not loaded>, __meta__: #Ecto.Schema.Metadata<:loaded, "stores">, name: "Test Store 224", type: :boutique, store_managers: #Ecto.Association.NotLoaded<association :store_managers is not loaded>}}, attachments: [], bcc: [], cc: [], from: {"", "info@designkollective.com"}, headers: %{}, html_body: nil, private: %{phoenix_layout: {DkWeb.LayoutView, :email}, phoenix_template: "customer_question.html", phoenix_view: DkWeb.Email.CustomerQuestionView}, provider_options: %{}, reply_to: {"", "mortwillard@mortwillard.com"}, subject: "New customer question on Design Kollective", text_body: nil, to: [{"", "some@teststore.com"}]}, message: "Blah blah", product: %{display_width: #Decimal<12.5>, display_height: #Decimal<12.5>, base_price_in_cents: 10000, product_dimensions: "some content", package_depth: #Decimal<12.5>, id: 5559, weight: #Decimal<12.5>, manufacturer: "some content", sale_price_in_cents: 1000, package_dimensions: nil, deleted_at: nil, flat_rate_shipping_cost_in_cents: 0, sku: "some content", store: %Dk.Data.Store{contact_email: "some@teststore.com", approved_at: nil, id: 7555, trade_user_discount_percent: #Decimal<0.0>, subscription_id: nil, announced: false, slug: "store-224", signed_agreement: false, deleted_at: nil, phone: "123-123-1234", published: true, store_settings: #Ecto.Association.NotLoaded<association :store_settings is not loaded>, featured: false, subscription_status: :trialing, updated_at: ~N[2018-04-12 20:18:21.223279], commission_percentage: #Decimal<10.0>, store_addresses: #Ecto.Association.NotLoaded<association :store_addresses is not loaded>, images: #Ecto.Association.NotLoaded<association :images is not loaded>, addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", id: 7219, last_name: "Washington", phone_number: "123-123-1234", point: nil, ...}], description: "A store", approved: true, products_count: 0, products: #Ecto.Association.NotLoaded<association :products is not loaded>, website: "http://designkollective.com", stripe_account_id: nil, search_boost: 0, tax_policies: #Ecto.Association.NotLoaded<association :tax_policies is not loaded>, created_at: ~N[2018-04-12 20:18:21.223268], managers: #Ecto.Association.NotLoaded<association :managers is not loaded>, logos: #Ecto.Association.NotLoaded<association :logos is not loaded>, stripe_customer_id: nil, ...}, package_width: #Decimal<12.5>, sales: #Ecto.Association.NotLoaded<association :sales is not loaded>, published: true, display_depth: #Decimal<12.5>, tags: [], updated_at: ~N[2018-04-12 20:18:21.268552], images: [], addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", id: 7219, last_name: "Washington", phone_number: "123-123-1234", point: nil, postal_code: "95001", state: "CA", stores: #Ecto.Association.NotLoaded<association :stores is not loaded>, title: "address259", updated_at: ~N[2018-04-12 20:18:21.226451]}], categories: #Ecto.Association.NotLoaded<association :categories is not loaded>, description: "some content", favorite: nil, sort_index: 42, location: "some content", package_height: #Decimal<12.5>, __struct__: Dk.Data.Product, store_id: 7555, distance_in_miles: nil, created_at: ~N[2018-04-12 20:18:21.268543], inventory_total: 42, has_custom_package_dimensions: false, __meta__: #Ecto.Schema.Metadata<:loaded, "products">, name: "A chair", rooms: #Ecto.Association.NotLoaded<association :rooms is not loaded>, inventory_remaining: 42, trade_user_discount_applied: false}, store: %Dk.Data.Store{contact_email: "some@teststore.com", approved_at: nil, id: 7555, trade_user_discount_percent: #Decimal<0.0>, subscription_id: nil, announced: false, slug: "store-224", signed_agreement: false, deleted_at: nil, phone: "123-123-1234", published: true, store_settings: #Ecto.Association.NotLoaded<association :store_settings is not loaded>, featured: false, subscription_status: :trialing, updated_at: ~N[2018-04-12 20:18:21.223279], commission_percentage: #Decimal<10.0>, store_addresses: #Ecto.Association.NotLoaded<association :store_addresses is not loaded>, images: #Ecto.Association.NotLoaded<association :images is not loaded>, addresses: [%Dk.Data.Address{__meta__: #Ecto.Schema.Metadata<:loaded, "addresses">, address: "259 Main Street", address_line_2: nil, city: "Aptos", created_at: ~N[2018-04-12 20:18:21.226440], delete: nil, first_name: "Sean", id: 7219, last_name: "Washington", phone_number: "123-123-1234", point: nil, postal_code: "95001", state: "CA", stores: #Ecto.Association.NotLoaded<association :stores is not loaded>, title: "address259", updated_at: ~N[2018-04-12 20:18:21.226451]}], description: "A store", approved: true, products_count: 0, products: #Ecto.Association.NotLoaded<association :products is not loaded>, website: "http://designkollective.com", stripe_account_id: nil, search_boost: 0, tax_policies: #Ecto.Association.NotLoaded<association :tax_policies is not loaded>, created_at: ~N[2018-04-12 20:18:21.223268], managers: #Ecto.Association.NotLoaded<association :managers is not loaded>, logos: #Ecto.Association.NotLoaded<association :logos is not loaded>, stripe_customer_id: nil, contacts: #Ecto.Association.NotLoaded<association :contacts is not loaded>, __meta__: #Ecto.Schema.Metadata<:loaded, "stores">, name: "Test Store 224", type: :boutique, store_managers: #Ecto.Association.NotLoaded<association :store_managers is not loaded>}, template_not_found: DkWeb.Email.NotificationView, view_module: DkWeb.Email.NotificationView, view_template: "_meta_bar.html"}
  8.  
  9. Assigned keys: [:customer_email, :customer_name, :email, :message, :product, :store, :template_not_found, :view_module, :view_template]
  10.  
  11. code: Engagement.send_customer_question(attrs)
  12. stacktrace:
  13. (phoenix) lib/phoenix/template.ex:364: Phoenix.Template.raise_template_not_found/3
  14. (dk) lib/dk_web/templates/email/customer_question/customer_question.html.eex:58: anonymous fn/1 in DkWeb.Email.CustomerQuestionView."customer_question.html"/1
  15. (dk) lib/dk_web/templates/layout/email.html.eex:197: anonymous fn/1 in DkWeb.LayoutView."email.html"/1
  16. (phoenix) lib/phoenix/view.ex:332: Phoenix.View.render_to_iodata/3
  17. (phoenix) lib/phoenix/view.ex:339: Phoenix.View.render_to_string/3
  18. (phoenix_swoosh) lib/phoenix_swoosh.ex:159: Phoenix.Swoosh.do_render_body/4
  19. (dk) lib/dk/engagement/engagement.ex:150: Dk.Engagement.send_customer_question/1
  20. test/dk/engagement/engagement_test.exs:227: (test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement