Reputation: 473
I was trying to install an extension "Enhanced Admin Grids extension" which I did fine from Magento connect. Then I realized I wanted to install the github version so I thought I was doing this correctly by replacing all the folders with the github version. Turned out it didnt work and I was getting errors when trying to login to the admin area. How can I just remove everything to be able to login to my site again?
This is the error I'm getting: Mage registry key "_singleton/customgrid/observer" already exists
Upvotes: 1
Views: 1024
Reputation: 6275
If you know where the extension lives in your website, you can try deleting the extension's directory - try checking app/code/local/... and app/code/community/...
This won't undo any database changes though.
Alternatively, as a complete hack, you can open up app/Mage.php. Look for the following function
public static function register($key, $value, $graceful = false)
{
if (isset(self::$_registry[$key])) {
if ($graceful) {
return;
}
self::throwException('Mage registry key "'.$key.'" already exists');
}
self::$_registry[$key] = $value;
}
Change this function with this one:
public static function register($key, $value, $graceful = false)
{
if (isset(self::$_registry[$key])) {
if ($graceful) {
return;
}
return;
//self::throwException('Mage registry key "'.$key.'" already exists');
}
self::$_registry[$key] = $value;
}
Upvotes: 1