.
An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /home/janahan/public_html/frontend/web/index.php on line 1. in /home/janahan/public_html/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /home/janahan/public_html/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /home/janahan/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /home/janahan/public_html/vendor/yiisoft/yii2/base/ErrorHandler.php(123): yii\web\ErrorHandler->renderException(Object(yii\base\ErrorException))
#3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\ErrorException))
#4 {main}
Previous exception:
yii\base\ErrorException: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php:399
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'session_set_coo...', '/home/janahan/p...', 399, Array)
#1 /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php(399): session_set_cookie_params(Array)
#2 /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php(135): yii\web\Session->setCookieParamsInternal()
#3 /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php(630): yii\web\Session->open()
#4 /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php(722): yii\web\Session->get('__flash', Array)
#5 /home/janahan/public_html/vendor/yiisoft/yii2/web/Session.php(889): yii\web\Session->getFlash('forceUpdateLoca...')
#6 /home/janahan/public_html/common/behaviors/LocaleBehavior.php(41): yii\web\Session->hasFlash('forceUpdateLoca...')
#7 [internal function]: common\behaviors\LocaleBehavior->beforeRequest(Object(yii\base\Event))
#8 /home/janahan/public_html/vendor/yiisoft/yii2/base/Component.php(627): call_user_func(Array, Object(yii\base\Event))
#9 /home/janahan/public_html/vendor/yiisoft/yii2/base/Application.php(383): yii\base\Component->trigger('beforeRequest')
#10 /home/janahan/public_html/frontend/web/index.php(27): yii\base\Application->run()
#11 {main}