Hi I installed the Smile/Elasticsuite on my development enviroment and I'm getting some injection problemns with FilterList class injection on Amasty Improved Layered Navigation Community 2.2.0 classes. The Amasty module uses the type Amasty\Shopby\Model\Layer\FilterList that extends Layer\FilterList as ElasticSuit FilerList does. The Amasty module is receiving Smile\ElasticsuiteCatalog\Model\Layer\FilterList but it is expecting Amasty\Shopby\Model\Layer\FilterList.
Do you have any idea how to fix this issue ? I already oppened a support ticket on module producer to verify.
Magento Version : 2.2.0
ElasticSuite Version : 2.3.1
Environment : Developer Mode
Third party modules : Amasty Improved Layered Navigation Community 2.2.0
2017/10/04 21:13:23 [error] 19613#0: *1354 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 6 passed to Amasty\Shopby\Helper\Data::__construct() must be an instance of Amasty\Shopby\Model\Layer\FilterList, instance of Smile\ElasticsuiteCatalog\Model\Layer\FilterList given, called in /var/www/agvalue/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111 and defined in /var/www/agvalue/app/code/Amasty/Shopby/Helper/Data.php:52
Stack trace:
Hello @aandrade1234
First, if you are using Magento 2.2, you have to use elasticsuite >=2.3.8.
So please upgrade to the latest 2.3.8 version.
About compatibility with Amasty module, I'm afraid that we cannot provide support for third-party modules integration with Elasticsuite, especially modules which are also extending/overriding layer related objects.
You may try to override the Elasticsuite "FilterList" and make it extends the Amasty one, it could work, but since I do not have access to the sources of this module I cannot be sure this is the proper way to do, and I cannot guarantee there won't be any additional tasks to perform in order to have the both modules working properly.
Regards,
Hi @romainruaud thanks for your quick return. I tried to extend the Smile FilterList using the Amasty FilterList. It worked for this method. But I started to get other errors. The Amasty support answered me that the extensions are very incompatible and there will be very hard to make both work together.
That does not surprise me, since we are both working on similar parts of Magento (Layer, filters, and so on...).
I agree that it would be complicated to merge perfectly the both modules.
Best regards, I close the issue since it's related to a third party module.
@aandrade1234 Did you find any other workaround for this issue...?
I'm very interested in any other workaround for this issue too.
We get this (I guess) issue now too, since we use both of these extensions. This situation is not very great.
Has anyone come up with a good workaround for this issue?
Think would have to take it up with Amasty support and pay them to develop it further with Elastic Suite support but looks like they have a preference for you to purchase their own Elastic Search plugin.
https://amasty.com/knowledge-base/navigation-with-wyomind-elasticsearch-compatibility.html
We are having the same issue. I've created a support ticket at Amasty to see if an solution can be made/found for this.
Most helpful comment
@aandrade1234 Did you find any other workaround for this issue...?