My magento site which was working fine before an hour now giving error as I have imported
customer data from csv file with REPLACE Esisting Complex Data mode as we want to update some of our customer data.
but when I tried to add product into the cart from frontend with existing customer it gives me error as-:
Item (Model_Customer_Customer) with the same id "11" already exist
exception 'Exception' with message 'Item with the same id "11" already exist' in /htdocs/localhost/magento/lib/Varien/Data/Collection.php:373
Can somebody guide me what should I do now??
Or tell me how can I revert back to original database as I take backup of database daily.
So I have yesterday’s backup of database of my site.
So how can I revert back to yesterday’s database?
plz plz help me….
Reverting is fairly simple create a new database and call it another name so say your current db is magento1 create magento2 with your backedup data, and make sure your current magento db user has rights to the new database.
Now edit app/etc/local.xml change
<dbname><![CDATA[magento1]]></dbname>to<dbname><![CDATA[magento2]]></dbname>, clear all caches and your site should now be pointing at the old data.This is a quick fix method, but it seems like that is what you are looking for right now.