Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry key already exists #21

Closed
konstantinkv opened this issue Jan 15, 2015 · 2 comments
Closed

Registry key already exists #21

konstantinkv opened this issue Jan 15, 2015 · 2 comments

Comments

@konstantinkv
Copy link

Hello there,
I was having an issue with the <class>proxiblue_newrelic/predispatch_observer</class> call in the config.xml file (line: 95). It was throwing a duplicate key error for some reason:

a:5:{i:0;s:75:"Mage registry key "_singleton/newrelic/predispatch_observer" already exists";i:1;s:1334:"#0 /vagrant/httpdocs/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /vagrant/httpdocs/app/Mage.php(477): Mage::register('_singleton/newr...', false)
#2 /vagrant/httpdocs/app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('newrelic/predis...')

I made a fix by providing the full class to it <class>ProxiBlue_NewRelic_Model_Predispatch_Observer</class>, I hear that will be the standard in mage 2.0 anyways. Double checked with xDebug, observer method was firing in v1.9.1.
Cheers,
Konstantin

@ProxiBlue
Copy link
Owner

Hi, I have not been able to reproduce this issue.

Can you tell me:
Magento version, PHP version

@konstantinkv
Copy link
Author

Hey PB,
It's version CE1.9.1 of magento and php5.5.
Cheers,
Konstantin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants