Skip to content
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

Closed
nico-gandara opened this issue Apr 17, 2018 · 5 comments
Closed

Error happening in Categories Admin #877

nico-gandara opened this issue Apr 17, 2018 · 5 comments
Assignees

Comments

@nico-gandara
Copy link

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 1_catalog_errorsmile
3. Opening the browser inspector, we see the following errors: 2_catalog_errorsmile
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)

@afoucret
Copy link
Contributor

Hi @ngandara-summa,

Think your problem is a duplicate of #748, #787 and #836.

Can you confirm increasing max_input_vars solve it ?

@afoucret
Copy link
Contributor

Close since PR #880 have been merged in branch 2.5.9 and a workaround is proposed.

@shrinet
Copy link

shrinet commented Mar 6, 2019

Hello,
I am still getting this error, my environment is
Magento Version : 2.2.7 CE
ElasticSearch Version: 5.6.15
ElasticSuite Version : 2.6.0
Environment : Production

Stack Trace:
`[06-Mar-2019 22:11:12 UTC] PHP Fatal error: Uncaught Error: Call to a member function getCategorySearchQuery() on null in /vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Preview.php:105
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

@ulftietze
Copy link

Can confirm.

@ulftietze
Copy link

Hey Guys,

debugged myself into this and found a possible bug/solution.
In my project i was extending the Magento\Catalog\Model\Category and replaced it with a <preference .../>

Removing this preference, clearing all caches and generated classes, this works like a charm ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants