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/Helper/Data.php(116): Amasty\Shopby\Model\Layer\FilterList->getAllFilters() #34 /var/www/html/app/code/Amasty/ShopbySeo/Helper/Meta.php(148): Amasty\Shopby\Helper\Data->getSelectedFiltersSettings() #35 /var/www/html/app/code/Amasty/ShopbySeo/Helper/Meta.php(104): Amasty\ShopbySeo\Helper\Meta->getRelevanceFilters() #36 /var/www/html/app/code/Amasty/ShopbySeo/Plugin/Framework/View/Page/Config.php(68): Amasty\ShopbySeo\Helper\Meta->getIndexTagValue() #37 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\ShopbySeo\Plugin\Framework\View\Page\Config->aroundAddRemotePageAsset() #38 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Page\Config\Interceptor->Magento\Framework\Interception\{closure}() #39 /var/www/html/generated/code/Magento/Framework/View/Page/Config/Interceptor.php(59): Magento\Framework\View\Page\Config\Interceptor->___callPlugins() #40 /var/www/html/vendor/magento/module-catalog/Helper/Product/View.php(151): Magento\Framework\View\Page\Config\Interceptor->addRemotePageAsset() #41 /var/www/html/vendor/magento/module-catalog/Helper/Product/View.php(300): Magento\Catalog\Helper\Product\View->preparePageMetadata() #42 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Helper\Product\View->prepareAndRender() #43 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Helper\Product\View\Interceptor->___callParent() #44 /var/www/html/app/code/Amasty/SeoToolKit/Plugin/Catalog/Helper/Product/ViewPlugin.php(68): Magento\Catalog\Helper\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #45 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\SeoToolKit\Plugin\Catalog\Helper\Product\ViewPlugin->aroundPrepareAndRender() #46 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Helper\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #47 /var/www/html/generated/code/Magento/Catalog/Helper/Product/View/Interceptor.php(32): Magento\Catalog\Helper\Product\View\Interceptor->___callPlugins() #48 /var/www/html/vendor/magento/module-catalog/Controller/Product/View.php(140): Magento\Catalog\Helper\Product\View\Interceptor->prepareAndRender() #49 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Controller\Product\View->execute() #50 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent() #51 /var/www/html/app/code/Amasty/SeoSingleUrl/Plugin/Catalog/Controller/Product/View.php(88): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\SeoSingleUrl\Plugin\Catalog\Controller\Product\View->aroundExecute() #53 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #54 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() #55 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #56 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(23): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins() #57 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Product\View\Interceptor->execute() #58 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #59 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent() #60 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #61 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(32): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins() #62 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\Catalog\Controller\Product\View\Interceptor->dispatch() #63 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest() #64 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #65 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #66 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #67 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #68 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #69 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #70 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callParent() #71 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->Magento\Framework\Interception\{closure}() #72 /var/www/html/generated/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin/Interceptor.php(23): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->___callPlugins() #73 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin\Interceptor->aroundDispatch() #74 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #75 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #76 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #77 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #78 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #79 {main}