October 24, 2020

cm-mini

Thinking Magento

Mage registry key already exists when firing events

You will receive Mage registry key already exists when firing events error if <events> is inside <global>

#### This is no good ####
<global>

    <events>
    </events>
</global>
##################

Move it to either <frontend><events> or <adminhtml><events> outside of the <global> tag to fix.

#### Correct Structure ####

<frontend>
   <events>
   </events>
</frontend>

<adminhtml>
    <events>
    </events>
</adminhtml> 

##################

If this saved you hours of work or saved you from a headache, feel free to buy us a beer.