Closed OvalMedia closed 6 months ago
Hi @OvalMedia,
This issue is most likely related to the Hyva theme again, because if you switch to the Luma theme, you won't have it.
You have to understand Smile team does not support this theme directly, we are only partners. Therefore, similar problems, if they are not really related to errors in the work of our module, have a low priority for us, and all we can do is to draw the attention of the Hyva team to such problems.
BR, Vadym
By default magento does not allow applying more than one option per filter (e.g. color). It is your elasticsuite module that makes multiple options possible in the first place. Example: https://demo.hyva.io/women/tops-women.html?color=50 One color (blue) is selected and it is not possible to select more. But I can manually manipulate that url: https://demo.hyva.io/women/tops-women.html?color[0]=50&color[1]=51 Magento tries to apply 2 colors at once (AND) which yields no results (of course) but there is no error message. It is Elasticsuite and/or the hyva compaibility module that renders the frontend so that the user can pick more than one option leading up to the error.
@OvalMedia,
I meant that if you will try to reproduce your issue in an environment with Magento and Elasticsuite module installed, but will use a default Magento theme, you will get the results you expect.
You can check how it works on our demo-site.
BR, Vadym
Sorry but I am completely lost here. I was under the impression that the purpose of the hyva compatibility module is that the elasticsuite module works with the hyva theme. I know that the default setup works fine, I am using it in several projects (nice work btw.). The point is that there is a compatibility module maintained by you (smile) and I found a bug but nobody seems to be responsible? I already asked about it in another thread: https://github.com/Smile-SA/elasticsuite/issues/3279 There is a gitlab but you don't seem to use it. What can I do?
I am not trying to be a nuisance. I do care, that is why I am trying to report an issue so the world can become a little better.
Hi @OvalMedia
we are definitely responsible for maintaining the Hyva compatibility module.
We'll have a look at this issue (and the others being reported on Gitlab) and provide fixes for them.
At some point I'll have to talk with Hyvä team to check if this would not rather be a better idea to migrate the repository from their Gitlab to here, so that we can be more aware of the existing issues.
Regards
Thx, I would be thrilled.
This was fixed on the Hyvä gitlab, please upgrade the compatibility module and let us know if that's OK.
Regards
@OvalMedia,
I can confirm that it's fixed,
so upgrade/re-install our compatibility module.
BR, Vadym
Works. Thank you.
Preconditions
Magento: 2.4.6-p1 with Hyva theme PHP: 8.1 Magento demo data installed
Magento Version : 2.4.6-p1
ElasticSuite Version : 2.11.6
Environment : Developer
Third party modules : none
Steps to reproduce
Expected result
Actual result
2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s), query was: SELECT
e
.,pr
.,at_color
.value
AScolor
,stock_status_index
.stock_status
ASis_salable
FROMcatalog_product_entity
ASe
INNER JOINcatalog_product_relation
ASpr
ON e.entity_id = pr.child_id INNER JOINcatalog_product_entity_int
ASat_color
ON (at_color
.entity_id
=e
.entity_id
) AND (at_color
.attribute_id
= '93') AND (at_color
.store_id
= 0) INNER JOINcataloginventory_stock_status
ASstock_status_index
ON e.entity_id = stock_status_index.product_id WHERE (pr.parent_id = '1764') AND (at_color.value = 'Blue', 'Orange') AND (stock_status_index.stock_status = 1) Exception #1 (PDOException): SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s), query was: SELECT
e
.,pr
.,at_color
.value
AScolor
,stock_status_index
.stock_status
ASis_salable
FROMcatalog_product_entity
ASe
INNER JOINcatalog_product_relation
ASpr
ON e.entity_id = pr.child_id INNER JOINcatalog_product_entity_int
ASat_color
ON (at_color
.entity_id
=e
.entity_id
) AND (at_color
.attribute_id
= '93') AND (at_color
.store_id
= 0) INNER JOINcataloginventory_stock_status
ASstock_status_index
ON e.entity_id = stock_status_index.product_id WHERE (pr.parent_id = '1764') AND (at_color.value = 'Blue', 'Orange') AND (stock_status_index.stock_status = 1)Exception #1 (PDOException): SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)