Error: Call to a member function dispatch() on null in /var/www/html/vendor/magento/framework/Model/AbstractModel.php:567 Stack trace: #0 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(595): Magento\Framework\Model\AbstractModel->_beforeLoad() #1 /var/www/html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(346): Magento\Framework\Model\AbstractModel->beforeLoad() #2 /var/www/html/app/code/Amasty/ShopbyBase/Model/FilterDataLoader/Attribute.php(40): Magento\Framework\Model\ResourceModel\Db\AbstractDb->load() #3 /var/www/html/app/code/Amasty/ShopbyBase/Model/FilterDataLoader.php(42): Amasty\ShopbyBase\Model\FilterDataLoader\Attribute->load() #4 /var/www/html/app/code/Amasty/ShopbyBase/Model/FilterSettingRepository.php(141): Amasty\ShopbyBase\Model\FilterDataLoader->load() #5 /var/www/html/app/code/Amasty/ShopbyBase/Model/FilterSettingRepository.php(131): Amasty\ShopbyBase\Model\FilterSettingRepository->load() #6 /var/www/html/app/code/Amasty/ShopbyBase/Model/FilterSetting/FilterResolver.php(53): Amasty\ShopbyBase\Model\FilterSettingRepository->loadByAttributeCode() #7 /var/www/html/app/code/Amasty/Shopby/Helper/FilterSetting.php(204): Amasty\ShopbyBase\Model\FilterSetting\FilterResolver->resolveByAttribute() #8 /var/www/html/app/code/Amasty/Shopby/Model/Search/RequestGenerator.php(55): Amasty\Shopby\Helper\FilterSetting->getSettingByAttribute() #9 /var/www/html/app/code/Amasty/Shopby/Model/Search/RequestGenerator.php(37): Amasty\Shopby\Model\Search\RequestGenerator->generateFakeRequest() #10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Amasty\Shopby\Model\Search\RequestGenerator->generate() #11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Amasty\Shopby\Model\Search\RequestGenerator\Interceptor->___callParent() #12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Amasty\Shopby\Model\Search\RequestGenerator\Interceptor->Magento\Framework\Interception\{closure}() #13 /var/www/html/generated/code/Amasty/Shopby/Model/Search/RequestGenerator/Interceptor.php(23): Amasty\Shopby\Model\Search\RequestGenerator\Interceptor->___callPlugins() #14 /var/www/html/app/code/Amasty/Shopby/Plugin/Framework/Search/Request/Config/FilesystemReader.php(29): Amasty\Shopby\Model\Search\RequestGenerator\Interceptor->generate() #15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(146): Amasty\Shopby\Plugin\Framework\Search\Request\Config\FilesystemReader->afterRead() #16 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\Search\Request\Config\FilesystemReader\Interceptor->Magento\Framework\Interception\{closure}() #17 /var/www/html/generated/code/Magento/Framework/Search/Request/Config/FilesystemReader/Interceptor.php(23): Magento\Framework\Search\Request\Config\FilesystemReader\Interceptor->___callPlugins() #18 /var/www/html/vendor/magento/framework/Config/Data.php(105): Magento\Framework\Search\Request\Config\FilesystemReader\Interceptor->read() #19 /var/www/html/vendor/magento/framework/Config/Data.php(93): Magento\Framework\Config\Data->initData() #20 /var/www/html/vendor/magento/framework/Search/Request/Config.php(34): Magento\Framework\Config\Data->__construct() #21 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Search\Request\Config->__construct() #22 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() #23 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create() #24 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get() #25 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create() #26 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get() #27 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create() #28 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get() #29 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create() #30 /var/www/html/vendor/magento/module-catalog/Model/Layer/FilterList.php(86): Magento\Framework\ObjectManager\ObjectManager->create() #31 /var/www/html/app/code/Amasty/Shopby/Model/Layer/FilterList.php(164): Magento\Catalog\Model\Layer\FilterList->getFilters() #32 /var/www/html/app/code/Amasty/Shopby/Model/Layer/FilterList.php(148): Amasty\Shopby\Model\Layer\FilterList->generateAllFilters() #33 /var/www/html/app/code/Amasty/Shopby/Model/Layer/FilterList.php(129): Amasty\Shopby\Model\Layer\FilterList->getAllFilters() #34 /var/www/html/vendor/magento/module-layered-navigation/Block/Navigation.php(69): Amasty\Shopby\Model\Layer\FilterList->getFilters() #35 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(287): Magento\LayeredNavigation\Block\Navigation->_prepareLayout() #36 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout() #37 /var/www/html/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block->process() #38 /var/www/html/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process() #39 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->generateElements() #40 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent() #41 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #42 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(32): Magento\Framework\View\Layout\Interceptor->___callPlugins() #43 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements() #44 /var/www/html/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks() #45 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks() #46 /var/www/html/vendor/magento/framework/View/Page/Config.php(224): Magento\Framework\View\Layout\Builder->build() #47 /var/www/html/vendor/magento/framework/View/Page/Config.php(237): Magento\Framework\View\Page\Config->build() #48 /var/www/html/vendor/magento/framework/App/View.php(170): Magento\Framework\View\Page\Config->publicBuild() #49 /var/www/html/vendor/magento/framework/App/View.php(114): Magento\Framework\App\View->loadLayoutUpdates() #50 /var/www/html/vendor/magento/module-catalog-search/Controller/Result/Index.php(166): Magento\Framework\App\View->loadLayout() #51 /var/www/html/vendor/magento/module-catalog-search/Controller/Result/Index.php(110): Magento\CatalogSearch\Controller\Result\Index->getNotCacheableResult() #52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\CatalogSearch\Controller\Result\Index->execute() #53 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callParent() #54 /var/www/html/app/code/Amasty/Xsearch/Plugin/CatalogSearch/Controller/Result/Index.php(80): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #55 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\Xsearch\Plugin\CatalogSearch\Controller\Result\Index->aroundExecute() #56 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #57 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() #58 /var/www/html/app/code/Sm/ShopBy/Plugin/CatalogSearch/Result.php(114): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #59 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Sm\ShopBy\Plugin\CatalogSearch\Result->aroundExecute() #60 /var/www/html/app/code/Amasty/SeoToolKit/Plugin/CatalogSearch/Controller/Result/Index.php(58): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #61 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\SeoToolKit\Plugin\CatalogSearch\Controller\Result\Index->aroundExecute() #62 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #63 /var/www/html/generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php(23): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callPlugins() #64 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\CatalogSearch\Controller\Result\Index\Interceptor->execute() #65 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #66 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callParent() #67 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogSearch\Controller\Result\Index\Interceptor->Magento\Framework\Interception\{closure}() #68 /var/www/html/generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php(32): Magento\CatalogSearch\Controller\Result\Index\Interceptor->___callPlugins() #69 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\CatalogSearch\Controller\Result\Index\Interceptor->dispatch() #70 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest() #71 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #72 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #73 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #74 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #75 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #76 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #77 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callParent() #78 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->Magento\Framework\Interception\{closure}() #79 /var/www/html/generated/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin/Interceptor.php(23): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callPlugins() #80 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->aroundDispatch() #81 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #82 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #83 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #84 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #85 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #86 {main}