Warning: Invalid argument supplied for foreach() in /home/duakhac/public_html/vendor/yiisoft/yii2/helpers/BaseArrayHelper.php on line 122
An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /home/duakhac/public_html/vendor/yiisoft/yii2/helpers/BaseArrayHelper.php on line 122. in /home/duakhac/public_html/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /home/duakhac/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(135): yii\web\Response->send()
#2 /home/duakhac/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_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home/duakhac/public_html/vendor/yiisoft/yii2/web/Session.php:388
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'session_set_coo...', '/home/duakhac/p...', 388, Array)
#1 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Session.php(388): session_set_cookie_params(0, '/', '', false, true)
#2 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Session.php(135): yii\web\Session->setCookieParamsInternal()
#3 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Session.php(612): yii\web\Session->open()
#4 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Session.php(751): yii\web\Session->get('__flash', Array)
#5 /home/duakhac/public_html/views/layouts/main.php(46): yii\web\Session->getAllFlashes()
#6 /home/duakhac/public_html/vendor/yiisoft/yii2/base/View.php(336): require('/home/duakhac/p...')
#7 /home/duakhac/public_html/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/home/duakhac/p...', Array)
#8 /home/duakhac/public_html/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/home/duakhac/p...', Array, Object(app\controllers\SiteController))
#9 /home/duakhac/public_html/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('<h1>D\xC6\xB0a H\xE1\xBA\xA5u ...')
#10 /home/duakhac/public_html/controllers/SiteController.php(54): yii\base\Controller->render('index')
#11 [internal function]: app\controllers\SiteController->actionIndex()
#12 /home/duakhac/public_html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#13 /home/duakhac/public_html/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#14 /home/duakhac/public_html/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array)
#15 /home/duakhac/public_html/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('', Array)
#16 /home/duakhac/public_html/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#17 /home/duakhac/public_html/web/index.php(13): yii\base\Application->run()
#18 {main}