cancel
Showing results for 
Search instead for 
Did you mean: 

Got error on search!

Got error on search!

Hi every One,
I have a strange problem!
My onlineshop will break when I search word hox! all other words working!

any Idea how can I fix it?

Thanks a lot Smiley Happy

here is the error I got:

 

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Ungültige Methode MGS\InstantSearch\Block\SearchResult\ListProduct\Interceptor:: _getQuery

Exception #0 (Magento\Framework\Exception\LocalizedException): Ungültige Methode MGS\InstantSearch\Block\SearchResult\ListProduct\Interceptor:: _getQuery
#0 /home/myuser/public_html/app/code/MGS/InstantSearch/Block/SearchResult/ListProduct.php(191): Magento\Framework\DataObject->__call('_getQuery', Array)
#1 /home/myuser/public_html/app/code/MGS/InstantSearch/view/frontend/templates/search/product/list.phtml(40): MGS\InstantSearch\Block\SearchResult\ListProduct->getResultUrl()
#2 /home/myuser/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/myuser/...')
#3 /home/myuser/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(MGS\InstantSearch\Block\SearchResult\ListProduct\Interceptor), '/home/myuser/...', Array)
#4 /home/myuser/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/home/myuser/...')
#5 /home/myuser/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml()
#6 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml()
#7 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('search_result_l...')
#8 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('search_result_l...')
#9 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('search_result_l...')
#10 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('search_result_l...', true)
#11 /home/myuser/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(507): Magento\Framework\View\Layout\Interceptor->renderElement('search_result_l...', true)
#12 /home/myuser/public_html/app/code/MGS/InstantSearch/Block/Result.php(183): Magento\Framework\View\Element\AbstractBlock->getChildHtml('search_result_l...')
#13 /home/myuser/public_html/app/code/MGS/InstantSearch/view/frontend/templates/result.phtml(30): MGS\InstantSearch\Block\Result->getProductListHtml()
#14 /home/myuser/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/myuser/...')
#15 /home/myuser/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(MGS\InstantSearch\Block\Result), '/home/myuser/...', Array)
#16 /home/myuser/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/home/myuser/...')
#17 /home/myuser/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml()
#18 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml()
#19 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderBlock('mgs.instant.sea...')
#20 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('mgs.instant.sea...')
#21 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('mgs.instant.sea...')
#22 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('mgs.instant.sea...', false)
#23 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('mgs.instant.sea...', false)
#24 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('content', false)
#25 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content')
#26 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content')
#27 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', false)
#28 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('content', false)
#29 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main', false)
#30 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main')
#31 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main')
#32 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', false)
#33 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('main', false)
#34 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('columns', false)
#35 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns')
#36 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns')
#37 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', false)
#38 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('columns', false)
#39 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('main.content', false)
#40 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content')
#41 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content')
#42 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', false)
#43 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('main.content', false)
#44 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('page.wrapper', false)
#45 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper')
#46 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper')
#47 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', false)
#48 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(586): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false)
#49 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(536): Magento\Framework\View\Layout->_renderContainer('root', false)
#50 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root')
#51 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(489): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root')
#52 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true)
#53 /home/myuser/public_html/vendor/magento/framework/View/Layout.php(955): Magento\Framework\View\Layout\Interceptor->renderElement('root')
#54 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()
#55 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)
#56 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()
#57 /home/myuser/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)
#58 /home/myuser/public_html/vendor/magento/framework/View/Result/Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput()
#59 /home/myuser/public_html/vendor/magento/framework/View/Result/Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))
#60 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#61 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MGS\Mpanel\Block\Framework\Page\Interceptor->___callParent('renderResult', Array)
#62 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MGS\Mpanel\Block\Framework\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))
#63 /home/myuser/public_html/generated/code/MGS/Mpanel/Block/Framework/Page/Interceptor.php(39): MGS\Mpanel\Block\Framework\Page\Interceptor->___callPlugins('renderResult', Array, Array)
#64 /home/myuser/public_html/vendor/magento/framework/App/View.php(221): MGS\Mpanel\Block\Framework\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))
#65 /home/myuser/public_html/app/code/MGS/InstantSearch/Controller/Result/Index.php(102): Magento\Framework\App\View->renderLayout()
#66 /home/myuser/public_html/vendor/magento/framework/App/Action/Action.php(107): MGS\InstantSearch\Controller\Result\Index->execute()
#67 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#68 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(138): MGS\InstantSearch\Controller\Result\Index\Interceptor->___callParent('dispatch', Array)
#69 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MGS\InstantSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#70 /home/myuser/public_html/generated/code/MGS/InstantSearch/Controller/Result/Index/Interceptor.php(26): MGS\InstantSearch\Controller\Result\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#71 /home/myuser/public_html/vendor/magento/framework/App/FrontController.php(55): MGS\InstantSearch\Controller\Result\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#72 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#73 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#74 /home/myuser/public_html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#75 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#76 /home/myuser/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#77 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#78 /home/myuser/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#79 /home/myuser/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#80 /home/myuser/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#81 /home/myuser/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#82 /home/myuser/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#83 {main}
3 REPLIES 3

Re: Got error on search!

Hello @milad,

 

There is look like an issue in third party extension. Please disable MGS_InstantSearch extension.

To disable the extension, Run below command in magento 2 root directory

php bin/magento module:disable MGS_InstantSearch
php bin/magento setup:upgrade

After disable extension, Please clear cache and check it.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

Re: Got error on search!

Hi @milad

 

It looks like you have installed third party extension called - MGS_InstantSearch 

 

The issue is coming from MGS_InstantSearch  Extension only.

 

So here i would suggest you to raise a ticket on their MGS_InstantSearch  Provider Portal.

 

Or else for temporary solution - disable this extension by running below commands : 

 

php bin/magento module:disable MGS_InstantSearch
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush

Hope it helps !

 

 

if issue solved,Click Kudos & Accept as Solution

Re: Got error on search!

Please run a command from Magento root via SSH,

php bin/magento setup:di:compile

If a problem still occurs you need to disable the module and take support from Module provider for your issue,

Disable Module using below way,

php bin/magento module:disable MGS_InstantSearch
php bin/magento setup:upgrade
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial