getting an error during run of program

when I try to run the program in the back end I get the following page
 
CDbException
The table “{{ub_migrate_step}}” for active record class “UBMigrate” cannot be found in the database.

/var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(2390)

2378 
2379     /**
2380      * Constructor.
2381      * @param CActiveRecord $model the model instance
2382      * @throws CDbException if specified table for active record class cannot be found in the database
2383      */
2384     public function __construct($model)
2385     {
2386         $this->_modelClassName=get_class($model);
2387 
2388         $tableName=$model->tableName();
2389         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2390             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2391                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2392                 
2393         if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
2394         {
2395             $table->primaryKey=$modelPk;
2396             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2397                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2398             elseif(is_array($table->primaryKey))
2399             {
2400                 foreach($table->primaryKey as $name)
2401                 {
2402                     if(isset($table->columns[$name]))

Stack Trace

#0

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct(UBMigrate)
 

#1

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(663): CActiveRecord->getMetaData()
 

#2

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(1609): CActiveRecord->getTableSchema()
 

#3


  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/protected/models/UBMigrate.php(183): CActiveRecord->count(“status != 1 AND id NOT IN (1)”)

178                 $condition .= " AND id NOT IN ({$excludedIds})";
179             else
180                 $condition = " id NOT IN ({$excludedIds})";
181         }
182         //get total steps by statuses
183         $totalSteps = self::model()->count($condition);
184 
185         if (is_array($statuses)) {
186             $statuses = implode(',', $statuses);
187             $condition = "status IN ({$statuses})";
188         } else {

#4


  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/protected/controllers/BaseController.php(67): UBMigrate::getPercentByStatus(5, “1”)

62     /**
63      * Displays the index page
64      */
65     public function actionIndex()
66     {
67         $percentFinished = UBMigrate::getPercentByStatus(UBMigrate::STATUS_FINISHED, [1]);
68         if ($percentFinished) {
69             $this->redirect(UBMigrate::getStartUrl());
70         } else {
71             $this->redirect(UBMigrate::getSettingUrl());
72         }

#5

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/actions/CInlineAction.php(49): BaseController->actionIndex()
 

#6

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/CController.php(308): CInlineAction->runWithParams(array(“token” => “c151bca266cc67ea0fba11f97b903721”))
 

#7

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/CController.php(286): CController->runAction(CInlineAction)
 

#8

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
 

#9

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/CWebApplication.php(282): CController->run(“”)
 

#10

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/web/CWebApplication.php(141): CWebApplication->runController(“”)
 

#11

+
  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CWebApplication->processRequest()
 

#12


  /var/www/vhosts/mudstuff.co.uk/htdocs/pub/ub-tool/index.php(13): CApplication->run()

08 // change the following paths if necessary
09 $yii=dirname(__FILE__).'/yii-1.1.19/yii.php';
10 $config=dirname(__FILE__).'/protected/config/main.php';
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();

1 answer

Please login or Register to Submit Answer

Written By

Comments