PHP warning

PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers

/home/handyman/yii/db/CDbConnection.php(423)

411     protected function createPdoInstance()
412     {
413         $pdoClass=$this->pdoClass;
414         if(($pos=strpos($this->connectionString,':'))!==false)
415         {
416             $driver=strtolower(substr($this->connectionString,0,$pos));
417             if($driver==='mssql' || $driver==='dblib')
418                 $pdoClass='CMssqlPdoAdapter';
419             elseif($driver==='sqlsrv')
420                 $pdoClass='CMssqlSqlsrvPdoAdapter';
421         }
422         return new $pdoClass($this->connectionString,$this->username,
423                                     $this->password,$this->_attributes);
424     }
425 
426     /**
427      * Initializes the open db connection.
428      * This method is invoked right after the db connection is established.
429      * The default implementation is to set the charset for MySQL and PostgreSQL database connections.
430      * @param PDO $pdo the PDO instance
431      */
432     protected function initConnection($pdo)
433     {
434         $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
435         if($this->emulatePrepare!==null && constant('PDO::ATTR_EMULATE_PREPARES'))

Stack Trace

#9
+
 /home/handyman/public_html/protected/models/Questions.php(25): CActiveRecord::model("Questions")
20      * @param string $className active record class name.
21      * @return Questions the static model class
22      */
23     public static function model($className=__CLASS__)
24     {
25         return parent::model($className);
26     }
27 
28     /**
29      * @return string the associated database table name
30      */
#10
+
 /home/handyman/public_html/protected/controllers/QuestionsController.php(223): Questions::model()
218     
219 public function actionDetails()
220     {
221          $can_vote = false;
222          $q_id =  Yii::app()->Ini->v('id');
223          $question = Questions::model()->findByPk($q_id);
224          if (!Yii::app()->user->isGuest){
225              $viewed_by = Yii::app()->user->getId();
226              $viewed_user_type = Yii::app()->user->role;
227             $vote = QuestionVotes::model()->countByAttributes(array('question_id'=>$q_id,'voted_by'=>$viewed_by,'voted_user_type'=>$viewed_user_type));
228             if (($vote == 0) && ($question->owner_id != $viewed_by && $question->owner_user_type != $viewed_user_type)){
#18
+
 /home/handyman/public_html/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-04-18 16:47:36 Apache Yii Framework/1.1.13