The table "{{core_website}}" for active record cla

I am migrating magento 1.9.3.7 to magento 2.3.0 but getting this error. Please suggest me how can I overcome this issue. I am not using any database prefixes in both m1 or m2.
CDbException
The table “{{core_website}}” for active record class “Mage1Website” cannot be found in the database.

/var/www/m2.gocleaning.nl/pub/ub-tool/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

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Mage1Website)
 

#1

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/db/ar/CActiveRecord.php(661): CActiveRecord->getMetaData()
 

#2

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/db/ar/CActiveRecord.php(1355): CActiveRecord->getTableSchema()
 

#3

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/db/ar/CActiveRecord.php(1475): CActiveRecord->query(CDbCriteria, true)
 

#4


  /var/www/m2.gocleaning.nl/pub/ub-tool/protected/controllers/MigrateController.php(217): CActiveRecord->findAll(“code <> ‘admin'”)

212             //variables to log
213             $migrated_website_ids = $migrated_store_group_ids = $migrated_store_ids = array();
214 
215             //get list front-end websites from magento1 and exclude the admin website
216             $condition = "code <> 'admin'";
217             $websites = Mage1Website::model()->findAll($condition);
218 
219             if (Yii::app()->request->isPostRequest && $step->status == MigrateSteps::STATUS_NOT_DONE) {
220 
221                 //un-check foreign key
222                 Yii::app()->mage2->createCommand("SET FOREIGN_KEY_CHECKS=0")->execute();

#5

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/actions/CInlineAction.php(49): MigrateController->actionStep2()
 

#6

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/CController.php(308): CInlineAction->runWithParams(array())
 

#7

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/CController.php(286): CController->runAction(CInlineAction)
 

#8

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
 

#9

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/CWebApplication.php(282): CController->run(“step2”)
 

#10

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/web/CWebApplication.php(141): CWebApplication->runController(“migrate/step2”)
 

#11

+
  /var/www/m2.gocleaning.nl/pub/ub-tool/yii/base/CApplication.php(184): CWebApplication->processRequest()
 

#12


  /var/www/m2.gocleaning.nl/pub/ub-tool/index.php(13): CApplication->run()

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

1 answer

Profile photo of ubdev Staff 36100.00 $tone February 11, 2019
Public

Hi Kulwinder singh, 
Thanks for working around with our Lite version. 
It’s pity that the Lite version at Ubertheme is available for Magento 2.0.7 only. Further, it uses an outdated codebase, thus it might come with unexpected errors that are beyond the scope of our support. Due to our limited resources, we could not update the codebase for the Lite version for long. 
So, we highly recommend you move forward with our Pro version here. It will save you pretty much time. 
Thanks for your understanding.
PS. We also have another old script on Github which we no longer maintain, and replaced it with the Pro version above. 
Regards,
Ubertheme team

#1

Please login or Register to Submit Answer

Written By

Comments