Skip to content
Eduardo Lira

MAGENTO

How to Fix "Mage registry key already exists" Error in Magento

Learn how to resolve the "Mage registry key _resource_helper/core already exists" error when transferring your Magento store to a hosting server and avoid registry issues.

The message Mage registry key “_resource_helper/core” already exists may be displayed as an error upon access after developing your Magento store locally and uploading it to the hosting server, for example. A conflict occurs between the key that was generated locally and the key that is on the server.

The problem can be solved by performing the following steps:

Remove cache and session temporaries:

rm -rf var/cache/* var/session/*

And then, perform a file permissions fix:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod o+w var var/.htaccess app/etc
chmod 550 mage
chmod -R o+w media

I didn’t have much trouble because I did it via SSH with the commands above. If you are very lay or if your hosting does not provide this type of connection, good luck with manual cleaning via FTP or file manager.

The directories for cleaning temporary information are the cache directories (in this Magento installation path -> /var/cache) and session (in this Magento installation path -> /var/session).

Still about this error, it can also occur in platform version updates.

Another tip if the problem persists is to check the settings in the local.xml file (File path in installation /app/etc/local.xml) which has connection information. You may need to update some information for the new server.

Thx!

Revisited in November 2026

This post is from 2015 and applies to Magento 1. Some things have changed since then:

  • Magento 1 reached the end of official support on June 30, 2020. Anyone still running a store on it no longer gets security fixes from Adobe; there is a community-maintained fork, OpenMage LTS.
  • In Magento 2, the structure is different. There is no var/session or app/etc/local.xml: the database connection lives in app/etc/env.php, and the cache is cleared with bin/magento cache:flush.
  • chmod o+w makes directories writable by any user on the server. It was what a lot of shared hosting asked for at the time, but it’s a hole. The safer route is to give ownership of the files to the user that runs the web server and leave write access to that user only.

Who writes this

Eduardo Lira

Software developer in Rio de Janeiro. I started this blog in 2012, in technical support at a hosting company, writing down the fixes for the problems that came up every day. Today I work at Sofis Tecnologia, on critical healthcare systems and SQL Server database migrations.

Found a mistake in this post?

A command that no longer works, a broken link, wrong information: tell me what you saw. The message goes only to the author and is not shown on the site.