3

I just updated to 2.3.0 and when I try to open any category page -> instead of filters I am getting "Compare products" and "My wishlist" + . instead of product list getting message "We can't find products matching the selection."

How can I solve/investigate this question?

2
  • 1
    Reindex & clear cache Feb 27 '19 at 15:43
  • 1
    i tried, it's not solving
    – dukir
    Feb 27 '19 at 15:44
4

Depending on the version you upgraded from it might be a missing stock source/default. Can't check right now but you should find two menu entries under shops or system.

Edit:

With Magento 2.3 a new feature called Multi Source Inventory was introduced. After an upgrade from a prior version you need to set a source and a default stock. So the settings I mentioned can be found under Stores > Inventory > Sources. Here you need to configure a source. Under Stores > Inventory > Stocks you need to apply default stock to your website.

It may also require a reindex.

1
  • Where is "Stores" ? Edit: He means "Shops"
    – Black
    Jun 23 '20 at 15:41
7

i was facing this challenge and was almost frustrated when i finally got how to fix it. For me I used this

i used the code below to view the table

sql command select *
from catalog_eav_attribute cea 
join eav_attribute ea
  on ea.attribute_id = cea.attribute_id 
  and backend_type in ('text', 'varchar')
where 
  cea.is_filterable = 1

and Set is_filterable to 0 to allow category pages to load.

update catalog_eav_attribute cea 
join eav_attribute ea
  on ea.attribute_id = cea.attribute_id 
  and backend_type in ('text', 'varchar')
set cea.is_filterable = 0
where 
  cea.is_filterable = 1

Reindex/Refresh Cache

magento indexer:reindex
magento cache:clean
magento cache:flush

i got the solution from this link, it was a very helpful solution....thank you doublesharp best solution ever

1
  • much appreciated this saved me!
    – SR_Magento
    Oct 3 at 17:36
7

In my case I tried to re-index but noticed the index failed for esatic search:

Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster

i resolved by running:

sudo systemctl restart elasticsearch

php bin/magento indexer:reindex

php bin/magento cache:flush

1
  • worked for me. sudo systemctl restart elasticsearch will work Mar 23 at 4:22
3

You have to recreate the inventory_Stock_1 view in Database. You can make it happen with an query (like this);

 CREATE OR REPLACE VIEW `inventory_stock_1` AS select
     distinct `legacy_stock_status`.`product_id` AS `product_id`,
     `legacy_stock_status`.`website_id` AS `website_id`,
     `legacy_stock_status`.`stock_id` AS `stock_id`,
     `legacy_stock_status`.`qty` AS `quantity`,
     `legacy_stock_status`.`stock_status` AS `is_salable`,
     `product`.`sku` AS `sku` from
     ( `cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on
         (( `legacy_stock_status`.`product_id` = `product`.`entity_id` )));

After that, you have to reindex Magento:

php bin/magento indexer:reindex

Now all should be displayed and looks fine.

Hope it helps.

1
  • This worked for me
    – Christosis
    Aug 22 '20 at 3:21
1

Run this command to fix the issue php bin/magento indexer:reindex

2
  • Does not fix it for me.
    – Black
    Jun 23 '20 at 15:39
  • me too. I guess the elasticsearch have problem
    – huykon225
    Feb 6 at 13:34
1

Run this command to fix the issue php bin/magento indexer:reindex worked for Me

0

In Category Enable Anchor in Display Setting.

 Enable Anchor Tag

In Attribute set Filter with Results in Use in Layered Navigation.

Attribute

And then reindex it. Hope it will work.

1
  • No, it's not. These steps are dont, but not solve this
    – dukir
    Feb 28 '19 at 12:48
0

On version 2.4.2 if there's an error with your elastic search or if it's not running, then no categories will show. Fix it and run upgrade, di:compile, clear cache again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.