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: Creating default object from empty value in /datas/sepinood/public_html/backend/models/Post.php:91
Stack trace:
#0 /datas/sepinood/public_html/backend/models/Post.php(91): yii\base\ErrorHandler->handleError(2, 'Creating defaul...', '/datas/sepinood...', 91, Array)
#1 /datas/sepinood/public_html/frontend/views/post/detail.php(16): backend\models\Post::hit(NULL, NULL)
#2 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/View.php(336): require('/datas/sepinood...')
#3 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/datas/sepinood...', Array)
#4 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/datas/sepinood...', Array, Object(frontend\controllers\PostController))
#5 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Controller.php(384): yii\base\View->render('detail', Array, Object(frontend\controllers\PostController))
#6 /datas/sepinood/public_html/frontend/controllers/PostController.php(45): yii\base\Controller->render('detail', Array)
#7 [internal function]: frontend\controllers\PostController->actionDetail('7')
#8 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('detail', Array)
#11 /datas/sepinood/public_html/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('post/detail', Array)
#12 /datas/sepinood/public_html/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(common\components\Request))
#13 /datas/sepinood/public_html/frontend/web/index.php(17): yii\base\Application->run()
#14 {main}