Installation exception

 Hey guys. I just tried to migrate my old database to a new Magento2 unit with Data Migration Pro. After submitting all relevant data, the following error occurs:
 
CDbException
The table “{{core_website}}” for active record class “Mage1Website” cannot be found in the database.

/home/baueffiz/neu.bau-effizient.de/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

+
  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct(Mage1Website)
 

#1

+
  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(663): CActiveRecord->getMetaData()
 

#2


  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(1358): CActiveRecord->getTableSchema()

1353 
1354         if(empty($criteria->with))
1355         {
1356             if(!$all)
1357                 $criteria->limit=1;
1358             $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria);
1359             return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow());
1360         }
1361         else
1362         {
1363             $finder=$this->getActiveFinder($criteria->with);

#3


  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/yii-1.1.19/db/ar/CActiveRecord.php(1478): CActiveRecord->query(CDbCriteria, true)

1473      */
1474     public function findAll($condition='',$params=array())
1475     {
1476         Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord');
1477         $criteria=$this->getCommandBuilder()->createCriteria($condition,$params);
1478         return $this->query($criteria,true);
1479     }
1480 
1481     /**
1482      * Finds a single active record with the specified primary key.
1483      * See {@link find()} for detailed explanation about $condition and $params.

#4


  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/protected/controllers/Step2Controller.php(28): CActiveRecord->findAll(“code <> ‘admin'”)

23         $result = UBMigrate::checkStep($step->sorder);
24         if ($result['allowed']) {
25 
26             //get list front-end websites from magento1 and exclude the admin website
27             $condition = "code <> 'admin'";
28             $websites = Mage1Website::model()->findAll($condition);
29 
30             if (Yii::app()->request->isPostRequest) {
31                 //get selected data ids
32                 $selectedWebsiteIds = Yii::app()->request->getParam('website_ids', array());
33                 $selectedStoreGroupIds = Yii::app()->request->getParam('store_group_ids', array());

#5

+
  /home/baueffiz/neu.bau-effizient.de/pub/ub-tool/yii-1.1.19/web/actions/CInlineAction.php(49): Step2Controller->actionSetting()

2 answers

Profile photo of ubdev Staff 98030.00 $tone January 13, 2018
Public

Hi there, 
Glad that you figured it out at your end. 
Please move forward with the migration process, following our guideline in the Readme instruction that comes packed in your download package. 
Should you run across any unexpected issue when migrating, please pause the process, and provide us details of issue. We will check and help you out. 
Regards,
Ubertheme team

#2

Please login or Register to Submit Answer

Written By

Comments