致命错误:未捕获的TypeError:参数1传递给Mage_Core_Model_Store:

时间:2019-12-12 21:09:40

标签: php magento

我在Godaddy托管了我的magento电子商务网站。它是版本1.9.2.2。我试图还原数据库备份,但出现503服务不可用错误。因此,我决定尝试备份整个文件。在此过程中,我在下面得到一个系统和一个异常错误。我不确定在尝试还原数据库或还原文件时站点是否损坏。

Fatal error: Uncaught TypeError: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in /home/tre76767667/public_html/app/code/core/Mage/Core/Model/App.php on line 645 and defined in /home/tre76767667/public_html/app/code/core/Mage/Core/Model/Store.php:453 
Stack trace:
 #0 /home/tre76767667/public_html/app/code/core/Mage/Core/Model/App.php(645): Mage_Core_Model_Store->setWebsite(NULL)
 #1 /home/tre76767667/public_html/app/code/core/Mage/Core/Model/App.php(477): Mage_Core_Model_App->_initStores()
 #2 /home/tre76767667/public_html/app/code/core/Mage/Core/Model/App.php(360): Mage_Core_Model_App->_initCurrentStore('', 'store')
 #3 /home/tre76767667/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
 #4 /home/tre76767667/public_html/index.php(68): Mage::run('', 'store')
 #5 {main} thrown in /home/tre76767667/public_html/app/code/core/Mage/Core/Model/Store.php on line 453

在error_log中,我得到了:

[11-Dec-2019 21:09:02 UTC] PHP Notice:  Undefined index: SCRIPT_NAME in /home/tre76767667/public_html/cron.php on line 40
[11-Dec-2019 21:09:02 UTC] PHP Notice:  Undefined index: SCRIPT_FILENAME in /home/tre76767667/public_html/cron.php on line 41

请有人可以帮助我解决该问题吗?

0 个答案:

没有答案