CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1049] Unknown database 'core2ispag'

/var/www/html/ispag/proceeding_module/yii/framework/db/CDbConnection.php(382)

370                 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
383                         array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /var/www/html/ispag/proceeding_module/protected/models/AbstractFinalAuthors.php(22): CActiveRecord::model("AbstractFinalAuthors")
17      * @param string $className active record class name.
18      * @return AbstractFinalAuthors the static model class
19      */
20     public static function model($className=__CLASS__)
21     {
22         return parent::model($className);
23     }
24 
25     /**
26      * @return string the associated database table name
27      */
#8
+
 /var/www/html/ispag/proceeding_module/protected/components/Controller.php(167): AbstractFinalAuthors::model()
162         </div>';
163         
164         echo '<div class="left-bar-author"><b>Add additional criteria to filter :</b></div>';
165         echo '<div class="left-bar-author">Authors <br />';
166         echo '<select name="adv_author[]" size="5" multiple="true" style="width:220px;height:180px;">';
167         $authorsList = AbstractFinalAuthors::model()->options();
168         foreach ($authorsList as $key=>$val):
169                 echo '<option value="'.$key.'">'.$val.'</option>';
170         endforeach;
171         echo '</select>';
172         echo '</div>';
#9
+
 /var/www/html/ispag/proceeding_module/protected/views/layouts/main.php(103): Controller->refineSearch()
098                     <form method="POST" action="<?php echo Yii::app()->homeUrl ?>site/search">
099                         <input type="text" id="keyword" name="keyword" placeholder="Search..." value="<?php echo Yii::app()->session['keyword'];?>" /> 
100                         <button type="submit"><i class="fa fa-search"></i></button>
101                     </form>
102                 </div>
103             <?php echo $this->refineSearch() ;?>
104             
105             
106             </div>
107         </div>
108         
2024-03-28 12:17:32 Apache/2.4.52 (Ubuntu) Yii Framework/1.1.10