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(115): Amasty\Shopby\Model\Layer\FilterList->getFilters() #35 /var/www/html/app/code/Amasty/ShopbySeo/Model/Customizer/Category/Seo.php(377): Magento\LayeredNavigation\Block\Navigation->getFilters() #36 /var/www/html/app/code/Amasty/ShopbySeo/Model/Customizer/Category/Seo.php(189): Amasty\ShopbySeo\Model\Customizer\Category\Seo->getAttributeValueUrl() #37 /var/www/html/app/code/Amasty/ShopbySeo/Model/Customizer/Category/Seo.php(281): Amasty\ShopbySeo\Model\Customizer\Category\Seo->getCategoryModeCanonical() #38 /var/www/html/app/code/Amasty/ShopbyBase/Model/Customizer/Category.php(50): Amasty\ShopbySeo\Model\Customizer\Category\Seo->prepareData() #39 /var/www/html/app/code/Amasty/ShopbyBase/Model/Customizer/Category.php(61): Amasty\ShopbyBase\Model\Customizer\Category->_modifyData() #40 /var/www/html/app/code/Amasty/ShopbyBase/Plugin/Catalog/Block/Category/View.php(47): Amasty\ShopbyBase\Model\Customizer\Category->prepareData() #41 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(146): Amasty\ShopbyBase\Plugin\Catalog\Block\Category\View->afterGetCurrentCategory() #42 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Block\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #43 /var/www/html/generated/code/Magento/Catalog/Block/Category/View/Interceptor.php(32): Magento\Catalog\Block\Category\View\Interceptor->___callPlugins() #44 /var/www/html/vendor/magento/module-catalog/Block/Category/View.php(64): Magento\Catalog\Block\Category\View\Interceptor->getCurrentCategory() #45 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(287): Magento\Catalog\Block\Category\View->_prepareLayout() #46 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Element\AbstractBlock->setLayout() #47 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Block\Category\View\Interceptor->___callParent() #48 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Block\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #49 /var/www/html/generated/code/Magento/Catalog/Block/Category/View/Interceptor.php(50): Magento\Catalog\Block\Category\View\Interceptor->___callPlugins() #50 /var/www/html/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Catalog\Block\Category\View\Interceptor->setLayout() #51 /var/www/html/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block->process() #52 /var/www/html/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process() #53 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->generateElements() #54 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent() #55 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #56 /var/www/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(32): Magento\Framework\View\Layout\Interceptor->___callPlugins() #57 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements() #58 /var/www/html/vendor/magento/framework/View/Page/Builder.php(65): Magento\Framework\View\Layout\Builder->generateLayoutBlocks() #59 /var/www/html/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks() #60 /var/www/html/vendor/magento/framework/View/Page/Config.php(224): Magento\Framework\View\Layout\Builder->build() #61 /var/www/html/vendor/magento/framework/View/Page/Config.php(587): Magento\Framework\View\Page\Config->build() #62 /var/www/html/vendor/magento/framework/View/Page/Config.php(545): Magento\Framework\View\Page\Config->getElementAttribute() #63 /var/www/html/vendor/magento/module-catalog/Controller/Category/View.php(249): Magento\Framework\View\Page\Config->addBodyClass() #64 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Controller\Category\View->execute() #65 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Category\View\Interceptor->___callParent() #66 /var/www/html/app/code/Sm/ShopBy/Plugin/Category/View.php(26): Magento\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #67 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Sm\ShopBy\Plugin\Category\View->aroundExecute() #68 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #69 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() #70 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #71 /var/www/html/generated/code/Magento/Catalog/Controller/Category/View/Interceptor.php(23): Magento\Catalog\Controller\Category\View\Interceptor->___callPlugins() #72 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Category\View\Interceptor->execute() #73 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #74 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Category\View\Interceptor->___callParent() #75 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #76 /var/www/html/generated/code/Magento/Catalog/Controller/Category/View/Interceptor.php(32): Magento\Catalog\Controller\Category\View\Interceptor->___callPlugins() #77 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\Catalog\Controller\Category\View\Interceptor->dispatch() #78 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest() #79 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #80 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #81 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #82 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #83 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #84 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #85 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callParent() #86 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->Magento\Framework\Interception\{closure}() #87 /var/www/html/generated/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin/Interceptor.php(23): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callPlugins() #88 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->aroundDispatch() #89 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #90 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #91 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #92 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #93 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #94 {main}