Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Area code is not set in /app/vendor/magento/framework/App/State.php:153
Stack trace:
#0 /app/vendor/magento/framework/Session/SessionManager.php(186): Magento\Framework\App\State->getAreaCode()
#1 /app/generated/code/Magento/Framework/Session/Generic/Interceptor.php(23): Magento\Framework\Session\SessionManager->start()
#2 /app/vendor/magento/framework/Session/SessionManager.php(141): Magento\Framework\Session\Generic\Interceptor->start()
#3 /app/generated/code/Magento/Framework/Session/Generic/Interceptor.php(14): Magento\Framework\Session\SessionManager->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Ecom\Frontend\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), NULL)
#4 /app/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Session\Generic\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Ecom\Frontend\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), NULL)
#5 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#6 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#7 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Framewo...')
#8 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...')
#9 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(125): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Custome...')
#10 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(86): Magento\Framework\ObjectManager\Factory\Compiled->parseArray(Array)
#11 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('SessionValidato...')
#12 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('SessionValidato...')
#13 /app/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...', Array)
#14 /app/generated/code/Magento/Customer/Model/SessionFactory.php(43): Magento\Framework\ObjectManager\ObjectManager->create('\\Magento\\Custom...', Array)
#15 /app/app/code/Ecom/Frontend/Framework/App/Response/HeaderProvider/XFrameOptions.php(88): Magento\Customer\Model\SessionFactory->create()
#16 /app/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Ecom\Frontend\Framework\App\Response\HeaderProvider\XFrameOptions->__construct('SAMEORIGIN')
#17 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Ecom\\Frontend\\F...', Array)
#18 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Ecom\\Frontend\\F...')
#19 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(125): Magento\Framework\ObjectManager\Factory\Compiled->get('Ecom\\Frontend\\F...')
#20 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(86): Magento\Framework\ObjectManager\Factory\Compiled->parseArray(Array)
#21 /app/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#22 /app/vendor/magento/framework/Interception/PluginList/PluginList.php(174): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#23 /app/vendor/magento/framework/Interception/Interceptor.php(119): Magento\Framework\Interception\PluginList\PluginList->getPlugin('Magento\\Framewo...', 'genericHeaderPl...')
#24 /app/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}()
#25 /app/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(23): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array)
#26 /app/pub/errors/404.php(12): Magento\Framework\App\Response\Http\Interceptor->sendResponse()
#27 /app/pub/get.php(50): require_once('/app/pub/errors...')
#28 {main}
Next Magento\Framework\Exception\SessionException: Area code not set: Area code must be set before starting a session. in /app/vendor/magento/framework/Session/SessionManager.php:188
Stack trace:
#0 /app/generated/code/Magento/Framework/Session/Generic/Interceptor.php(23): Magento\Framework\Session\SessionManager->start()
#1 /app/vendor/magento/framework/Session/SessionManager.php(141): Magento\Framework\Session\Generic\Interceptor->start()
#2 /app/generated/code/Magento/Framework/Session/Generic/Interceptor.php(14): Magento\Framework\Session\SessionManager->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Ecom\Frontend\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), NULL)
#3 /app/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Session\Generic\Interceptor->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Ecom\Frontend\Framework\Stdlib\Cookie\PhpCookieManager\Interceptor), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State\Interceptor), NULL)
#4 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#5 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#6 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Framewo...')
#7 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...')
#8 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(125): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Custome...')
#9 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(86): Magento\Framework\ObjectManager\Factory\Compiled->parseArray(Array)
#10 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('SessionValidato...')
#11 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('SessionValidato...')
#12 /app/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Custome...', Array)
#13 /app/generated/code/Magento/Customer/Model/SessionFactory.php(43): Magento\Framework\ObjectManager\ObjectManager->create('\\Magento\\Custom...', Array)
#14 /app/app/code/Ecom/Frontend/Framework/App/Response/HeaderProvider/XFrameOptions.php(88): Magento\Customer\Model\SessionFactory->create()
#15 /app/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Ecom\Frontend\Framework\App\Response\HeaderProvider\XFrameOptions->__construct('SAMEORIGIN')
#16 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Ecom\\Frontend\\F...', Array)
#17 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Ecom\\Frontend\\F...')
#18 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(125): Magento\Framework\ObjectManager\Factory\Compiled->get('Ecom\\Frontend\\F...')
#19 /app/vendor/magento/framework/ObjectManager/Factory/Compiled.php(86): Magento\Framework\ObjectManager\Factory\Compiled->parseArray(Array)
#20 /app/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
#21 /app/vendor/magento/framework/Interception/PluginList/PluginList.php(174): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#22 /app/vendor/magento/framework/Interception/Interceptor.php(119): Magento\Framework\Interception\PluginList\PluginList->getPlugin('Magento\\Framewo...', 'genericHeaderPl...')
#23 /app/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception\{closure}()
#24 /app/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(23): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array)
#25 /app/pub/errors/404.php(12): Magento\Framework\App\Response\Http\Interceptor->sendResponse()
#26 /app/pub/get.php(50): require_once('/app/pub/errors...')
#27 {main}
thrown in /app/vendor/magento/framework/Session/SessionManager.php on line 188