An Error occurred while handling another error: yii\web\HeadersAlreadySentException: Headers already sent in /var/www/sites/blog.internationalstudent.com/wp-includes/script-loader.php on line 2709. in /var/www/vendor/iefa/yiisoft/yii2/web/Response.php:373 Stack trace: #0 /var/www/vendor/iefa/yiisoft/yii2/web/Response.php(346): yii\web\Response->sendHeaders() #1 /var/www/vendor/iefa/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send() #2 /var/www/vendor/iefa/yiisoft/yii2/base/ErrorHandler.php(135): yii\web\ErrorHandler->renderException(Object(yii\db\Exception)) #3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\db\Exception)) #4 {main} Previous exception: PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php:712 Stack trace: #0 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(712): PDO->__construct('mysql:host=mpw-...', 'yIntlStudent', 'XoIYFIlaFrCw', Array) #1 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(631): yii\db\Connection->createPdoInstance() #2 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(1032): yii\db\Connection->open() #3 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(1019): yii\db\Connection->getMasterPdo() #4 /var/www/vendor/iefa/yiisoft/yii2/db/Schema.php(463): yii\db\Connection->getSlavePdo() #5 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(911): yii\db\Schema->quoteValue('siteAdmin') #6 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(211): yii\db\Connection->quoteValue('siteAdmin') #7 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(1123): yii\db\Command->getRawSql() #8 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(1144): yii\db\Command->logQuery('yii\\db\\Command:...') #9 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(421): yii\db\Command->queryInternal('fetch', NULL) #10 /var/www/vendor/iefa/yiisoft/yii2/db/Query.php(287): yii\db\Command->queryOne() #11 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(246): yii\db\Query->one(Object(yii\db\Connection)) #12 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(203): yii\rbac\DbManager->getItem('siteAdmin') #13 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(144): yii\rbac\DbManager->checkAccessRecursive(NULL, 'siteAdmin', Array, Array) #14 /var/www/vendor/iefa/yiisoft/yii2/web/User.php(758): yii\rbac\DbManager->checkAccess(NULL, 'siteAdmin', Array) #15 /var/www/vendor/iefa/envisage/scholarships/src/Controllers/ScholarshipModuleController.php(70): yii\web\User->can('siteAdmin') #16 /var/www/sites/www.iefa.org/components/widgets/views/_header.php(55): Envisage\Scholarships\Controllers\ScholarshipModuleController::generateUserMenu() #17 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(348): require('/var/www/sites/...') #18 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/var/www/sites/...', '[<span class="s...') #19 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/var/www/sites/...', Array, Object(app\components\widgets\HeaderWidget)) #20 /var/www/vendor/iefa/yiisoft/yii2/base/Widget.php(237): yii\base\View->render('_header', Array, Object(app\components\widgets\HeaderWidget)) #21 /var/www/sites/www.iefa.org/components/widgets/HeaderWidget.php(36): yii\base\Widget->render('_header', Array) #22 /var/www/vendor/iefa/yiisoft/yii2/base/Widget.php(141): app\components\widgets\HeaderWidget->run() #23 /var/www/sites/blog.internationalstudent.com/wp-content/themes/iefa/header.php(108): yii\base\Widget::widget(Array) #24 /var/www/sites/blog.internationalstudent.com/wp-includes/template.php(770): require_once('/var/www/sites/...') #25 /var/www/sites/blog.internationalstudent.com/wp-includes/template.php(716): load_template('/var/www/sites/...', true, Array) #26 /var/www/sites/blog.internationalstudent.com/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #27 /var/www/sites/blog.internationalstudent.com/wp-content/themes/iefa/single.php(1): get_header() #28 /var/www/sites/blog.internationalstudent.com/wp-includes/template-loader.php(106): include('/var/www/sites/...') #29 /var/www/sites/blog.internationalstudent.com/wp-blog-header.php(19): require_once('/var/www/sites/...') #30 /var/www/sites/blog.internationalstudent.com/index.php(17): require('/var/www/sites/...') #31 {main} Next yii\db\Exception: SQLSTATE[HY000] [1040] Too many connections in /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php:642 Stack trace: #0 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(1032): yii\db\Connection->open() #1 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(1019): yii\db\Connection->getMasterPdo() #2 /var/www/vendor/iefa/yiisoft/yii2/db/Schema.php(463): yii\db\Connection->getSlavePdo() #3 /var/www/vendor/iefa/yiisoft/yii2/db/Connection.php(911): yii\db\Schema->quoteValue('siteAdmin') #4 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(211): yii\db\Connection->quoteValue('siteAdmin') #5 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(1123): yii\db\Command->getRawSql() #6 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(1144): yii\db\Command->logQuery('yii\\db\\Command:...') #7 /var/www/vendor/iefa/yiisoft/yii2/db/Command.php(421): yii\db\Command->queryInternal('fetch', NULL) #8 /var/www/vendor/iefa/yiisoft/yii2/db/Query.php(287): yii\db\Command->queryOne() #9 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(246): yii\db\Query->one(Object(yii\db\Connection)) #10 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(203): yii\rbac\DbManager->getItem('siteAdmin') #11 /var/www/vendor/iefa/yiisoft/yii2/rbac/DbManager.php(144): yii\rbac\DbManager->checkAccessRecursive(NULL, 'siteAdmin', Array, Array) #12 /var/www/vendor/iefa/yiisoft/yii2/web/User.php(758): yii\rbac\DbManager->checkAccess(NULL, 'siteAdmin', Array) #13 /var/www/vendor/iefa/envisage/scholarships/src/Controllers/ScholarshipModuleController.php(70): yii\web\User->can('siteAdmin') #14 /var/www/sites/www.iefa.org/components/widgets/views/_header.php(55): Envisage\Scholarships\Controllers\ScholarshipModuleController::generateUserMenu() #15 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(348): require('/var/www/sites/...') #16 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/var/www/sites/...', '[<span class="s...') #17 /var/www/vendor/iefa/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/var/www/sites/...', Array, Object(app\components\widgets\HeaderWidget)) #18 /var/www/vendor/iefa/yiisoft/yii2/base/Widget.php(237): yii\base\View->render('_header', Array, Object(app\components\widgets\HeaderWidget)) #19 /var/www/sites/www.iefa.org/components/widgets/HeaderWidget.php(36): yii\base\Widget->render('_header', Array) #20 /var/www/vendor/iefa/yiisoft/yii2/base/Widget.php(141): app\components\widgets\HeaderWidget->run() #21 /var/www/sites/blog.internationalstudent.com/wp-content/themes/iefa/header.php(108): yii\base\Widget::widget(Array) #22 /var/www/sites/blog.internationalstudent.com/wp-includes/template.php(770): require_once('/var/www/sites/...') #23 /var/www/sites/blog.internationalstudent.com/wp-includes/template.php(716): load_template('/var/www/sites/...', true, Array) #24 /var/www/sites/blog.internationalstudent.com/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #25 /var/www/sites/blog.internationalstudent.com/wp-content/themes/iefa/single.php(1): get_header() #26 /var/www/sites/blog.internationalstudent.com/wp-includes/template-loader.php(106): include('/var/www/sites/...') #27 /var/www/sites/blog.internationalstudent.com/wp-blog-header.php(19): require_once('/var/www/sites/...') #28 /var/www/sites/blog.internationalstudent.com/index.php(17): require('/var/www/sites/...') #29 {main} Additional Information: Array ( [0] => HY000 [1] => 1040 [2] => Too many connections )