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

missing FROM-clause entry for table "spree_product_properties" #1

Open
connecticus opened this issue Aug 24, 2015 · 0 comments
Open

Comments

@connecticus
Copy link

I have this error when trying to start filtering using checkboxes.
I try to follow link in JS console and have this:

.../frontend/app/views/spree/shared/_products.html.erb where line #8 raised:

PG::UndefinedTable: ERROR: missing FROM-clause entry for table "spree_product_properties"
LINE 1: ... "spree_products"."deleted_at" IS NULL AND (lower(spree_prod...
^
: SELECT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-08-24 00:54:48.550989') AND ("spree_products".available_on <= '2015-08-24 00:54:48.551708') AND (spree_products.id in (SELECT spree_products.id FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND (lower(spree_product_properties.value) LIKE lower('Scell-it')))) AND "spree_products_taxons"."taxon_id" IN (10, 19, 20, 21, 22) AND (spree_prices.amount BETWEEN 0 AND 10000000 AND spree_prices.amount > 0) AND "spree_prices"."currency" = 'USD'

Spree 2.4 (vanila)
postgresql 9.4
webgradus/spree_filters - last

Thank you for wonderful plugin.

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