TDbConnection failed to establish DB connection: SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers
/home/abblaze/public_html/prado-3.1.7/Data/TDbConnection.php (192)
0181: $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0182: $this->getPassword(),$this->_attributes);
0183: // This attribute is only useful for PDO::MySql driver.
0184: // Ignore the warning if a driver doesn't understand this.
0185: @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0186: $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0187: $this->_active=true;
0188: $this->setConnectionCharset();
0189: }
0190: catch(PDOException $e)
0191: {
0192: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0193: }
0194: }
0195: }
0196:
0197: /**
0198: * Closes the currently active DB connection.
0199: * It does nothing if the connection is already closed.
0200: */
0201: protected function close()
0202: {
0203: $this->_pdo=null;
0204: $this->_active=false;
#0 /home/abblaze/public_html/prado-3.1.7/Data/TDbConnection.php(165): TDbConnection->open()
#1 /home/abblaze/public_html/prado-3.1.7/Data/ActiveRecord/TActiveRecord.php(317): TDbConnection->setActive(true)
#2 /home/abblaze/public_html/prado-3.1.7/Data/ActiveRecord/TActiveRecord.php(329): TActiveRecord::getActiveDbConnection()
#3 /home/abblaze/public_html/prado-3.1.7/Data/ActiveRecord/TActiveRecordGateway.php(136): TActiveRecord->getDbConnection()
#4 /home/abblaze/public_html/prado-3.1.7/Data/ActiveRecord/TActiveRecordGateway.php(224): TActiveRecordGateway->getCommand(Object(CategoryRecord))
#5 /home/abblaze/public_html/prado-3.1.7/Data/ActiveRecord/TActiveRecord.php(600): TActiveRecordGateway->findRecordsByCriteria(Object(CategoryRecord), Object(TActiveRecordCriteria), true)
#6 /home/abblaze/public_html/protected/common/Master.php(25): TActiveRecord->findAll(Object(TActiveRecordCriteria))
#7 /home/abblaze/public_html/protected/common/Master.php(17): Master->loadMainMenu()
#8 /home/abblaze/public_html/prado-3.1.7/Web/UI/TControl.php(1270): Master->onInit(NULL)
#9 /home/abblaze/public_html/prado-3.1.7/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Index))
#10 /home/abblaze/public_html/prado-3.1.7/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Index))
#11 /home/abblaze/public_html/prado-3.1.7/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Index))
#12 /home/abblaze/public_html/prado-3.1.7/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#13 /home/abblaze/public_html/prado-3.1.7/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#14 /home/abblaze/public_html/prado-3.1.7/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#15 /home/abblaze/public_html/prado-3.1.7/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#16 /home/abblaze/public_html/prado-3.1.7/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#17 /home/abblaze/public_html/prado-3.1.7/Web/Services/TPageService.php(444): TPageService->runPage(Object(Index), Array)
#18 /home/abblaze/public_html/prado-3.1.7/TApplication.php(1095): TPageService->run()
#19 /home/abblaze/public_html/prado-3.1.7/TApplication.php(382): TApplication->runService()
#20 /home/abblaze/public_html/index.php(27): TApplication->run()
#21 {main}