Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Login to Admin panel throws “Email already exists.”
 
DrDark
Jr. Member
 
Total Posts:  5
Joined:  2013-06-21
 

I recently upgraded my Magento system to 1.7.2 and i had several problems. Most of them were easy to fix but this one is hard.

My problem was that i couldn’t log-in as a customer or as an admin to the panel except of 1 user.

So as i got an advice from the internet saying to refresh the role permission of the admin group.

I did that and now everytime i try to log in to gives me this exception:

Email already exists.
/home/bellater/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(676): Mage::throwException('Email already e...')
/home/bellater/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(424): Mage_Core_Model_Resource_Db_Abstract->_checkUnique(Object(Mage_Admin_Model_User))
/home/bellater/public_html/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Core_Model_Resource_Db_Abstract->save(Object(Mage_Admin_Model_User))
/home/bellater/public_html/app/code/core/Mage/Admin/Model/Session.php(142): Mage_Core_Model_Abstract->save()
/home/bellater/public_html/app/code/core/Mage/Admin/Model/Observer.php(95): Mage_Admin_Model_Session->refreshAcl()
/home/bellater/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))
/home/bellater/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), 'actionPreDispat...'Object(Varien_Event_Observer))
/home/bellater/public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
/home/bellater/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(528): Mage::dispatchEvent('controller_acti...', Array)
/home/bellater/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
10 /home/bellater/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(408): Mage_Adminhtml_Controller_Action->preDispatch()
11 /home/bellater/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
12 /home/bellater/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
13 /home/bellater/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
14 /home/bellater/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
15 /home/bellater/public_html/index.php(87): Mage::run('''store')
16 {main}

can anyone help me please ? : O

thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
DrDark
Jr. Member
 
Total Posts:  5
Joined:  2013-06-21
 

well i solved it..

i don’t know what the problem was.. i just restored the an old backup of the admins tables to the db…

but now i’m facing an other problem. customers can’t login in to my site..

i upgraded from 1.4.0.1 to 1.7.0.2.. exported and imported the customers with the magento built in import..

they still can’t log-in can you guys please help me?

thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
sbablov
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2011-09-22
Ukraine
 

in file app/code/core/mage/admin/model/resource/user.php I commented next lines
protected function _initUniqueFields()
{
$this->_uniqueFields = array(
//~
/*
array(
‘field’ => ‘email’,
‘title’ => Mage::helper(’adminhtml’)->__(’Email’)
),*/
array(
‘field’ => ‘username’,
‘title’ => Mage::helper(’adminhtml’)->__(’User Name’)
),
);
return $this;
}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top