user1543863
user1543863

Reputation:

Magento - Mage registry key "_resource_helper/core" already exists

I'm migrating a magento 1.6.1 installation on my staging server, but I'm still getting the error Mage registry key "_resource_helper/core" already exists.

I migrated the db and the whole source code. Then I changed local.xml database settings.

I already ran rm -rf var/cache/* var/session/* and restarted Apache2 but can't get it working.

What should I do?

Upvotes: 3

Views: 10755

Answers (3)

jaimeneto85
jaimeneto85

Reputation: 129

You need add this on local.xml:

<model><![CDATA[mysql4]]></model>

IF you already did this and error persist, you need clear your cache. Inside of your magento folder:

rm -rf var/cache/

or remove manually. ;)

Upvotes: 1

Bob Chip
Bob Chip

Reputation: 188

I had this same problem. For me, this fixed it:

rm -rf /tmp/magento/var/cache/*

Upvotes: 3

user1543863
user1543863

Reputation:

Yeeep! I finally got it working. The issue here was that performing the migration I also changed the <model><![CDATA[mysql4]]></model> value.

This was causing the exception... Now that I restored the default value it's all working without hacking the normal behaviour :-)

Upvotes: 5

Related Questions