An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /home/foodghasredarvis/public_html/config/db.php on line 1. in /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/Response.php:373
Stack trace:
#0 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/Response.php(346): yii\web\Response->sendHeaders()
#1 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /home/foodghasredarvis/public_html/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: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/Session.php:546
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'ini_set(): Head...', '/home/foodghasr...', 546, Array)
#1 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/Session.php(546): ini_set('session.gc_maxl...', '432000')
#2 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Component.php(181): yii\web\Session->setTimeout(432000)
#3 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/BaseYii.php(558): yii\base\Component->__set('timeout', 432000)
#4 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\web\DbSession), Array)
#5 [internal function]: yii\base\BaseObject->__construct(Array)
#6 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/Container.php(420): ReflectionClass->newInstanceArgs(Array)
#7 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/Container.php(171): yii\di\Container->build('yii\\web\\DbSessi...', Array, Array)
#8 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('yii\\web\\DbSessi...', Array, Array)
#9 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#10 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Module.php(748): yii\di\ServiceLocator->get('session', true)
#11 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/ServiceLocator.php(74): yii\base\Module->get('session')
#12 /home/foodghasredarvis/public_html/components/DbDetection.php(32): yii\di\ServiceLocator->__get('session')
#13 /home/foodghasredarvis/public_html/components/DbDetection.php(25): app\components\DbDetection->bigQuery()
#14 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/BaseObject.php(109): app\components\DbDetection->init()
#15 [internal function]: yii\base\BaseObject->__construct(Array)
#16 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/Container.php(412): ReflectionClass->newInstanceArgs(Array)
#17 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/Container.php(171): yii\di\Container->build('app\\components\\...', Array, Array)
#18 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('app\\components\\...', Array, Array)
#19 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#20 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Module.php(748): yii\di\ServiceLocator->get('dbDetection', true)
#21 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Application.php(319): yii\base\Module->get('dbDetection')
#22 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/web/Application.php(70): yii\base\Application->bootstrap()
#23 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Application.php(279): yii\web\Application->bootstrap()
#24 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\base\Application->init()
#25 /home/foodghasredarvis/public_html/vendor/yiisoft/yii2/base/Application.php(212): yii\base\BaseObject->__construct(Array)
#26 /home/foodghasredarvis/public_html/web/index.php(10): yii\base\Application->__construct(Array)
#27 {main}