-
Notifications
You must be signed in to change notification settings - Fork 340
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 happening in Categories Admin #877
Comments
Close since PR #880 have been merged in branch 2.5.9 and a workaround is proposed. |
Hello, Stack Trace: #0 /vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Preview.php(75): Smile\ElasticsuiteVirtualCategory\Model\Preview->getQueryFilter() #1 /vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ProductSorter/AbstractPreview.php(148): Smile\ElasticsuiteVirtualCategory\Model\Preview->prepareProductCollection(Object(Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection\Interceptor)) #2 /vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ProductSorter/AbstractPreview.php(158): Smile\ElasticsuiteCatalog\Model\ProductSorter\AbstractPreview->getProductCollection() #3 /vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/ProductSorter/ in /vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Preview.php on line 105` Please suggest |
Can confirm. |
Hey Guys, debugged myself into this and found a possible bug/solution. Removing this preference, clearing all caches and generated classes, this works like a charm ^^ |
We have a Magento 2.2 site, with Elastic Suite. Not sure why, but we have had this error a couple of times.
We don’t have a sistematic way to reproduce it. When the error starts happening, it happens all the time.
to explain it a bit better: it happened once in our QA environment, and we are not sure why, but it “solved itself”. Now we are installing our website in the environment that will be production, and it is ocurring again.
What we can tell you are details that we see when the problem occurs. Hope this helps to understand it
Magento Version : 2.2.0 EE
ElasticSuite Version : 2.5
Environment : Production
Third party modules :nono
Steps to reproduce
1 Go to Menu, catalog, categories.
2. We see a stuck page
3. Opening the browser inspector, we see the following errors:
4. Stack Trace:
Error message
Error: Uncaught exception 'Error' with message 'Call to a member function getCategorySearchQuery() on null' in /var/www/site/releases/vdevelop_103/vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Preview.php:103
Sample stack trace
…/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/
Preview.php (73)
…csuite/src/module-elasticsuite-catalog/Model/ProductSorter/
AbstractPreview.php (140)
…csuite/src/module-elasticsuite-catalog/Model/ProductSorter/
AbstractPreview.php (150)
…csuite/src/module-elasticsuite-catalog/Model/ProductSorter/
AbstractPreview.php (83)
…lasticsuite-virtual-category/Controller/Adminhtml/Category/Virtual/
Preview.php (71)
…/www/site/releases/vdevelop_103/vendor/magento/framework/App/Action/
Action.php (107)
…ite/releases/vdevelop_103/vendor/magento/module-backend/App/
AbstractAction.php (229)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (58)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (138)
…develop_103/vendor/magento/module-backend/App/Action/Plugin/
Authentication.php (143)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
in Magento\Backend\App\Action\Plugin\Authentication::aroundDispatch called at /var/www/site/releases/vdevelop_103/vendor/magento/framework/Interception/Interceptor.php
Interceptor.php (135)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (153)
…eVirtualCategory/Controller/Adminhtml/Category/Virtual/Preview/
Interceptor.php (26)
…ww/site/releases/vdevelop_103/vendor/magento/framework/App/
FrontController.php (55)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (58)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (138)
…te/releases/vdevelop_103/vendor/magento/framework/Interception/
Interceptor.php (153)
…velop_103/generated/code/Magento/Framework/App/FrontController/
Interceptor.php (26)
…d at /var/www/site/releases/vdevelop_103/vendor/magento/framework/App/
Http.php (135)
…/var/www/site/releases/vdevelop_103/vendor/magento/framework/App/
Bootstrap.php (256)
…App\Bootstrap::run called at /var/www/site/releases/vdevelop_103/pub/
index.php (37)
The text was updated successfully, but these errors were encountered: