I've accidentally deleted my local.xml file. So, site stopped working. I tried to use the local.template.xml file and added the db settings, but then the front-end started giving this error.

Fatal error: Class 'Mage_GoogleCheckout_Model_Resource_Setup' not found in /home4/dezyner/public_html/demo/menstyle3/app/code/core/Mage/Core/Model/Resource/Setup.php on line 234

Then I deleted the var folder, and deleted the local.xml file again, so that i could fresh install using magento install wizard. When i refresh front-end, the url changes from http://demo.webdezyner.com/menstyle3/index.php/ to http://demo.webdezyner.com/menstyle3/index.php/install but the page keeps on loading, and give this error:

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.

Can anyone help me here.

  • git reset --hard HEAD?
    – Ash
    Feb 14, 2014 at 14:07

2 Answers 2


If you don't have a backup (e.g. in git) you're in a quite difficult situation.

Try the following:

  • Delete the cache (var/cache/ if you don't use something else as the cache backend).
  • Add the local.xml template: https://gist.github.com/thebod/9001682 to app/etc/
  • Clean your browser cache (to prevent redirects cached by the browser)
  • Open the /install again and do the installation
  • You should now have a working local.xml again and the shop should work

But note: Because the local.xml is gone the encryption key is gone as well, that means every encrypted configuration option, credit card, etc. can't be decrypted anymore! Cracking the encryption key would work, but requires some knowledge about crypto, so that would probably not an option for you.

  • I remember the encryption key, which i entered while making the original installation. Feb 14, 2014 at 15:45
  • if a question is worth answering, its most times also worth to get upvoted. :)
    – Flyingmana
    Feb 14, 2014 at 15:54
  • @thebod I deleted var/cache, added local.xml file with the template content you mentioned, cleared browser cache, and then opened install url. I got this error. Fatal error: Class name must be a valid object or a string in /home4/dezyner/public_html/demo/menstyle3/app/code/core/Mage/Core/Model/Resource.php on line 215 What am I missing! Feb 14, 2014 at 16:38
  • You are missing some sort of code version control.
    – Ben Truby
    Feb 14, 2014 at 17:26
  • ...looks like you've deleted more than just the local.xml? Actually if you remember the encryption key then you can rebuild it even by yourself. Because it's just a configuration including the DB, caching, etc...
    – thebod
    Feb 19, 2014 at 9:36

This is what I've done to recover my site.

  1. I created new installation of magento
  2. I linked the new magento installation to my old db
  3. I copied my theme files (app/design , app/code/local, app/etc/modules , skin/frontend etc), and pasted them in my new magento installation
  4. All seems to be working fine now.

I hope this'll help others if they encounter similar problem.

Thanks all who tried to help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.