Notice: Undefined index: HOST_NAME in /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php on line 90

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[08004] [1040] Too many connections (/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/CDbConnection.php:382)

#0 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/CDbConnection.php(330): CDbConnection->open()
#1 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/CDbConnection.php(308): CDbConnection->setActive(true)
#2 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CModule.php(387): CDbConnection->init()
#3 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CApplication.php(450): CModule->getComponent('db')
#4 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(634): CApplication->getDb()
#5 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(1428): CActiveRecord->getDbConnection()
#6 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(1484): CActiveRecord->getTableAlias(true)
#7 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php(91): CActiveRecord->findByPk('serverName')
#8 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php(70): Setting::items()
#9 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Audit.php(460): Setting::item('audit')
#10 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/components/ErrorHandler.php(28): Audit::findCurrentId()
#11 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/components/ErrorHandler.php(15): ErrorHandler->logError(Object(CErrorEvent))
#12 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CApplication.php(816): ErrorHandler->handle(Object(CErrorEvent))
#13 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php(90): CApplication->handleError(8, 'Undefined index...', '/home/newsmaker...', 90, Array)
#14 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php(70): Setting::items()
#15 /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/components/GlobalInit.php(29): Setting::item('timezone')
#16 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CModule.php(387): GlobalInit->init()
#17 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CModule.php(523): CModule->getComponent('"globalInit"')
#18 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CApplication.php(163): CModule->preloadComponents()
#19 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/YiiBase.php(125): CApplication->__construct('"/home/newsmake...')
#20 /home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/YiiBase.php(98): YiiBase::createApplication('"CWebApplicatio...', '"/home/newsmake...')
#21 /home/newsmaker/app.newsmaker.com.au/htroot/index.php(54): YiiBase::createWebApplication('"/home/newsmake...')
#22 {main}
Application Log
Timestamp Level Category Message
22:53:39.983196 error php
Undefined index: HOST_NAME
(/home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php:90)
Stack trace:
#0
/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CModule.php(387):
GlobalInit->init()
#1
/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CModule.php(523):
CWebApplication->getComponent()
#2
/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/base/CApplication.php(163):
CWebApplication->preloadComponents()
#3
/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/YiiBase.php(125):
CWebApplication->__construct()
#4
/home/newsmaker/app.newsmaker.com.au/vendors/yii/yii-1.1.14.f0fee9/framework/YiiBase.php(98):
createApplication()
#5 /home/newsmaker/app.newsmaker.com.au/htroot/index.php(54):
createWebApplication()
REQUEST_URI=/news/58124/united-states-flexible-printed-and-thin-film-batteries-industry-report-for-2016-set-to-grow-according-to-forecasts
in /home/newsmaker/app.newsmaker.com.au/app/app-2.dev/models/Setting.php
(90)