i am trying to clone my webshop again for a test environment. (magento 1.6.2 on a dedicated server)
I never had any trouble doing this. I just deleted all the old content in FTP and DB and then i make a copy of the live store and synchronize the db.
Then i change the url in the db and the test-db in the local.xml.
I also clean the var/cache and var/session.
This always worked well.
But yesterday did the same ... but now i get a http 500 error. (white screen)
From the error logs: "GET / HTTP/1.1" 500 222 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1"
and
PHP Fatal error: Call to a member function getCode() on a non-object in /var/www/vhosts/liefstoereigenwijs.nl/testwinkel/app/code/core/Mage/Core/Model/App.php on line 701
I tried to use the magento-cleanup.php and i also changed all permissions to 775. But all without result ...
Has anyone have a clue?
UPDATE: In the system.log i see the following errors:
2012-07-10T12:33:53+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Store_Group::setWebsite() must be an instance of Mage_Core_Model_Website, null given, called in /var/www/vhosts/liefstoereigenwijs.nl/testwinkel/app/code/core/Mage/Core/Model/App.php on line 648 and defined in /var/www/vhosts/liefstoereigenwijs.nl/testwinkel/app/code/core/Mage/Core/Model/Store/Group.php on line 235 2012-07-10T12:33:53+00:00 ERR (3): Notice: Undefined index: 1 in /var/www/vhosts/liefstoereigenwijs.nl/testwinkel/app/code/core/Mage/Core/Model/App.php on line 701