Step – 2 Error – The table "{{core_website}}" for

CDbException
The table “{{core_website}}” for active record class “Mage1Website” cannot be found in the database.

/home/kiviuhys/public_html/magento2/yii/db/ar/CActiveRecord.php(2385)

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

Stack Trace

#0

+
 /home/kiviuhys/public_html/magento2/yii/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Mage1Website)
 

#1

+
 /home/kiviuhys/public_html/magento2/yii/db/ar/CActiveRecord.php(661): CActiveRecord->getMetaData()
 

#2

+
 /home/kiviuhys/public_html/magento2/yii/db/ar/CActiveRecord.php(1355): CActiveRecord->getTableSchema()
 

#3

+
 /home/kiviuhys/public_html/magento2/yii/db/ar/CActiveRecord.php(1475): CActiveRecord->query(CDbCriteria, true)
 

#4


 /home/kiviuhys/public_html/magento2/protected/controllers/MigrateController.php(237): CActiveRecord->findAll(“code <> ‘admin'”)

232             //variables to log
233             $migrated_website_ids = $migrated_store_group_ids = $migrated_store_ids = array();
234 
235             //Get list front-end websites from magento1
236             $condition = "code <> 'admin'";
237             $websites = Mage1Website::model()->findAll($condition);
238 
239             if (Yii::app()->request->isPostRequest && $step->status == MigrateSteps::STATUS_NOT_DONE){
240 
241                 //uncheck foreign key
242                 Yii::app()->mage2->createCommand("SET FOREIGN_KEY_CHECKS=0")->execute();

#5

+
 /home/kiviuhys/public_html/magento2/yii/web/actions/CInlineAction.php(49): MigrateController->actionStep2()
 

#6

+
 /home/kiviuhys/public_html/magento2/yii/web/CController.php(308): CInlineAction->runWithParams(array())
 

#7

+
 /home/kiviuhys/public_html/magento2/yii/web/CController.php(286): CController->runAction(CInlineAction)
 

#8

+
 /home/kiviuhys/public_html/magento2/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
 

#9

+
 /home/kiviuhys/public_html/magento2/yii/web/CWebApplication.php(282): CController->run(“step2”)
 

#10

+
 /home/kiviuhys/public_html/magento2/yii/web/CWebApplication.php(141): CWebApplication->runController(“migrate/step2”)
 

#11

+
 /home/kiviuhys/public_html/magento2/yii/base/CApplication.php(184): CWebApplication->processRequest()
 

#12


 /home/kiviuhys/public_html/magento2/index.php(13): CApplication->run()

08 
09 //remove the following line when in production mode
10 defined('YII_DEBUG') or define('YII_DEBUG', true);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();

2 answers

Profile photo of Admin Staff -30740.00 $tone September 8, 2016
Public

Seem you have two profiles at Ubertheme. 
Kindly follow up via your first ticket here: https://www.ubertheme.com/question/the-table-core_website-for-active-record-cla-2/
Regards,
An Nguyen

#1

This question is now closed

Written By

Comments