Warning: Undefined array key "HTTP_REFERER" in /home/selectscotlandin/public_html/web/index.php on line 3
An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /home/selectscotlandin/public_html/web/index.php on line 3. in /home/selectscotlandin/public_html/vendor/yiisoft/yii2/web/Response.php:369
Stack trace:
#0 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/web/Response.php(342): yii\web\Response->sendHeaders()
#1 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/ErrorHandler.php(152): 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: Cannot modify header information - headers already sent by (output started at /home/selectscotlandin/public_html/web/index.php:3) in /home/selectscotlandin/public_html/web/themes/frontend/sscotland/templates/Header.php:17
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'Cannot modify h...', '/home/selectsco...', 17)
#1 /home/selectscotlandin/public_html/web/themes/frontend/sscotland/templates/Header.php(17): header('Cache-Control: ...')
#2 /home/selectscotlandin/public_html/web/themes/frontend/sscotland/templates/Home/Home.php(2): include('/home/selectsco...')
#3 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/View.php(347): require('/home/selectsco...')
#4 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/home/selectsco...', Array)
#5 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/widgets/ContentDecorator.php(79): yii\base\View->renderFile('/home/selectsco...', Array)
#6 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Widget.php(115): yii\widgets\ContentDecorator->run()
#7 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/View.php(525): yii\base\Widget::end()
#8 /home/selectscotlandin/public_html/web/themes/frontend/sscotland/templates/Home/Page.php(61): yii\base\View->endContent()
#9 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/View.php(347): require('/home/selectsco...')
#10 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/home/selectsco...', Array)
#11 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Controller.php(422): yii\base\View->renderFile('/home/selectsco...', Array, Object(app\controllers\SiteController))
#12 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Controller.php(408): yii\base\Controller->renderContent('\t\n\n\n')
#13 /home/selectscotlandin/public_html/controllers/SiteController.php(78): yii\base\Controller->render('index', Array)
#14 [internal function]: app\controllers\SiteController->actionIndex()
#15 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#17 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('', Array)
#18 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('', Array)
#19 /home/selectscotlandin/public_html/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#20 /home/selectscotlandin/public_html/web/index.php(55): yii\base\Application->run()
#21 {main}