Fix Magento Registry Key Already Exists - Will Hanke
 

Fix Magento Registry Key Already Exists

Written by +Will Hanke on September 15th, 2014

I’ve been working on removing a plugin made my Mageix called IXCBA.  It’s a Checkout by Amazon plugin that has a ton of problems and poor support.

After finding every instance of ‘ixcba’ in the database and code, I was still unable to get the backend of the website to come up.  Clearing out /var/cache and /var/session did nothing to help.

Turns out, sometimes just clearing those two doesn’t really clear all the cache.  After doing the process below, I was able to get right in to the backend with no problems.

Steps to Fix Magento Registry Key Already Exists Problem

Create a file called ‘index_clearcache.php’ in the root of your Magento installation.

Copy the index.php file into this new file.

Add to the end of the file these lines:


$app = Mage::app();
if ($app != null)
{
$cache = $app->getCache();
if ($cache != null)
{
$cache->clean();
}
}

This code must be at the end of the file in order to work correctly.

Save and upload this to your Magento root, then run once. It should have you back up and running!

About 

Will Hanke is the Chief Search Marketing Strategist at Red Canoe Media, a top St. Louis Search Marketing & SEO firm. In addition to helping some of the city's most recognizable brands with their online marketing strategy, Will also is an Amazon bestselling author, speaker and teacher.

 

Leave a Comment





What's Your SEO Score?

Enter the URL of any landing page or blog article and see how optimized it is for one keyword or phrase.