0
votes

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

1
What's the output if you insert Zend_Debug::dump($this->_stores); die; just before line 701?Rudolph Gottesheim
i get the same error ... even if i put a extra line between, it keeps talking about line 701 - it seems there is some sort of cache somewhere ... because i don't have the idea its updated ...Ronny
And the URL in the browser doesn't change? That would hint to a problem with your base urls in core_config_data. Does the same error occur when you comment the line out? It really sounds like some sort of cache problem. Are you absolutely sure you're working in the right environment? (Try putting a die statement at the beginning of your root index.php) Does the PHP error appear in the browser or in a /var/report/xxxxxxxx file?Rudolph Gottesheim
in the systemlog i have some extra errors i see. The var/report remains empty ... Further i haven't changed any environment ... and the live shop works wellRonny
Have a look at your core_store table.. What store_ids do you find there?Rudolph Gottesheim

1 Answers

0
votes

Memcache and/or Varnish cache were the problem.

I fushed all caches in the live store, and that was the solution for me.