500 – Internal Server Error

Hi,
After Installing I am getting 
500 -- Internal Server Error
If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.
Common reasons for this error are:

  • Incorrect file/directory permissions: Above 755.
    In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel’s File Manager.
  • Incorrect Apache directives inside .htaccess file.
    Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings.

 
 
Please suggest
 

5 answers

Profile photo of ubdev Staff 98150.00 $tone June 30, 2019
Public

Hi Hardik, 
The 500 error refers to web server’s error.
Please try to re-chmod for folders = 755 and files = 644 and check the owner of folder and file to your apache user (Make sure you set the web user (apache user) with your webroot properly.
If your server is Nginx, we’re afraid the Lite version does not support it yet.
You can give the Lite version a try, however, as explained in your first ticket, this version was not maintained for long, it has a few drawbacks, for example:
-- It supports fresh Magento 2.0.7 only
-- It does not support Nginx server
-- Due to the outdated codebase, it might cause unexpected issues during the process.
Regards,
Ubertheme team

#1
Profile photo of ubdev Staff 98150.00 $tone June 30, 2019
Public

Hi Hardik, 
In order to mass change your folders/files permission, you can follow steps below: 
Open your SSH terminal, go to your M2 folder and run the commands:
find . -type d -exec chmod 755 {} +;
find . -type f -exec chmod 644 {} +;
Regards,
Ubertheme team

#3
Profile photo of Hardik Patel 30.00 $tone June 30, 2019
Public

Hi, I cleared the cache and it worked for me. But after saving the configuration in step 1. I am getting below error and I cannot go back to the configuration set again
 
The table “{{core_website}}” for active record class “Mage1Website” cannot be found in the database.

/home/madetoorderjeans/mtoj-magento2/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

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Mage1Website)
 

#1

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/db/ar/CActiveRecord.php(661): CActiveRecord->getMetaData()
 

#2

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/db/ar/CActiveRecord.php(1355): CActiveRecord->getTableSchema()
 

#3

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/db/ar/CActiveRecord.php(1475): CActiveRecord->query(CDbCriteria, true)
 

#4


  /home/madetoorderjeans/mtoj-magento2/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

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/actions/CInlineAction.php(49): MigrateController->actionStep2()
 

#6

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/CController.php(308): CInlineAction->runWithParams(array())
 

#7

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/CController.php(286): CController->runAction(CInlineAction)
 

#8

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
 

#9

+
  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/CWebApplication.php(282): CController->run(“step2”)
 

#10


  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/web/CWebApplication.php(141): CWebApplication->runController(“migrate/step2”)

136             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137                 $_GET[$name]=$value;
138         }
139         else
140             $route=$this->getUrlManager()->parseUrl($this->getRequest());
141         $this->runController($route);
142     }
143 
144     /**
145      * Registers the core application components.
146      * This method overrides the parent implementation by registering additional core components.

#11


  /home/madetoorderjeans/mtoj-magento2/pub/ub-tool/yii/base/CApplication.php(184): CWebApplication->processRequest()

179     public function run()
180     {
181         if($this->hasEventHandler('onBeginRequest'))
182             $this->onBeginRequest(new CEvent($this));
183         register_shutdown_function(array($this,'end'),0,false);
184         $this->processRequest();
185         if($this->hasEventHandler('onEndRequest'))
186             $this->onEndRequest(new CEvent($this));
187     }
188 
189     /**

#12


  /home/madetoorderjeans/mtoj-magento2/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();

2019-06-30 11:21:18 Apache Yii Framework/1.1.16

#4
Profile photo of ubdev Staff 98150.00 $tone July 1, 2019
Public

Hi Hardik,
The new issue indicated that your M1 database has prefix, however you had not fill in the configuration yet. 
Under this circumstance, you need to manually edit the configuration file at pub/ub-tool/protected/config/config.php to manually update the M1 database prefix. 
Regards,
Ubertheme team
 

#5

Please login or Register to Submit Answer

Written By

Comments