-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Catalog Products List widget is not displayed on Storefront #12717
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
Comments
#mageconf |
@RostislavS thank you for joining. Please accept team invitation here and self-assign the issue. |
I was about to report this issue myself. I've done some experimentation and it would seem that if you have Flat Product enabled and then create a Product List widget where one of the conditions is on a product attribute that is NOT on the Flat Product table (ie Used in Product Listing = NO) then Magento fails to add the table join for the attribute - hence why as above at_color fails. @alena-marchenko - If you set 'color' so that Used in Product Listing = YES and then do a full reindex from CLI, you should find the error will stop occurring. This problem also occurs on the 2.1.x branch so can any fix be backported please? |
…efront (code styling)
Hi @alena-marchenko. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
@magento-engcom-team What is the solution to this issue? I am having this issue after upgrading to Magento 2.2.5 CE. |
I was facing same problem after updating 2.2.4 to 2.2.5 I have change scope of attribute to "Global" from "Store View" and it run for me. |
I am having this issue on 2.2.4. Above suggestion didn't help. If I apply the fixes intended for 2.3, will it help here too? |
@ihor-sviziev thank you for your response. As I am still new to this, pardon my ignorance - if I do the fix and later upgrade to 2.3.x where the fix has been included, will I be messing up any of my core files in a way that it won't upgrade properly? If I understood you correctly, the only issue I would have is if I were to upgrade to another version of 2.2.x? |
Hi @helefa, |
@pathakkrunal, thanks! switching the attributes to "Global" worked for me. |
Hi @TomashKhamlai. Thank you for working on this issue.
|
The issue was re-tested and we can confirm that it was fixed on the 2.3 release branch. We closing this issue as fixed due to upcoming 2.3 release that will be available soon. |
Preconditions
Steps to reproduce
Storefront Properties
-- Display on = All Pages
-- Container = Main Content Area
Widget Options
rm -rf var/* pub/static/* generated/*
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy
Expected result
Widget is visible on Storefront
Actual result
Widget is not visible on Storefront, following error persists in support_report.log:
report.CRITICAL: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'at_color.value' in 'where clause', query was: SELECT COUNT(DISTINCT e.entity_id) FROM
catalog_product_flat_1
ASe
INNER JOIN
catalog_category_product_index
AScat_index
ON cat_index.product_id=e.entity_id AND cat_index.store_id='1' AND cat_index.visibility IN(2, 4) AND cat_index.category_id='2'INNER JOIN
catalog_product_index_price
ASprice_index
ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0 WHERE (((IFNULL(at_color
.value
, 0) = '13') ))The text was updated successfully, but these errors were encountered: