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

Getting error message while login in localhost after restart
 
vikrantshukla
Jr. Member
 
Total Posts:  18
Joined:  2009-04-10
 

My pc suddenly got restated due to unknown reasons. i was editing header.phtnl and boxes.css. Now when i try to run

http://localhost/magento
, i get the error state below. please help…

SQLSTATE[23000]Integrity constraint violation1062 Duplicate entry '6849' for key 'PRIMARY'
Trace:
#0 C:\xampp\htdocs\magento\lib\Zend\Db\Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 C:\xampp\htdocs\magento\lib\Zend\Db\Adapter\Abstract.php(457): Zend_Db_Statement->execute(Array)
#2 C:\xampp\htdocs\magento\lib\Zend\Db\Adapter\Pdo\Abstract.php(230): Zend_Db_Adapter_Abstract->query('INSERT INTO `lo...', Array)
#3 C:\xampp\htdocs\magento\lib\Varien\Db\Adapter\Pdo\Mysql.php(259): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `lo...', Array)
#4 C:\xampp\htdocs\magento\lib\Zend\Db\Adapter\Abstract.php(535): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `lo...', Array)
#5 C:\xampp\htdocs\magento\app\code\core\Mage\Log\Model\Mysql4\Visitor.php(63): Zend_Db_Adapter_Abstract->insert('log_url_info', Array)
#6 C:\xampp\htdocs\magento\app\code\core\Mage\Log\Model\Mysql4\Visitor.php(71): Mage_Log_Model_Mysql4_Visitor->_saveUrlInfo(Object(Mage_Log_Model_Visitor))
#7 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Mysql4\Abstract.php(342): Mage_Log_Model_Mysql4_Visitor->_beforeSave(Object(Mage_Log_Model_Visitor))
#8 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Abstract.php(251): Mage_Core_Model_Mysql4_Abstract->save(Object(Mage_Log_Model_Visitor))
#9 C:\xampp\htdocs\magento\app\code\core\Mage\Log\Model\Visitor.php(177): Mage_Core_Model_Abstract->save()
#10 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(1166): Mage_Log_Model_Visitor->saveByRequest(Object(Varien_Event_Observer))
#11 C:\xampp\htdocs\magento\app\Mage.php(301): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#12 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(438): Mage::dispatchEvent('controller_acti...', Array)
#13 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Front\Action.php(56): Mage_Core_Controller_Varien_Action->postDispatch()
#14 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(371): Mage_Core_Controller_Front_Action->postDispatch()
#15 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(247): Mage_Core_Controller_Varien_Action->dispatch('index')
#16 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 C:\xampp\htdocs\magento\app\Mage.php(457): Mage_Core_Controller_Varien_Front->dispatch()
#18 C:\xampp\htdocs\magento\index.php(52): Mage::run()
#19 {main}
 
Magento Community Magento Community
Magento Community
Magento Community
 
FerdiUSA
Jr. Member
 
Total Posts:  8
Joined:  2009-04-11
 

see http://www.magentocommerce.com/boards/viewthread/32565/

reparing tables in database should do the trick

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