An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /home/pemda01/public_html/jdih/index.php on line 4. in /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Response.php:366
Stack trace:
#0 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Response.php(339): yii\web\Response->sendHeaders()
#1 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/ErrorHandler.php(135): 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_name(): Cannot change session name when headers already sent in /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Session.php:326
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'session_name():...', '/home/pemda01/p...', 326, Array)
#1 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Session.php(326): session_name('practical-a-fro...')
#2 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Component.php(180): yii\web\Session->setName('practical-a-fro...')
#3 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/BaseYii.php(558): yii\base\Component->__set('name', 'practical-a-fro...')
#4 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\web\Session), Array)
#5 [internal function]: yii\base\BaseObject->__construct(Array)
#6 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/di/Container.php(406): ReflectionClass->newInstanceArgs(Array)
#7 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/di/Container.php(165): yii\di\Container->build('yii\\web\\Session', Array, Array)
#8 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('yii\\web\\Session', Array, Array)
#9 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#10 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('session', true)
#11 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Application.php(178): yii\base\Module->get('session')
#12 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/User.php(684): yii\web\Application->getSession()
#13 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/User.php(194): yii\web\User->renewAuthStatus()
#14 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/User.php(362): yii\web\User->getIdentity()
#15 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Component.php(139): yii\web\User->getIsGuest()
#16 /home/pemda01/public_html/jdih/frontend/views/layouts/menu.php(64): yii\base\Component->__get('isGuest')
#17 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/View.php(348): require('/home/pemda01/p...')
#18 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/home/pemda01/p...', Array)
#19 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/home/pemda01/p...', Array, NULL)
#20 /home/pemda01/public_html/jdih/frontend/views/layouts/main.php(75): yii\base\View->render('menu.php')
#21 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/View.php(348): require('/home/pemda01/p...')
#22 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/home/pemda01/p...', Array)
#23 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Controller.php(424): yii\base\View->renderFile('/home/pemda01/p...', Array, Object(frontend\controllers\SiteController))
#24 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\Controller->renderContent('<!-- start bann...')
#25 /home/pemda01/public_html/jdih/frontend/controllers/SiteController.php(120): yii\base\Controller->render('index', Array)
#26 [internal function]: frontend\controllers\SiteController->actionIndex()
#27 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#28 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array)
#29 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array)
#30 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('site/index', Array)
#31 /home/pemda01/public_html/jdih/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#32 /home/pemda01/public_html/jdih/index.php(21): yii\base\Application->run()
#33 {main}