-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Interceptor::addSortFilterParameters() in /var/ /Plugin/LayerPlugin.php:78 #330
Comments
Same in here. Magento 2.1.2 & 2.1.4 |
Hi, Most of times, this kind of error occured when using both ElasticSuite and a module modifying the layout of the faceting together. Any modules / custom themes in your install ? |
Sure there is custom theme and layout like other many implementations. |
yes, I also use a custom theme. But that a usual way, most shop's have own custom themes. In my case this error thrown direct on the first /index.php page. |
This error is due to the fact that the Product Collection getting catched by the Interceptor is not an "ElasticSuite Product Collection". This can be due to several causes :
You can also check what you are getting by calling Best regards, |
I check today the settings.
This failure occures only on the main page (index.php), not in the category, search or product page. If this extension is activated, the search box is also away. After deactivating, the search box is enabled. . |
@romainruaud thanks for information. But there is not any overrides on collection classes except ElasticSuite and search engine is set as ElasticSuite. fyi |
Please look at first Message, that's the full stack trace. I use one of the most sold Magento Themes in Themeforest. Called Ultimo https://goo.gl/oNYW60 |
Hello @anethum , sorry but what you did post is not the full stack trace, just the error message. Please ask your development team to obtain the full stack trace which should figure all PHP calls that occured before reaching the erroneous statement. Regarding the Ultimo theme, it is well known that this module does bad things on the layout and makes the search box disappear as spoken in #272 Could you also attached the complete list of third party extensions you are using ? Regards |
@anethum @rbostan I am able to reproduce this one on a category page. This occurs if I am browsing a category which is set to have All categories should have the But for sure, this piece of code does not have any effect on all categories created after the module install. Can you please try to switch your categories to Best regards |
Maybe due to the number of issues a status page which summarizes or aggregates data such as website_id , is_anchor values, attributes stats could be generated during each index - it would help expose the little quirks like this a lot faster! I mentioned is_anchor=1 in october 2016 causing this same error! |
Hello @southerncomputer , I noticed that you encountered same issue in #170 but I did not see that you mentioned it was due to the is_anchor value :( Sorry about that, we would have gain much time troubleshooting this issue... We will provide a FAQ containing the most encountered issues or behavior to help people troubleshooting. But that's right, we may think about a warning on is_anchor values and also add it more clearly to the documentation. Best regards and thank you again for the help you provide to other users here. |
Hello, the failure occures only on the start page of the shop. Not on product or category view. no error logs are recorded in the log files. following modules are installed:
|
Hi @anethum, Our module does not have any side effects on the homepage. |
@afoucret @romainruaud If I commented elasticsuite-catalog/Plugin/LayerPlugin.php:78 I suspect that this issue may be related (or source of) with #344 Fyi |
Hello @rbostan please attach the complete stacktrace of the error. I have took a look on Infortis theme and saw many bad things especially one in the Block/Product/ProductList/Featured.php I am amble to reproduce your error if I put this block on my homepage (or anywhere else). On this block, they do this dirty thing :
This should rather be :
Doing this fix the error by my side. Feel free to communicate this quickfix to them if you want, Best regards, |
Exactly same trace as @anethum's Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor::addSortFilterParameters() in /home/domain/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php:78 Stack trace: #0 /home/domain/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php(59): Smile\ElasticsuiteCatalog\Plugin\LayerPlugin->setSortParams(Object(Magento\Catalog\Model\Layer\Category\Interceptor), Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor)) #1 /home/domain/public_html/vendor/magento/framework/Interception/Interceptor.php(123): Smile\ElasticsuiteCatalog\Plugin\LayerPlugin->beforePrepareProductCollection(Object(Magento\Catalog\Model\Layer\Category\Interceptor), Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor)) #2 /home/domain/public_html/var/generation/Magento/Catalog/Model/Layer/Category/Interceptor.php(26): Magento\Catalog\Model\Layer\Category\Interceptor in /home/domain/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php on line 78 |
Hello, the stack trace you give is incomplete, you should have many more calls occuring before passing on the Category/Interceptor one. Did you try to check the point I indicated on your Infortis module also ? regards |
I'm not using Infortis. That is anethum's module list 😃 Default sort (sort by position) is broken in category pages. I could't get correct order. But you said it is not related with this module in #344 Home page working well. |
@rbostan then you have something which is instantiating a layer and using it wrongly on the product view page. Could you please post the list of all third party modules you are using ? And also check what is added in your product detail page which is not here on a standard M2 luma theme. Also please check for calls to "prepareProductCollection" which could be processed in third party modules or custom code. And please, attach the complete stack trace of the error you are having, not only the first 2 rows. Best regards, |
The issues which were due to a mis-usage of Layer have been fixed in latest 2.3.3 release. I close this issue, feel free to open a new one if you are still facing problems. Best regards, |
Hi all, |
but to show products only from the given category you should add a categoryFilter
|
We are using Infortis Ultimo and would love to use elasticsuite. Sadly they didn't provide any fixes. Could I maybe fix their issue somehow? Would that be a viable solution? |
Same problem on WeltPixel Pearl theme.
|
If a third party module is over-riding the Magento FullText to its own e.g. Can we edit it to over-ride a Smile-SA/elasticsuite FullText module? Would that fix it? |
@LiamKarlMitchell , are you able to fix WeltPixel\LayeredNavigation issue? I am also facing the same one, my error is |
Have you fixed this issue with the WeltPixel theme? I'm having the same issue. |
Does Anybody Had solutions for these issue. I had same kind of error. Please anybody had solved can answer. Fatal error: Uncaught Error: Call to undefined method WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor::addSortFilterParameters() in /srv/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php:87 |
Sorry I don't recall how we sorted it, might have disabled weltpixels layered navigation or contacted welt pixel support for a fix? |
@LiamKarlMitchell Thanks for Response. |
@pranayKdev11 Looked up the error in our ticket system to see what we did.
Note: Still have issue with autocomplete type-ahead search options not being clickable but they do show up now. |
Hello,
if I enable this module I get a 500 error on the frontend with following error message
Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor::addSortFilterParameters() in /var/www/xxx/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php:78 Stack trace: #0 /var/www/xxx/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php(59): Smile\ElasticsuiteCatalog\Plugin\LayerPlugin->setSortParams(Object(Magento\Catalog\Model\Layer\Category\Interceptor), Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor)) #1 /var/www/xxx/htdocs/vendor/magento/framework/Interception/Interceptor.php(123): Smile\ElasticsuiteCatalog\Plugin\LayerPlugin->beforePrepareProductCollection(Object(Magento\Catalog\Model\Layer\Category\Interceptor), Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor)) #2 /var/www/virtual/xxx/var/generation/Magento/Catalog/Model/Layer/Category/Interceptor.php(52): Magento\ in /var/www/xxx/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Plugin/LayerPlugin.php on line 78
Following Versions are used:
elasticsuite 2.3.0 and 2.3.1
magento 2.1.3
php 7
The text was updated successfully, but these errors were encountered: