You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Call to a member function getCategorySearchQuery() on null vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Layer/Filter/Category.php on line 98
#205
Closed
mantonuk opened this issue
Nov 14, 2016
· 3 comments
debugged myself into this and found a possible bug/solution.
In my projekt 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 ^^
I got Fatal error on M2.1.2 and "Smile_ES' 2.2.2.
Issue come if 'catalog category flat data' == enabled. (all ok if has disabled)
smile/elasticsuite/src/module-elasticsuite-virtual-category/Model/Layer/Filter/Category.php
96 $query = $category->getVirtualRule()->getCategorySearchQuery($category);
method on line 98 retrn wrong object.
$category->getVirtualRule()
return
string(61) "Smile\ElasticsuiteVirtualCategory\Model\Layer\Filter\Category" ('catalog category flat data' == enabled)
**instead of **
"Smile\ElasticsuiteVirtualCategory\Model\Rule" 'catalog category flat data' == disabled)
The text was updated successfully, but these errors were encountered: