Active Record requires a "db" CDbConnection application component.
Application Log | ||||
---|---|---|---|---|
Timestamp | Level | Category | Message | |
10:57:47.374679 | error | exception.CDbException | SQLSTATE[HY000] [1045] Access denied for user 'farberar_cp012'@'localhost' (using password: YES) |
|
10:57:47.374953 | error | exception.CDbException | CDbException: CDbConnection failed to open the DB connection. in /home2/farberar/framework/db/CDbConnection.php:275 Stack trace: #0 /home2/farberar/framework/db/CDbConnection.php(242): CDbConnection->open() #1 /home2/farberar/framework/db/CDbConnection.php(221): CDbConnection->setActive(true) #2 /home2/farberar/framework/base/CModule.php(363): CDbConnection->init() #3 /home2/farberar/framework/base/CApplication.php(391): CModule->getComponent('db') #4 /home2/farberar/framework/db/ar/CActiveRecord.php(588): CApplication->getDb() #5 /home2/farberar/framework/db/ar/CActiveRecord.php(2158): CActiveRecord->getDbConnection() #6 /home2/farberar/framework/db/ar/CActiveRecord.php(353): CActiveRecordMetaData->__construct(Object(Post)) #7 /home2/farberar/framework/web/CActiveDataProvider.php(63): CActiveRecord::model('Post') #8 /home2/farberar/public_html/protected/modules/blog/controllers/PostController.php(364): CActiveDataProvider->__construct('Post', Array) #9 /home2/farberar/framework/web/actions/CInlineAction.php(50): PostController->actionPostedInMonth() #10 /home2/farberar/framework/web/CController.php(300): CInlineAction->run() #11 /home2/farberar/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction)) #12 /home2/farberar/framework/web/filters/CFilter.php(41): CFilterChain->run() #13 /home2/farberar/framework/web/CController.php(1049): CFilter->filter(Object(CFilterChain)) #14 /home2/farberar/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain)) #15 /home2/farberar/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain)) #16 /home2/farberar/framework/web/CController.php(283): CFilterChain->run() #17 /home2/farberar/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array) #18 /home2/farberar/framework/web/CWebApplication.php(324): CController->run('PostedInMonth') #19 /home2/farberar/framework/web/CWebApplication.php(121): CWebApplication->runController('blog/post/Poste...') #20 /home2/farberar/framework/base/CApplication.php(135): CWebApplication->processRequest() #21 /home2/farberar/public_html/index.php(13): CApplication->run() #22 {main} REQUEST_URI=/index.php/blog/post/PostedInMonth/time/1357020000/pnc/c |