An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /datas/sepinood/public_html/frontend/controllers/PostController.php on line 135. in /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(135): yii\web\Response->send()
#2 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/ErrorHandler.php(111): 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_start(): Cannot send session cookie - headers already sent by (output started at /datas/sepinood/public_html/frontend/controllers/PostController.php:135) in /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Session.php:137
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'session_start()...', '/datas/sepinood...', 137, Array)
#1 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Session.php(137): session_start()
#2 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Session.php(612): yii\web\Session->open()
#3 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Session.php(751): yii\web\Session->get('__flash', Array)
#4 /datas/sepinood/public_html/common/widgets/Alert.php(53): yii\web\Session->getAllFlashes()
#5 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Widget.php(140): common\widgets\Alert->run()
#6 /datas/sepinood/public_html/frontend/views/layouts/main.php(41): yii\base\Widget::widget()
#7 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/View.php(336): require('/datas/sepinood...')
#8 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/datas/sepinood...', Array)
#9 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/datas/sepinood...', Array, Object(frontend\controllers\PostController))
#10 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('\r\n<div class="c...')
#11 /datas/sepinood/public_html/frontend/controllers/PostController.php(45): yii\base\Controller->render('detail', Array)
#12 [internal function]: frontend\controllers\PostController->actionDetail('21')
#13 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#14 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#15 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('detail', Array)
#16 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('post/detail', Array)
#17 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(common\components\Request))
#18 /datas/sepinood/public_html/frontend/web/index.php(17): yii\base\Application->run()
#19 {main}