cancel
Showing results for 
Search instead for 
Did you mean: 

Error loading the category page

SOLVED

Error loading the category page


error:
1 exception(s): Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Search\Model\EngineResolver Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Search\Model\EngineResolver <pre>#1 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150] #2 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79] #3 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150] #4 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79] #5 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:150] #6 Magento\Framework\ObjectManager\Factory\Compiled->get() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:79] #7 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70] #8 Magento\Framework\ObjectManager\ObjectManager->get() called at [vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php:207] #9 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->__construct() called at [generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php:14] #10 Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121] #11 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:108] #12 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56] #13 Magento\Framework\ObjectManager\ObjectManager->create() called at [generated/code/Magento/Catalog/Model/ResourceModel/Product/CollectionFactory.php:43] #14 Magento\Catalog\Model\ResourceModel\Product\CollectionFactory->create() called at [vendor/magento/module-catalog-search/Model/Layer/Category/ItemCollectionProvider.php:36] #15 Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider->getCollection() called at [vendor/magento/module-catalog/Model/Layer.php:146] #16 Magento\Catalog\Model\Layer->getProductCollection() called at [app/code/MGS/Ajaxlayernavigation/Model/Layer/Filter/Category.php:44] #17 MGS\Ajaxlayernavigation\Model\Layer\Filter\Category->apply() called at [vendor/magento/module-layered-navigation/Block/Navigation.php:70] #18 Magento\LayeredNavigation\Block\Navigation->_prepareLayout() called at [vendor/magento/framework/View/Element/AbstractBlock.php:287] #19 Magento\Framework\View\Element\AbstractBlock->setLayout() called at [vendor/magento/framework/View/Layout/Generator/Block.php:149] #20 Magento\Framework\View\Layout\Generator\Block->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:81] #21 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:352] #22 Magento\Framework\View\Layout->generateElements() called at [vendor/magento/framework/Interception/Interceptor.php:58] #23 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #24 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #25 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:91] #26 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129] #27 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55] #28 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65] #29 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224] #30 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:587] #31 Magento\Framework\View\Page\Config->getElementAttribute() called at [vendor/magento/framework/View/Page/Config.php:545] #32 Magento\Framework\View\Page\Config->addBodyClass() called at [app/code/MGS/Mpanel/Controller/Category/View.php:247] #33 MGS\Mpanel\Controller\Category\View->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58] #34 MGS\Mpanel\Controller\Category\View\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #35 MGS\Mpanel\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php:51] #36 Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135] #37 MGS\Mpanel\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #38 MGS\Mpanel\Controller\Category\View\Interceptor->___callPlugins() called at [generated/code/MGS/Mpanel/Controller/Category/View/Interceptor.php:26] #39 MGS\Mpanel\Controller\Category\View\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111] #40 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #41 MGS\Mpanel\Controller\Category\View\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #42 MGS\Mpanel\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #43 MGS\Mpanel\Controller\Category\View\Interceptor->___callPlugins() called at [generated/code/MGS/Mpanel/Controller/Category/View/Interceptor.php:39] #44 MGS\Mpanel\Controller\Category\View\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186] #45 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118] #46 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58] #47 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #48 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99] #49 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #50 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75] #51 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135] #52 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #53 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26] #54 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116] #55 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:263] #56 Magento\Framework\App\Bootstrap->run() called at [index.php:39] </pre>
I've already tried it with:
php bin/magento setup:di:compile
php  bin/magento  cache:clean

 what could be the problem?

magento 2.4.0 on PHP 7.4.12 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Error loading the category page

Hello @chrisi303 

 

Seems like Elasticsearch on your server is not working, Please check once with your service provider if elasticsearch is working or not.

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

View solution in original post

4 REPLIES 4

Re: Error loading the category page

Hello @chrisi303 

 

Seems like Elasticsearch on your server is not working, Please check once with your service provider if elasticsearch is working or not.

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Error loading the category page

I'm also having the same issues targetpayandbenefits

Re: Error loading the category page

Good morning, yes it was the elasticsearch it was deactivated.

many thanks

@gaurav_harsh1 

Re: Error loading the category page

I have not solved anything because I have not understood the solution. Can you explain better?