TypeError: Argument 1 passed to Magento\Store\Model\StoreCookieManager\Interceptor::setStoreCookie() must implement interface Magento\Store\Api\Data\StoreInterface, string given, called in /var/www/test/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html/head.phtml on line 9 and defined in /var/www/test/generated/code/Magento/Store/Model/StoreCookieManager/Interceptor.php:20 Stack trace: #0 /var/www/test/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html/head.phtml(9): Magento\Store\Model\StoreCookieManager\Interceptor->setStoreCookie() #1 /var/www/test/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('/var/www/test/a...') #2 /var/www/test/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render() #3 /var/www/test/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView() #4 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #5 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #6 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #7 /var/www/test/vendor/magento/framework/View/Layout.php(566): Magento\Framework\View\Element\AbstractBlock->toHtml() #8 /var/www/test/vendor/magento/framework/View/Layout.php(542): Magento\Framework\View\Layout->_renderBlock() #9 /var/www/test/generated/code/Magento/Framework/View/Layout/Interceptor.php(149): Magento\Framework\View\Layout->renderNonCachedElement() #10 /var/www/test/vendor/magento/framework/View/Layout.php(497): Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() #11 /var/www/test/generated/code/Magento/Framework/View/Layout/Interceptor.php(140): Magento\Framework\View\Layout->renderElement() #12 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(526): Magento\Framework\View\Layout\Interceptor->renderElement() #13 /var/www/test/vendor/magento/module-theme/view/frontend/templates/html/container.phtml(7): Magento\Framework\View\Element\AbstractBlock->getChildHtml() #14 /var/www/test/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('/var/www/test/v...') #15 /var/www/test/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render() #16 /var/www/test/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView() #17 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #18 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #19 /var/www/test/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #20 /var/www/test/vendor/magento/framework/View/Result/Page.php(251): Magento\Framework\View\Element\AbstractBlock->toHtml() #21 /var/www/test/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render() #22 /var/www/test/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult() #23 /var/www/test/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent() #24 /var/www/test/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() #25 /var/www/test/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(23): Magento\Framework\View\Result\Page\Interceptor->___callPlugins() #26 /var/www/test/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult() #27 /var/www/test/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #28 /var/www/test/index.php(39): Magento\Framework\App\Bootstrap->run() #29 {main}