Restore db is giving error Uncaught TypeError: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of Mage_Core_Model_Website, null given #1945
Replies: 2 comments 4 replies
-
wtf the dump file has this statement in it
|
Beta Was this translation helpful? Give feedback.
-
To get answers, try to describe all the steps you take. The way you exposed the issue is extremely obvious. What you're doing there is hard for me to believe would be an issue in OpenMage code. If you did a correct SQL dump, then dropped the database and created a new one and import the SQL dump, all steps in the Terminal it can't work. I think I did this thing hundreds of times without any errors, especially when the database cracked. Try to avoid using phpMyAdmin for Magento databases. A few tables is OK but not for over 300 with tons of data. |
Beta Was this translation helpful? Give feedback.
-
I have an almost standard db, no modules adding columns etc. When I drop it and read back a mysql dump (with disabling key checks) I am getting this error, removed also the cache stuff in ./var/ ./tmp
PHP 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 x/app/code/core/Mage/Core/Model/App.php on line 661 and defined in x/app/code/core/Mage/Core/Model/Store.php:461\nStack trace:\n#0 x/app/code/core/Mage/Core/Model/App.php(661): Mage_Core_Model_Store->setWebsite(NULL)\n#1 x/app/code/core/Mage/Core/Model/App.php(493): Mage_Core_Model_App->_initStores()\n#2 x/app/code/core/Mage/Core/Model/App.php(301): Mage_Core_Model_App->_initCurrentStore('admin', 'store')\n#3 x/app/Mage.php(677): Mage_Core_Model_App->init('admin', 'store', Array)\n#4 x/cron.php(44): Mage::app('admin')\n#5 {main}...\n'
Beta Was this translation helpful? Give feedback.
All reactions