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

Incompatibility with MagePlaza's Layered Navigation #18

Open
AndyJAllen opened this issue Jul 29, 2021 · 2 comments
Open

Incompatibility with MagePlaza's Layered Navigation #18

AndyJAllen opened this issue Jul 29, 2021 · 2 comments

Comments

@AndyJAllen
Copy link

AndyJAllen commented Jul 29, 2021

Environment:

  • MageWorx SearchSuiteAutocomplete 2.1.11
  • Newest version of Porto theme which comes with LayeredNavigation
  • Magento 2.3.7
  • PHP 7.4
  • ElasticSearch 7.13.4

Error:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Sorry, something went wrong. You can find out more in the error log.

Exception #0 (Magento\Framework\Exception\LocalizedException): Sorry, something went wrong. You can find out more in the error log.
<pre>#1 Magento\Framework\Data\Collection\AbstractDb->_renderFilters() called at [app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php:519]
#2 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection->_renderFilters() called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:923]
#3 Magento\Eav\Model\Entity\Collection\AbstractCollection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:832]
#4 Magento\Catalog\Model\ResourceModel\Product\Collection->load() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#7 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() called at [generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php:429]
#8 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->load() called at [vendor/magento/framework/Data/Collection.php:838]
#9 Magento\Framework\Data\Collection->getIterator() called at [generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php:1948]
#10 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->getIterator() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search/Product.php:103]
#11 MageWorx\SearchSuiteAutocomplete\Model\Search\Product->getResponseData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search.php:48]
#12 MageWorx\SearchSuiteAutocomplete\Model\Search->getData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index.php:76]
#13 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index->execute() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:24]
#14 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#15 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#16 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#17 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#18 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callPlugins() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:39]
#19 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]
#20 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]
#21 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#22 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#23 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#24 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#25 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:69]
#26 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#28 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#29 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#30 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#31 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#32 Magento\Framework\App\Bootstrap->run() called at [index.php:39]
</pre>
@sergei-sss
Copy link
Member

sergei-sss commented Aug 13, 2021

@AndyJAllen We have checked using the free version of MagePlaza's Layered Navigation - 4.0.2 and didn't face exception.
Please provide more information about MagePlaza's Layered Navigation extension from porto theme.

@Kerolusnasser
Copy link

i have solved this issue by changing this line in app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php
from
if ($this->request->getFullActionName() === 'catalogsearch_result_index') {
to
if ($this->request->getFullActionName() === 'catalogsearch_result_index' || strtolower($this->request->getFullActionName()) === 'mageworx_searchsuiteautocomplete_ajax_index') {

Now it's working :)

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

3 participants