You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We faced with a next problem.
For not default Website we created new Category by using Magento REST api. Category was successfully created, but when we are trying ti make a reindex or save any product in backend, we getting next error:
Notice: Undefined offset: 79 in /home/dev/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php on line 93
Just had a look at the code a little, and see that select query tries to get default names of the category:
->where('default_value.store_id = ?', 0)
But for those categories default name is not existed in database.
Create new category via API for NOT default Website
Try to save any product
Expected result
Success message
Actual result
Notice: Undefined offset: 79 in /home/dev/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php on line 93
The text was updated successfully, but these errors were encountered:
Not sure if this is related but I have API generated categories and I'm getting this when I try to reindex via the CLI:
# bin/magento index:reindex catalogsearch_fulltext
Catalog Search indexer process unknown error:
Warning: Invalid argument supplied for foreach() in /home/magento2/magento2/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/CategoryData.php on line 93
Hello
We faced with a next problem.
For not default Website we created new Category by using Magento REST api. Category was successfully created, but when we are trying ti make a reindex or save any product in backend, we getting next error:
Notice: Undefined offset: 79 in /home/dev/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ResourceModel/Product/Indexer/Fulltext/Datasource/CategoryData.php on line 93
Just had a look at the code a little, and see that select query tries to get default names of the category:
->where('default_value.store_id = ?', 0)
But for those categories default name is not existed in database.
Can you please check and fix that if possible
Preconditions
Magento Version : 2.1.6
Elasticsuite version: 2.3.2.1
Environment : default mode
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: