Open ioweb-gr opened 3 days ago
@ioweb-gr,
I can try to reproduce this issue, but not sure if I have any luck, cause it looks like this is something specific for your environment.
As for start points for debugging, you can enable logging ES queries in: Stores -> Configuration -> Elasticsuite -> Base settings -> Elasticsearch Client -> Enable Debug Mode
and the queries that are being sent to ES when you are browsing categories will be logged into the system.log
.
Have you checked errors in Magento logs and in the console of the Dev tools in your browser?
BR, Vadym
Hi @vahonc I know this won't be easy to troubleshoot however there doesn't seem to be any starting point where I can even begin to check at.
I enabled debug mode
This is what was added in system.log after clicking show more.
Exception log is clean There are no console errors just that the controller returns an empty array.
Could you point me to how the \Smile\ElasticsuiteCatalog\Model\Attribute\LayeredNavAttributesProvider::$attributes property should be populated and when?
By debugging after the controller is invoked, I ended up finding that it all happens because this property is empty. So If I can find where it should be populated perhaps we can nail the culprit.
Moreover it occurs with all modules disabled and luma active so I don't think it's a conflict this time.
Similar to issue #2998 I'm also getting an empty array for the items. After debugging I see in function
\Smile\ElasticsuiteCatalog\Model\Attribute\LayeredNavAttributesProvider::isLayeredNavAttribute
it returns always false. The problem comes from\Smile\ElasticsuiteCatalog\Model\Attribute\LayeredNavAttributesProvider::getList
function which checks the property$this->attributes
which is an empty array not yet populated.So I'm assuming there's some sort of initialization that's failing in my case.
If you could provide some insight as to how and when the
attributes
property is initialized with data, I could dig furtherI also don't see anything in di.xml that could have added values to the array or anything that's invoked before it's injected.
Preconditions
Magento Version :2.4.4
ElasticSuite Version : 2.10.23.2
Environment : Developer
Third party modules :
Steps to reproduce
Expected result
Actual result
https://github.com/user-attachments/assets/b464a2b7-37e4-4f4b-9590-16d92174ddf5