TypeError: Argument 1 passed to Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\AttributeProvider::getByAttributeCode() must be of the type string, null given, called in /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch/SearchAdapter/Query/Builder/Sort.php on line 92 and defined in /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch/Model/Adapter/FieldMapper/Product/AttributeProvider.php:72 Stack trace: #0 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch/SearchAdapter/Query/Builder/Sort.php(92): Magento\Elasticsearch\Model\Adapter\FieldMapper\Product\AttributeProvider->getByAttributeCode(NULL) #1 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch/Elasticsearch5/SearchAdapter/Query/Builder.php(94): Magento\Elasticsearch\SearchAdapter\Query\Builder\Sort->getSort(Object(Magento\Framework\Search\Request)) #2 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch/Elasticsearch5/SearchAdapter/Mapper.php(66): Magento\Elasticsearch\Elasticsearch5\SearchAdapter\Query\Builder->initQuery(Object(Magento\Framework\Search\Request)) #3 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch-7/SearchAdapter/Mapper.php(40): Magento\Elasticsearch\Elasticsearch5\SearchAdapter\Mapper->buildQuery(Object(Magento\Framework\Search\Request)) #4 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-elasticsearch-7/SearchAdapter/Adapter.php(113): Magento\Elasticsearch7\SearchAdapter\Mapper->buildQuery(Object(Magento\Framework\Search\Request)) #5 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-search/Model/SearchEngine.php(42): Magento\Elasticsearch7\SearchAdapter\Adapter->query(Object(Magento\Framework\Search\Request)) #6 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Search/Search.php(85): Magento\Search\Model\SearchEngine->search(Object(Magento\Framework\Search\Request)) #7 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php(465): Magento\Framework\Search\Search->search(Object(Magento\Framework\Api\Search\SearchCriteria)) #8 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Data/Collection/AbstractDb.php(343): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFiltersBefore() #9 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php(583): Magento\Framework\Data\Collection\AbstractDb->_renderFilters() #10 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php(605): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->_renderFilters() #11 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php(154): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection->getFacetedData('brand_id') #12 /chroot/home/abbac0d0/performanceplus.com/html/app/code/TemplateMonster/ShopByBrand/Block/Brand/BrandList.php(142): Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor->getFacetedData('brand_id') #13 /chroot/home/abbac0d0/performanceplus.com/html/app/code/TemplateMonster/ShopByBrand/Block/Brand/BrandList.php(68): TemplateMonster\ShopByBrand\Block\Brand\BrandList->productCount('2') #14 /chroot/home/abbac0d0/performanceplus.com/html/app/code/TemplateMonster/ShopByBrand/Block/Brand/BrandList.php(86): TemplateMonster\ShopByBrand\Block\Brand\BrandList->getBrandCollection() #15 /chroot/home/abbac0d0/performanceplus.com/html/app/code/TemplateMonster/ShopByBrand/Block/Brand/BrandList.php(124): TemplateMonster\ShopByBrand\Block\Brand\BrandList->hasBrands() #16 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(1111): TemplateMonster\ShopByBrand\Block\Brand\BrandList->_toHtml() #17 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #18 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #19 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(566): Magento\Framework\View\Element\AbstractBlock->toHtml() #20 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Layout->_renderBlock('brand.list') #21 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('brand.list') #22 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('brand.list') #23 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('brand.list', false) #24 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('brand.list', false) #25 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('content', false) #26 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('content') #27 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content') #28 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('content', false) #29 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('content', false) #30 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('main', false) #31 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main') #32 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main') #33 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main', false) #34 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('main', false) #35 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('columns', false) #36 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('columns') #37 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('columns') #38 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('columns', false) #39 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('columns', false) #40 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('main.content', false) #41 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('main.content') #42 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.content') #43 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('main.content', false) #44 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('main.content', false) #45 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('page.wrapper', false) #46 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') #47 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') #48 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper', false) #49 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false) #50 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('page.wrapper.ou...', false) #51 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper.ou...') #52 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper.ou...') #53 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('page.wrapper.ou...', false) #54 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(594): Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper.ou...', false) #55 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(544): Magento\Framework\View\Layout->_renderContainer('root', false) #56 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(206): Magento\Framework\View\Layout->renderNonCachedElement('root') #57 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') #58 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(193): Magento\Framework\View\Layout->renderElement('root', true) #59 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Layout.php(963): Magento\Framework\View\Layout\Interceptor->renderElement('root') #60 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput() #61 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array) #62 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #63 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array) #64 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Result/Page.php(258): Magento\Framework\View\Layout\Interceptor->getOutput() #65 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor)) #66 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #67 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array) #68 /chroot/home/abbac0d0/performanceplus.com/html/app/code/Zemez/Amp/Model/Plugin/Framework/Controller/ResultInterfacePlugin.php(95): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor)) #69 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(135): Zemez\Amp\Model\Plugin\Framework\Controller\ResultInterfacePlugin->aroundRenderResult(Object(Magento\Framework\View\Result\Page\Interceptor), Object(Closure), Object(Magento\Framework\App\Response\Http\Interceptor)) #70 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor)) #71 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, NULL) #72 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #73 /chroot/home/abbac0d0/performanceplus.com/html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #74 /chroot/home/abbac0d0/performanceplus.com/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #75 /chroot/home/abbac0d0/performanceplus.com/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #76 {main}